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 StructDecl
ctx
String
decl
String
escapedName
boolean
isLocal
String
name
-
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 boolean
equals(Object obj)
If same name, can't redefine, unless it's a getterint
hashCode()
-
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)
-
-