| Modifier and Type | Field and Description |
|---|---|
| public String | decl
The entire declaration such as "String foo;" |
| public String | initValue
The optional attribute intialization expression |
| public String | name
The name of the attribute "foo" |
| public String | type
The type; might be empty such as for Python which has no static typing |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | extractAttribute(String decl)
For decls like "String foo" or "char *foo32[3]" compute the ID and type declarations. |
| public String |
| decl | back to summary |
|---|---|
| public String decl The entire declaration such as "String foo;" | |
| initValue | back to summary |
|---|---|
| public String initValue The optional attribute intialization expression | |
| name | back to summary |
|---|---|
| public String name The name of the attribute "foo" | |
| type | back to summary |
|---|---|
| public String type The type; might be empty such as for Python which has no static typing | |
| Attribute | back to summary |
|---|---|
| public Attribute(String decl) | |
| Attribute | back to summary |
|---|---|
| public Attribute(String name, String decl) | |
| extractAttribute | back to summary |
|---|---|
| protected void extractAttribute(String decl) 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. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |