kmy.jint.compiler
Class CompilerHelper.FieldAccess

java.lang.Object
  |
  +--kmy.jint.typer.AbstractVariable
        |
        +--kmy.jint.compiler.CompilerVariable
              |
              +--kmy.jint.compiler.CompilerHelper.FieldAccess
Enclosing class:
CompilerHelper

class CompilerHelper.FieldAccess
extends CompilerVariable


Field Summary
(package private)  AbstractField field
           
(package private)  AbstractClass objClass
           
 
Fields inherited from class kmy.jint.typer.AbstractVariable
NOT_CONST, NOTHING
 
Constructor Summary
(package private) CompilerHelper.FieldAccess(AbstractClass c, AbstractField f)
           
 
Method Summary
(package private)  void genGet(CodeGenerator gen, CompilerContext context)
           
(package private)  void genPut(CodeGenerator gen, CompilerContext context)
           
(package private)  AbstractClass getBase(CompilerContext context)
           
 java.lang.Object getConstValue()
           
(package private)  java.lang.String getDeclaringName()
           
 int getFilePos()
           
 AbstractClass getType()
           
 boolean isStatic()
           
 java.lang.String toString()
           
 
Methods inherited from class kmy.jint.compiler.CompilerVariable
genInit, genRet, getRegister, setFieldMode, setRegister
 
Methods inherited from class kmy.jint.typer.AbstractVariable
dscr, mustBeField
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

objClass

AbstractClass objClass

field

AbstractField field
Constructor Detail

CompilerHelper.FieldAccess

CompilerHelper.FieldAccess(AbstractClass c,
                           AbstractField f)
Method Detail

genGet

void genGet(CodeGenerator gen,
            CompilerContext context)
      throws java.io.IOException
Overrides:
genGet in class CompilerVariable

genPut

void genPut(CodeGenerator gen,
            CompilerContext context)
      throws java.io.IOException
Overrides:
genPut in class CompilerVariable

getDeclaringName

java.lang.String getDeclaringName()

getBase

AbstractClass getBase(CompilerContext context)
Overrides:
getBase in class CompilerVariable

getFilePos

public int getFilePos()
Overrides:
getFilePos in class CompilerVariable

getType

public AbstractClass getType()
Overrides:
getType in class AbstractVariable

isStatic

public boolean isStatic()
Overrides:
isStatic in class AbstractVariable

getConstValue

public java.lang.Object getConstValue()
Overrides:
getConstValue in class AbstractVariable

toString

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