anvil.script.compiler
Class ByteCompiler
java.lang.Object
|
+--anvil.script.compiler.ByteCompiler
- All Implemented Interfaces:
- CodecConstants
- public class ByteCompiler
- extends java.lang.Object
- implements CodecConstants
class ByteCompiler
| Fields inherited from interface anvil.codec.CodecConstants |
ACC_ABSTRACT, ACC_FINAL, ACC_INTERFACE, ACC_NATIVE, ACC_PRIVATE, ACC_PROTECTED, ACC_PUBLIC, ACC_STATIC, ACC_STRICT, ACC_SUPER, ACC_SYNCHRONIZED, ACC_TRANSIENT, ACC_VOLATILE, ATTR_Code, ATTR_ConstantValue, ATTR_Deprecated, ATTR_Exceptions, ATTR_InnerClasses, ATTR_LineNumberTable, ATTR_LocalVariableTable, ATTR_SourceFile, ATTR_Synthetic, CLASS_MAGIC, CONSTANT_Class, CONSTANT_Double, CONSTANT_FieldRef, CONSTANT_Float, CONSTANT_Integer, CONSTANT_InterfaceMethodRef, CONSTANT_Long, CONSTANT_MethodRef, CONSTANT_NameAndType, CONSTANT_SourceFile, CONSTANT_String, CONSTANT_Utf8, MAJOR_VERSION, MINOR_VERSION, T_BOOLEAN, T_BYTE, T_CHAR, T_DOUBLE, T_FLOAT, T_INT, T_LONG, T_SHORT |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
L_THIS
public static final int L_THIS
- See Also:
- Constant Field Values
L_CONTEXT
public static final int L_CONTEXT
- See Also:
- Constant Field Values
L_FRAME
public static final int L_FRAME
- See Also:
- Constant Field Values
TYPE_MODULE
public java.lang.String TYPE_MODULE
TYPE_OBJECT
public static final java.lang.String TYPE_OBJECT
- See Also:
- Constant Field Values
TYPE_ANY
public static final java.lang.String TYPE_ANY
- See Also:
- Constant Field Values
TYPE_ANY_OP
public static final java.lang.String TYPE_ANY_OP
- See Also:
- Constant Field Values
TYPE_ANY_ARRAY
public static final java.lang.String TYPE_ANY_ARRAY
- See Also:
- Constant Field Values
TYPE_CONTEXT
public static final java.lang.String TYPE_CONTEXT
- See Also:
- Constant Field Values
TYPE_SYMBOLS
public static final java.lang.String TYPE_SYMBOLS
- See Also:
- Constant Field Values
TYPE_FUNCTION
public static final java.lang.String TYPE_FUNCTION
- See Also:
- Constant Field Values
TYPE_COMPILED_SCRIPT
public static final java.lang.String TYPE_COMPILED_SCRIPT
- See Also:
- Constant Field Values
TYPE_STACKFRAME
public static final java.lang.String TYPE_STACKFRAME
- See Also:
- Constant Field Values
GET
public static final int GET
- See Also:
- Constant Field Values
GET_BOOLEAN
public static final int GET_BOOLEAN
- See Also:
- Constant Field Values
SET
public static final int SET
- See Also:
- Constant Field Values
CHECK
public static final int CHECK
- See Also:
- Constant Field Values
DELETE
public static final int DELETE
- See Also:
- Constant Field Values
_f_const
public Field _f_const
_f_text
public Field _f_text
_f_switch
public Field _f_switch
ByteCompiler
public ByteCompiler(Smith smith,
ModuleEnvelope envelope)
getAddress
public Address getAddress()
getModule
public Module getModule()
getClassname
public java.lang.String getClassname()
getModuleClass
public ClassRoom getModuleClass()
getClassRoom
public ClassRoom getClassRoom()
getPool
public ConstantPool getPool()
pushClass
public void pushClass(ClassRoom clazz)
popClass
public void popClass()
getMethod
public Method getMethod()
getCode
public Code getCode()
pushCode
public void pushCode(Code code)
popCode
public void popCode()
text
public ByteCompiler text(Code code,
java.lang.String text,
boolean newline)
symbol
public ByteCompiler symbol(java.lang.String name)
symbol
public ByteCompiler symbol(int index)
constant
public ByteCompiler constant(Any value,
boolean canchange)
addSwitch
public int addSwitch(java.util.Iterator keys)
reflect
public ByteCompiler reflect(java.lang.String classname)
compile
public boolean compile()
compileArgumentList
public void compileArgumentList(CompilableFunction function,
Node[] parameters)
compileArgumentList
public void compileArgumentList(CompilableFunction function,
Node[] parameters,
int contextindex)
compileArgumentList
public void compileArgumentList(Node[] parameters)
compileCall
public void compileCall(CompilableFunction function,
Node[] parameters)
getSignature
public static java.lang.String getSignature(CompilableFunction function)
any2boolean
public void any2boolean()
boolean2any
public void boolean2any()
accessInstance
public void accessInstance(ClassType context,
ClassType target)