|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSFE.Compiler.Variable
public class Variable
A type representing a variable in the program. A variable is composed of its type and name.
Constructor Summary | |
---|---|
Variable(java.lang.String name,
Type type)
Constructs a new variable object of a given name and type. |
Method Summary | |
---|---|
java.lang.String |
getName()
Returns a string representing the name of this variable. |
Type |
getType()
Returns the Type of this varable. |
int |
size()
Returns an int representing the size of this variable object in bits. |
java.lang.String |
toString()
Returns a string representation of the object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Variable(java.lang.String name, Type type)
name
- the new variale nametype
- the variable's typeMethod Detail |
---|
public Type getType()
public java.lang.String getName()
public int size()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |