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