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
-
Field Summary
FieldsFields 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
ConstructorsConstructorDescriptionContextGetterDecl
(OutputModelFactory factory, String name) ContextGetterDecl
(OutputModelFactory factory, String name, boolean signature) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Make sure that a getter does not equal a label.Not used for output; just used to distinguish between decl types to avoid dups.(package private) abstract ContextGetterDecl
int
hashCode()
Methods inherited from class org.antlr.v4.codegen.model.SrcOp
getContextName, getOuterMostAltCodeBlock
-
Field Details
-
signature
public final boolean signature
-
-
Constructor Details
-
ContextGetterDecl
-
ContextGetterDecl
-
-
Method Details
-
getArgType
Not used for output; just used to distinguish between decl types to avoid dups. -
getSignatureDecl
-
hashCode
public int hashCode() -
equals
Make sure that a getter does not equal a label. X() and X are ok. OTOH, treat X() with two diff return values as the same. Treat two X() with diff args as different.
-