Package org.antlr.v4.codegen.model.decl
Class ContextGetterDecl
- 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.ContextGetterDecl
-
- Direct Known Subclasses:
ContextRuleGetterDecl
,ContextRuleListGetterDecl
,ContextTokenGetterDecl
,ContextTokenListGetterDecl
public abstract class ContextGetterDecl extends Decl
-
-
Field Summary
Fields Modifier and Type Field Description boolean
signature
-
Fields inherited from class org.antlr.v4.codegen.model.decl.Decl
ctx, decl, escapedName, isLocal, 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 ContextGetterDecl(OutputModelFactory factory, String name)
ContextGetterDecl(OutputModelFactory factory, String name, boolean signature)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Make sure that a getter does not equal a label.String
getArgType()
Not used for output; just used to distinguish between decl types to avoid dups.int
hashCode()
-
Methods inherited from class org.antlr.v4.codegen.model.SrcOp
getContextName, getOuterMostAltCodeBlock
-
-
-
-
Constructor Detail
-
ContextGetterDecl
public ContextGetterDecl(OutputModelFactory factory, String name)
-
ContextGetterDecl
public ContextGetterDecl(OutputModelFactory factory, String name, boolean signature)
-
-
Method Detail
-
getArgType
public String getArgType()
Not used for output; just used to distinguish between decl types to avoid dups.
-
-