gnu.kawa.reflect
Class FieldLocation

java.lang.Object
  extended by gnu.mapping.Location
      extended by gnu.kawa.reflect.ClassMemberLocation
          extended by gnu.kawa.reflect.FieldLocation
Direct Known Subclasses:
StaticFieldLocation

public class FieldLocation
extends ClassMemberLocation


Field Summary
static int KIND_FLAGS_SET
          True if the flags PROCEDURE|SYNTAX|INDIRECT_LOCATION|CONSTANT are valid.
static int PROCEDURE
           
static int SYNTAX
           
 
Fields inherited from class gnu.mapping.Location
UNBOUND
 
Constructor Summary
FieldLocation(java.lang.Object instance, ClassType type, java.lang.String mname)
           
FieldLocation(java.lang.Object instance, java.lang.String cname, java.lang.String fname)
           
 
Method Summary
 java.lang.Object get(java.lang.Object defaultValue)
           
 Declaration getDeclaration()
           
 Field getField()
           
 Type getFType()
          Get the type of the field.
 boolean isBound()
           
 boolean isConstant()
           
 boolean isIndirectLocation()
           
 boolean isProcedureOrSyntax()
           
static FieldLocation make(java.lang.Object instance, Declaration decl)
           
static FieldLocation make(java.lang.Object instance, java.lang.String cname, java.lang.String fldName)
           
 void set(java.lang.Object newValue)
           
 void setDeclaration(Declaration decl)
           
 void setProcedure()
           
 void setSyntax()
           
 java.lang.String toString()
           
 
Methods inherited from class gnu.kawa.reflect.ClassMemberLocation
define, defineAll, getDeclaringClass, getInstance, getMemberName, getRField, setInstance
 
Methods inherited from class gnu.mapping.Location
entered, get, getBase, getKeyProperty, getKeySymbol, getValue, make, make, make, print, setRestore, setValue, setWithSave, undefine
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PROCEDURE

public static final int PROCEDURE
See Also:
Constant Field Values

SYNTAX

public static final int SYNTAX
See Also:
Constant Field Values

KIND_FLAGS_SET

public static final int KIND_FLAGS_SET
True if the flags PROCEDURE|SYNTAX|INDIRECT_LOCATION|CONSTANT are valid.

See Also:
Constant Field Values
Constructor Detail

FieldLocation

public FieldLocation(java.lang.Object instance,
                     java.lang.String cname,
                     java.lang.String fname)

FieldLocation

public FieldLocation(java.lang.Object instance,
                     ClassType type,
                     java.lang.String mname)
Method Detail

isIndirectLocation

public boolean isIndirectLocation()

setProcedure

public void setProcedure()

setSyntax

public void setSyntax()

isProcedureOrSyntax

public boolean isProcedureOrSyntax()

setDeclaration

public void setDeclaration(Declaration decl)

getField

public Field getField()

getFType

public Type getFType()
Get the type of the field.


getDeclaration

public Declaration getDeclaration()

get

public java.lang.Object get(java.lang.Object defaultValue)
Overrides:
get in class ClassMemberLocation

set

public void set(java.lang.Object newValue)
Overrides:
set in class ClassMemberLocation

isConstant

public boolean isConstant()
Overrides:
isConstant in class ClassMemberLocation

isBound

public boolean isBound()
Overrides:
isBound in class ClassMemberLocation

make

public static FieldLocation make(java.lang.Object instance,
                                 Declaration decl)

make

public static FieldLocation make(java.lang.Object instance,
                                 java.lang.String cname,
                                 java.lang.String fldName)

toString

public java.lang.String toString()
Overrides:
toString in class Location