gnu.kawa.reflect

Class FieldLocation

public class FieldLocation extends ClassMemberLocation

Field Summary
static intKIND_FLAGS_SET
True if the flags PROCEDURE|SYNTAX|INDIRECT_LOCATION|CONSTANT are valid.
static intPROCEDURE
static intSYNTAX
Constructor Summary
FieldLocation(Object instance, String cname, String fname)
FieldLocation(Object instance, ClassType type, String mname)
Method Summary
Objectget(Object defaultValue)
DeclarationgetDeclaration()
FieldgetField()
TypegetFType()
Get the type of the field.
booleanisBound()
booleanisConstant()
booleanisIndirectLocation()
booleanisProcedureOrSyntax()
static FieldLocationmake(Object instance, Declaration decl)
static FieldLocationmake(Object instance, String cname, String fldName)
voidset(Object newValue)
voidsetDeclaration(Declaration decl)
voidsetProcedure()
voidsetSyntax()
StringtoString()

Field Detail

KIND_FLAGS_SET

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

PROCEDURE

public static final int PROCEDURE

SYNTAX

public static final int SYNTAX

Constructor Detail

FieldLocation

public FieldLocation(Object instance, String cname, String fname)

FieldLocation

public FieldLocation(Object instance, ClassType type, String mname)

Method Detail

get

public Object get(Object defaultValue)

getDeclaration

public Declaration getDeclaration()

getField

public Field getField()

getFType

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

isBound

public boolean isBound()

isConstant

public boolean isConstant()

isIndirectLocation

public boolean isIndirectLocation()

isProcedureOrSyntax

public boolean isProcedureOrSyntax()

make

public static FieldLocation make(Object instance, Declaration decl)

make

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

set

public void set(Object newValue)

setDeclaration

public void setDeclaration(Declaration decl)

setProcedure

public void setProcedure()

setSyntax

public void setSyntax()

toString

public String toString()