| java.lang.Object org.antlr.tool.Attribute
Attribute | public class Attribute (Code) | | Track the names of attributes define in arg lists, return values,
scope blocks etc...
|
decl | public String decl(Code) | | The entire declaration such as "String foo;"
|
initValue | public String initValue(Code) | | The optional attribute intialization expression
|
name | public String name(Code) | | The name of the attribute "foo"
|
type | public String type(Code) | | The type; might be empty such as for Python which has no static typing
|
extractAttribute | protected void extractAttribute(String decl)(Code) | | For decls like "String foo" or "char *foo32[3]" compute the ID
and type declarations. Also handle "int x=3" and 'T t = new T("foo")'
but if the separator is ',' you cannot use ',' in the initvalue.
AttributeScope.addAttributes takes care of the separation so we are
free here to use from '=' to end of string as the expression.
Set name, type, initvalue, and full decl instance vars.
|
|
|