| java.lang.Object EDU.purdue.cs.bloat.editor.LocalVariable
Method Summary | |
public boolean | equals(Object obj) Check if an object is equal to this variable.
A stricter comparison than comparing indices will break Hashtable lookups
since a variable could have a name assigned to it after its first use.
Parameters: obj - The object to compare against. | public int | hashCode() Hash the local variable. | public int | index() Get the index into the local variable array. | public String | name() Get the name of the local variable. | public String | toString() Convert the variable to a string. | public Type | type() Get the type of the local variable. |
LocalVariable | public LocalVariable(int index)(Code) | | Constructor.
Parameters: index - The index of the local variable in the method's local variablearray. |
LocalVariable | public LocalVariable(String name, Type type, int index)(Code) | | Constructor.
Parameters: name - The name of the local variable. Parameters: type - The descriptor (or index into the constant pool) representingthe variable type. Parameters: index - The index of the local variable in the method's local variablearray. |
equals | public boolean equals(Object obj)(Code) | | Check if an object is equal to this variable.
A stricter comparison than comparing indices will break Hashtable lookups
since a variable could have a name assigned to it after its first use.
Parameters: obj - The object to compare against. true if equal, false if not. |
hashCode | public int hashCode()(Code) | | Hash the local variable.
A stricter hashing than using the index will break Hashtable lookups
since a variable could have a name assigned to it after its first use.
The hash code. |
index | public int index()(Code) | | Get the index into the local variable array.
The index into the local variable array. |
name | public String name()(Code) | | Get the name of the local variable.
The name of the local variable. |
toString | public String toString()(Code) | | Convert the variable to a string.
A string representation of the variable. |
type | public Type type()(Code) | | Get the type of the local variable.
The type of the local variable. |
|
|