JML

org.multijava.mjc
Interface CFieldAccessor

All Known Implementing Classes:
CField, CFieldAccessorMethod, CFieldGetterMethod, CFieldSetterMethod

public interface CFieldAccessor

This interface represents a field or proxy for a field (a field getter or setter method)


Method Summary
 void genLoad(CodeSequence code)
          Generates a sequence of bytecodes to load
 void genStore(CodeSequence code)
          Generates a sequence of bytecodes to load
 CField getField()
          Returns the target of this accessor method.
 CType getType()
           
 JExpression getValue()
           
 String ident()
           
 boolean isFieldStatic()
           
 boolean isFinal()
           
 boolean isStatic()
           
 CClass owner()
          Returns the owner of this member.
 void setType(CType type)
           
 

Method Detail

owner

public CClass owner()
Returns the owner of this member.

Returns:
the class that owns this member

getType

public CType getType()
Returns:
the type of this field (or the type of the associated field of a getter/setter)

setType

public void setType(CType type)

getValue

public JExpression getValue()
Returns:
the value of this field (or the value of the associated field of a getter/setter)

ident

public String ident()

isStatic

public boolean isStatic()
Returns:
true if this member is static

isFieldStatic

public boolean isFieldStatic()
Returns:
true if this member's associated field is static

isFinal

public boolean isFinal()
Returns:
true if this member is final

getField

public CField getField()
Returns the target of this accessor method.


genLoad

public void genLoad(CodeSequence code)
Generates a sequence of bytecodes to load

Parameters:
code - the code list

genStore

public void genStore(CodeSequence code)
Generates a sequence of bytecodes to load

Parameters:
code - the code list

JML

JML is Copyright (C) 1998-2002 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This release depends on code from the MultiJava project and is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.