Package org.antlr.v4.codegen.model.decl
Class Decl
- java.lang.Object
-
- org.antlr.v4.codegen.model.OutputModelObject
-
- org.antlr.v4.codegen.model.SrcOp
-
- org.antlr.v4.codegen.model.decl.Decl
-
- Direct Known Subclasses:
AttributeDecl,ContextGetterDecl,ElementListDecl,RuleContextDecl,StructDecl,TokenDecl,TokenTypeDecl
public class Decl extends SrcOp
-
-
Field Summary
Fields Modifier and Type Field Description StructDeclctxStringdeclStringescapedNamebooleanisLocalStringname-
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
Constructors Constructor Description Decl(OutputModelFactory factory, String name)Decl(OutputModelFactory factory, String name, String decl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)If same name, can't redefine, unless it's a getterinthashCode()-
Methods inherited from class org.antlr.v4.codegen.model.SrcOp
getContextName, getOuterMostAltCodeBlock
-
-
-
-
Field Detail
-
name
public final String name
-
escapedName
public final String escapedName
-
decl
public final String decl
-
isLocal
public boolean isLocal
-
ctx
public StructDecl ctx
-
-
Constructor Detail
-
Decl
public Decl(OutputModelFactory factory, String name)
-
Decl
public Decl(OutputModelFactory factory, String name, String decl)
-
-