public class Attribute extends Object
Modifier and Type | Field and 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 and Description |
---|
Attribute(String decl) |
Attribute(String name,
String decl) |
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.
|
String |
toString() |
public String decl
public String type
public String name
public String initValue
public Attribute(String decl)
protected void extractAttribute(String decl)
Copyright © 2020. All rights reserved.