Package org.antlr.v4.codegen.model.decl
Class AltLabelStructDecl
java.lang.Object
org.antlr.v4.codegen.model.OutputModelObject
org.antlr.v4.codegen.model.SrcOp
org.antlr.v4.codegen.model.decl.Decl
org.antlr.v4.codegen.model.decl.StructDecl
org.antlr.v4.codegen.model.decl.AltLabelStructDecl
A StructDecl to handle a -> label on alt
-
Field Summary
FieldsFields inherited from class org.antlr.v4.codegen.model.decl.StructDecl
attributeDecls, attrs, ctorAttrs, derivedFromName, dispatchMethods, extensionMembers, getters, interfaces, provideCopyFrom, ruleContextDecls, ruleContextListDecls, tokenDecls, tokenListDecls, tokenTypeDecls
Fields inherited from class org.antlr.v4.codegen.model.SrcOp
enclosingBlock, enclosingRuleRunction, uniqueID
Fields inherited from class org.antlr.v4.codegen.model.OutputModelObject
ast, factory
-
Constructor Summary
ConstructorsConstructorDescriptionAltLabelStructDecl
(OutputModelFactory factory, Rule r, int altNum, String label) -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
If same name, can't redefine, unless it's a getterint
hashCode()
Methods inherited from class org.antlr.v4.codegen.model.decl.StructDecl
addDecl, addDecl, addDecls, addExtensionMember, implementInterface, isEmpty
Methods inherited from class org.antlr.v4.codegen.model.SrcOp
getContextName, getOuterMostAltCodeBlock
-
Field Details
-
altNum
public int altNum -
parentRule
-
-
Constructor Details
-
AltLabelStructDecl
-
-
Method Details
-
addDispatchMethods
- Overrides:
addDispatchMethods
in classStructDecl
-
hashCode
public int hashCode() -
equals
Description copied from class:Decl
If same name, can't redefine, unless it's a getter
-