|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdk.brics.xact.analysis.flowgraph.Variable
public class Variable
A program variable, used in a flow graph.
Constructor Summary | |
---|---|
Variable(int id,
boolean global,
boolean array)
Constructs a new variable object with no type annotation. |
|
Variable(int id,
boolean global,
boolean array,
String annotation,
SchemaType schema)
Constructs a new variable object. |
Method Summary | |
---|---|
int |
getID()
Returns the variable ID number. |
SchemaType |
getSchema()
Returns the schema for the type annotation of this variable, or null if absent. |
String |
getTypeAnnotation()
Returns the type annotation for this variable, or null if absent. |
boolean |
hasTypeAnnotation()
Checks whether this variable has a type annotation. |
boolean |
isArray()
Returns true if this is an array variable. |
boolean |
isGlobal()
Returns true if this is a field (or global dummy) variable. |
void |
setGlobal()
Marks this variable as being global. |
String |
toString()
Returns a name for the variable useful for printing. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Variable(int id, boolean global, boolean array)
public Variable(int id, boolean global, boolean array, String annotation, SchemaType schema)
Method Detail |
---|
public int getID()
public SchemaType getSchema()
public String getTypeAnnotation()
public boolean hasTypeAnnotation()
public boolean isArray()
public boolean isGlobal()
public void setGlobal()
public String toString()
toString
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |