Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

bossa.syntax
Class NiceFieldAccess  view NiceFieldAccess download NiceFieldAccess.java

java.lang.Object
  extended bybossa.syntax.Node
      extended bybossa.syntax.Definition
          extended bybossa.syntax.MethodDeclaration
              extended bybossa.syntax.FieldAccess
                  extended bybossa.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 $

Nested Class Summary
(package private)  class FieldAccess.UsingAsValue
          Code generation
 
Nested classes inherited from class bossa.syntax.MethodDeclaration
MethodDeclaration.Symbol
 
Field Summary
(package private)  NiceClass.Field field
           
protected  gnu.expr.Declaration fieldDecl
           
 
Fields inherited from class bossa.syntax.MethodDeclaration
arity, parameters
 
Fields inherited from class bossa.syntax.Definition
currentModule, docString, module, name
 
Fields inherited from class bossa.syntax.Node
children, currentFunction, down, global, none, propagate, scope, thisExp, typeScope, upper
 
Constructor Summary
(package private) NiceFieldAccess(NiceClass classDef, NiceClass.Field field)
           
 
Method Summary
 gnu.expr.Expression compileAccess(gnu.expr.Expression[] arguments)
           
 gnu.expr.Expression compileAssign(gnu.expr.Expression value)
           
 gnu.expr.Expression compileAssign(gnu.expr.Expression parameter, gnu.expr.Expression value)
           
protected  gnu.expr.Expression computeCode()
           
 boolean isFieldAccess()
          true if this method represent the access to the field of an object.
 boolean isFinal()
           
 boolean isStatic()
           
private static FormalParameters makeList(mlsub.typing.Monotype t)
           
 void printInterface(java.io.PrintWriter s)
          Module interface
 java.lang.String toString()
          Debug only
 
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.Definition
associatedDefinitions, compilation, getName, inInterfaceFile, location, printInterface, resolveBody
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

field

final NiceClass.Field field

fieldDecl

protected gnu.expr.Declaration fieldDecl
Constructor Detail

NiceFieldAccess

NiceFieldAccess(NiceClass classDef,
                NiceClass.Field field)
Method Detail

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)