public class Attribute extends Object
| Modifier and Type | Field | Description |
|---|---|---|
String |
decl |
The entire declaration such as "String foo;"
|
String |
initValue |
The optional attribute intialization expression
|
String |
name |
The name of the attribute "foo"
|
String |
type |
The type; might be empty such as for Python which has no static typing
|
| Constructor | Description |
|---|---|
Attribute(String decl) |
|
Attribute(String name,
String decl) |
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
extractAttribute(String decl) |
For decls like "String foo" or "char *foo32[3]" compute the ID
and type declarations.
|
String |
toString() |
public String decl
public String type
public String name
public String initValue
public Attribute(String decl)
protected void extractAttribute(String decl)
Copyright © 1992–2018 ANTLR. All rights reserved.