net.sf.transjvm
Class FieldID
java.lang.Object
net.sf.transjvm.MemberID
net.sf.transjvm.FieldID
public class FieldID
- extends MemberID
A class representing a field identifier.
Constructor Summary |
FieldID(TypeID owner,
java.lang.String name,
TypeID type)
Create new FieldID |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
FieldID
public FieldID(TypeID owner,
java.lang.String name,
TypeID type)
- Create new FieldID
- Parameters:
owner
- The owning class.name
- The name of this field.type
- The type of this field.
- Throws:
java.lang.IllegalArgumentException
- if owner is primitive or array.
getName
public java.lang.String getName()
getType
public TypeID getType()
equals
public boolean equals(java.lang.Object o)
- Specified by:
equals
in class MemberID
hashCode
public int hashCode()
- Specified by:
hashCode
in class MemberID
variable
public Variable variable(Expression object)
- Returns a variable for the field of this object.
staticVariable
public Variable staticVariable()
- Returns a variable for a static field.
Copyright 2004-5, Mark Shannon