kmy.jint.compiler
Class CompilerVariable

java.lang.Object
  |
  +--kmy.jint.typer.AbstractVariable
        |
        +--kmy.jint.compiler.CompilerVariable
Direct Known Subclasses:
CompilerHelper.ArrayLengthAccess, CompilerHelper.ClassAccess, CompilerHelper.FieldAccess, CompilerHelper.Variable

abstract class CompilerVariable
extends AbstractVariable


Fields inherited from class kmy.jint.typer.AbstractVariable
NOT_CONST, NOTHING
 
Constructor Summary
(package private) CompilerVariable()
           
 
Method Summary
(package private) abstract  void genGet(CodeGenerator gen, CompilerContext context)
           
(package private)  void genInit(CodeGenerator gen, CompilerContext context)
          Generate variable initialization code.
(package private) abstract  void genPut(CodeGenerator gen, CompilerContext context)
           
(package private)  void genRet(CodeGenerator gen, CompilerContext context)
           
(package private) abstract  AbstractClass getBase(CompilerContext context)
           
 int getFilePos()
           
(package private)  int getRegister()
           
(package private)  void setFieldMode(boolean fieldMode)
           
(package private)  void setRegister(int reg)
           
 
Methods inherited from class kmy.jint.typer.AbstractVariable
dscr, getConstValue, getType, isStatic, mustBeField
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

CompilerVariable

CompilerVariable()
Method Detail

genGet

abstract void genGet(CodeGenerator gen,
                     CompilerContext context)
              throws java.io.IOException

genPut

abstract void genPut(CodeGenerator gen,
                     CompilerContext context)
              throws java.io.IOException

getBase

abstract AbstractClass getBase(CompilerContext context)

genInit

void genInit(CodeGenerator gen,
             CompilerContext context)
       throws java.io.IOException
Generate variable initialization code.

setFieldMode

void setFieldMode(boolean fieldMode)

genRet

void genRet(CodeGenerator gen,
            CompilerContext context)
      throws java.io.IOException

setRegister

void setRegister(int reg)

getRegister

int getRegister()

getFilePos

public int getFilePos()
Overrides:
getFilePos in class AbstractVariable