com.caucho.bytecode
Class CodeWriterAttribute

java.lang.Object
  extended by com.caucho.bytecode.Attribute
      extended by com.caucho.bytecode.CodeAttribute
          extended by com.caucho.bytecode.CodeWriterAttribute

public class CodeWriterAttribute
extends CodeAttribute

Code generator attribute.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.caucho.bytecode.CodeAttribute
CodeAttribute.ExceptionItem, CodeAttribute.ExportAnalyzer
 
Constructor Summary
CodeWriterAttribute(JavaClass jClass)
           
 
Method Summary
 int addClass(java.lang.String className)
           
 void addDoubleReturn()
           
 int addFieldRef(java.lang.String className, java.lang.String fieldName, java.lang.String sig)
           
 void addFloatReturn()
           
 int addInterfaceMethodRef(java.lang.String className, java.lang.String methodName, java.lang.String sig)
           
 void addIntReturn()
           
 void addLongReturn()
           
 int addMethodRef(java.lang.String className, java.lang.String methodName, java.lang.String sig)
           
 void addObjectReturn()
           
 void addReturn()
           
 void addThrow()
           
 int addUTF8(java.lang.String code)
           
 void cast(java.lang.String className)
           
 void close()
           
 void dup()
           
 void getArrayObject()
           
 ConstantPool getConstantPool()
           
 void getField(java.lang.String className, java.lang.String fieldName, java.lang.String sig)
           
 void getStatic(java.lang.String className, java.lang.String fieldName, java.lang.String sig)
           
 void invoke(java.lang.String className, java.lang.String methodName, java.lang.String signature, int argStack, int returnStack)
           
 void invokeInterface(java.lang.String className, java.lang.String methodName, java.lang.String signature, int argStack, int returnStack)
           
 void invokespecial(java.lang.String className, java.lang.String methodName, java.lang.String signature, int argStack, int returnStack)
           
 void invokestatic(java.lang.String className, java.lang.String methodName, java.lang.String signature, int argStack, int returnStack)
           
 void newInstance(java.lang.String className)
           
 void newObjectArray(java.lang.String className)
           
 void pushDoubleVar(int index)
           
 void pushFloatVar(int index)
           
 void pushInt(int value)
           
 void pushIntVar(int index)
           
 void pushLongVar(int index)
           
 void pushNull()
           
 void pushObjectVar(int index)
           
 void putField(java.lang.String className, java.lang.String fieldName, java.lang.String sig)
           
 void putStatic(java.lang.String className, java.lang.String fieldName, java.lang.String sig)
           
 void setArrayObject()
           
 
Methods inherited from class com.caucho.bytecode.CodeAttribute
addAttribute, addException, export, exportCode, getAttributes, getCode, getExceptions, getJavaClass, getMaxLocals, getMaxStack, read, removeAttribute, setAttributes, setCode, setJavaClass, setMaxLocals, setMaxStack, toString, write
 
Methods inherited from class com.caucho.bytecode.Attribute
addConstants, getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CodeWriterAttribute

public CodeWriterAttribute(JavaClass jClass)
Method Detail

cast

public void cast(java.lang.String className)

getField

public void getField(java.lang.String className,
                     java.lang.String fieldName,
                     java.lang.String sig)

putField

public void putField(java.lang.String className,
                     java.lang.String fieldName,
                     java.lang.String sig)

getStatic

public void getStatic(java.lang.String className,
                      java.lang.String fieldName,
                      java.lang.String sig)

putStatic

public void putStatic(java.lang.String className,
                      java.lang.String fieldName,
                      java.lang.String sig)

getArrayObject

public void getArrayObject()

setArrayObject

public void setArrayObject()

pushObjectVar

public void pushObjectVar(int index)

pushIntVar

public void pushIntVar(int index)

pushLongVar

public void pushLongVar(int index)

pushFloatVar

public void pushFloatVar(int index)

pushDoubleVar

public void pushDoubleVar(int index)

pushNull

public void pushNull()

pushInt

public void pushInt(int value)

invoke

public void invoke(java.lang.String className,
                   java.lang.String methodName,
                   java.lang.String signature,
                   int argStack,
                   int returnStack)

invokeInterface

public void invokeInterface(java.lang.String className,
                            java.lang.String methodName,
                            java.lang.String signature,
                            int argStack,
                            int returnStack)

newInstance

public void newInstance(java.lang.String className)

newObjectArray

public void newObjectArray(java.lang.String className)

dup

public void dup()

invokespecial

public void invokespecial(java.lang.String className,
                          java.lang.String methodName,
                          java.lang.String signature,
                          int argStack,
                          int returnStack)

invokestatic

public void invokestatic(java.lang.String className,
                         java.lang.String methodName,
                         java.lang.String signature,
                         int argStack,
                         int returnStack)

addThrow

public void addThrow()

addReturn

public void addReturn()

addIntReturn

public void addIntReturn()

addLongReturn

public void addLongReturn()

addFloatReturn

public void addFloatReturn()

addDoubleReturn

public void addDoubleReturn()

addObjectReturn

public void addObjectReturn()

addFieldRef

public int addFieldRef(java.lang.String className,
                       java.lang.String fieldName,
                       java.lang.String sig)

addMethodRef

public int addMethodRef(java.lang.String className,
                        java.lang.String methodName,
                        java.lang.String sig)

addInterfaceMethodRef

public int addInterfaceMethodRef(java.lang.String className,
                                 java.lang.String methodName,
                                 java.lang.String sig)

addUTF8

public int addUTF8(java.lang.String code)

addClass

public int addClass(java.lang.String className)

getConstantPool

public ConstantPool getConstantPool()

close

public void close()