|
CS 536 Fall 2007, Project 5 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
ObjectSymbol
public class Symbol
Information about a symbol (an identifier).
| Field Summary | |
|---|---|
boolean |
inParameter
True for formal parameters of mode IN or NONE. |
int |
offset
The offset of this symbol from the frame pointer. |
| Constructor Summary | |
|---|---|
Symbol(String name)
Creates a new Symbol. |
|
| Method Summary | |
|---|---|
String |
getName()
Returns the name of this symbol. |
Type |
getType()
Returns the type of this symbol. |
void |
setType(Type type)
Sets the type of this symbol. |
String |
toString()
Convert this Symbol to a String, for debugging. |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public int offset
public boolean inParameter
| Constructor Detail |
|---|
public Symbol(String name)
name - the name of the Symbol.| Method Detail |
|---|
public void setType(Type type)
type - the new type.getType()public String getName()
public Type getType()
setType(Type)public String toString()
toString in class Object
|
CS 536 Fall 2007, Project 5 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||