net.sf.transjvm
Class FieldID

java.lang.Object
  extended by net.sf.transjvm.MemberID
      extended by 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
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getName()
           
 TypeID getType()
           
 int hashCode()
           
 Variable staticVariable()
          Returns a variable for a static field.
 Variable variable(Expression object)
          Returns a variable for the field of this object.
 
Methods inherited from class net.sf.transjvm.MemberID
getOwningClass, getRef
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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