Package org.antlr.v4.tool
Class Attribute
- java.lang.Object
-
- org.antlr.v4.tool.Attribute
-
public class Attribute extends Object
Track the names of attributes defined in arg lists, return values, scope blocks etc...
-
-
Field Summary
Fields Modifier and Type Field Description String
decl
The entire declaration such as "String foo" or "x:int"AttributeDict
dict
Who contains us?String
initValue
The optional attribute initialization expressionString
name
The name of the attribute "foo"org.antlr.runtime.Token
token
AToken
giving the position of the name of this attribute in the grammar.String
type
The type; might be empty such as for Python which has no static typing
-
-
-
Field Detail
-
decl
public String decl
The entire declaration such as "String foo" or "x:int"
-
type
public String type
The type; might be empty such as for Python which has no static typing
-
name
public String name
The name of the attribute "foo"
-
token
public org.antlr.runtime.Token token
AToken
giving the position of the name of this attribute in the grammar.
-
initValue
public String initValue
The optional attribute initialization expression
-
dict
public AttributeDict dict
Who contains us?
-
-