Package org.antlr.v4.tool
Class Attribute
java.lang.Object
org.antlr.v4.tool.Attribute
Track the names of attributes defined in arg lists, return values,
scope blocks etc...
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe entire declaration such as "String foo" or "x:int"Who contains us?The optional attribute initialization expressionThe name of the attribute "foo"org.antlr.runtime.Token
AToken
giving the position of the name of this attribute in the grammar.The type; might be empty such as for Python which has no static typing -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
decl
The entire declaration such as "String foo" or "x:int" -
type
The type; might be empty such as for Python which has no static typing -
name
The name of the attribute "foo" -
token
public org.antlr.runtime.Token tokenAToken
giving the position of the name of this attribute in the grammar. -
initValue
The optional attribute initialization expression -
dict
Who contains us?
-
-
Constructor Details
-
Attribute
public Attribute() -
Attribute
-
Attribute
-
-
Method Details