java.lang.Object
bossa.syntax.Node
bossa.syntax.Definition
bossa.syntax.MethodDeclaration
bossa.syntax.FieldAccess
bossa.syntax.NiceFieldAccess
- All Implemented Interfaces:
- bossa.util.Located
- public class NiceFieldAccess
- extends FieldAccess
A field access in a Nice class.
In terms of scoping, this is the symbol
that is returned when the access to a field is done,
either a 'get' or a 'set'.
- Version:
- $Date: 2003/11/21 08:09:59 $
| Methods inherited from class bossa.syntax.MethodDeclaration |
checkSpecialRequirements, compile, explainWhyMatchFails, formalParameters, getArgTypes, getArity, getCode, getCodeInCallPosition, getFullName, getReturnType, getSymbol, getType, innerTypecheck, isIgnored, javaArgTypes, javaReturnType, typecheck, typecheckCompiled, typedResolve |
| Methods inherited from class bossa.syntax.Node |
addChild, addChildren, addFirstChild, addSymbol, addTypeMap, addTypeSymbol, addTypeSymbols, buildScope, buildScope, child, doResolve, doTypecheck, getCurrentFunction, getGlobalScope, getGlobalTypeScope, getScope, getTypeScope, removeChild, resolve, setCurrentFunction, setModule |
field
final NiceClass.Field field
fieldDecl
protected gnu.expr.Declaration fieldDecl
NiceFieldAccess
NiceFieldAccess(NiceClass classDef,
NiceClass.Field field)
makeList
private static FormalParameters makeList(mlsub.typing.Monotype t)
isFinal
public boolean isFinal()
- Specified by:
isFinal in class FieldAccess
printInterface
public void printInterface(java.io.PrintWriter s)
- Module interface
- Specified by:
printInterface in class MethodDeclaration
toString
public java.lang.String toString()
- Debug only
- Overrides:
toString in class MethodDeclaration
isFieldAccess
public boolean isFieldAccess()
- true if this method represent the access to the field of an object.
- Overrides:
isFieldAccess in class MethodDeclaration
isStatic
public boolean isStatic()
computeCode
protected gnu.expr.Expression computeCode()
- Specified by:
computeCode in class MethodDeclaration
compileAccess
public gnu.expr.Expression compileAccess(gnu.expr.Expression[] arguments)
compileAssign
public gnu.expr.Expression compileAssign(gnu.expr.Expression value)
compileAssign
public gnu.expr.Expression compileAssign(gnu.expr.Expression parameter,
gnu.expr.Expression value)