| Modifier | Constructor and Description |
|---|---|
protected |
RuleElement(Rule rule) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
compile(org.objectweb.asm.MethodVisitor mv,
CompileContext compileContext) |
protected void |
compileBooleanConversion(Type fromType,
Type toType,
org.objectweb.asm.MethodVisitor mv,
CompileContext compileContext) |
protected void |
compileBox(Type toType,
org.objectweb.asm.MethodVisitor mv,
CompileContext compileContext)
box a value belonging to a primitive type
|
protected void |
compileNumericConversion(Type fromType,
Type toType,
org.objectweb.asm.MethodVisitor mv,
CompileContext compileContext) |
protected void |
compileObjectConversion(Type fromType,
Type toType,
org.objectweb.asm.MethodVisitor mv,
CompileContext compileContext) |
protected void |
compilePrimitiveConversion(Type fromType,
Type toType,
org.objectweb.asm.MethodVisitor mv,
CompileContext compileContext)
compile code to convert a numeric or character primitive to a numeric or character primitive
|
protected void |
compileStringConversion(Type fromType,
Type toType,
org.objectweb.asm.MethodVisitor mv,
CompileContext compileContext) |
protected void |
compileTypeConversion(Type fromType,
Type toType,
org.objectweb.asm.MethodVisitor mv,
CompileContext compileContext) |
protected void |
compileUnbox(Type fromType,
Type toType,
org.objectweb.asm.MethodVisitor mv,
CompileContext compileContext)
compile code to convert a value of a boxed type to a primitive type, possibly not the immediately
related primitive type
|
protected Bindings |
getBindings() |
protected TypeGroup |
getTypeGroup() |
abstract Object |
interpret(HelperAdapter helper) |
protected Object |
rebox(Type fromType,
Type toType,
Object value) |
String |
toString() |
abstract Type |
typeCheck(Type expected) |
abstract void |
writeTo(StringWriter stringWriter) |
protected Rule rule
protected RuleElement(Rule rule)
protected TypeGroup getTypeGroup()
protected Bindings getBindings()
public abstract Type typeCheck(Type expected) throws TypeException
TypeExceptionpublic abstract Object interpret(HelperAdapter helper) throws ExecuteException
ExecuteExceptionpublic abstract void compile(org.objectweb.asm.MethodVisitor mv,
CompileContext compileContext)
throws CompileException
CompileExceptionprotected void compileTypeConversion(Type fromType, Type toType, org.objectweb.asm.MethodVisitor mv, CompileContext compileContext) throws CompileException
CompileExceptionprotected void compileNumericConversion(Type fromType, Type toType, org.objectweb.asm.MethodVisitor mv, CompileContext compileContext) throws CompileException
CompileExceptionprotected void compileUnbox(Type fromType, Type toType, org.objectweb.asm.MethodVisitor mv, CompileContext compileContext) throws CompileException
fromType - the type of the value to be unboxedtoType - he type required after unboxingmv - the current method visitorcompileContext - the current compile contextCompileException - if a compile error occursprotected void compileBox(Type toType, org.objectweb.asm.MethodVisitor mv, CompileContext compileContext) throws CompileException
toType - the type required after boxingmv - the current method visitorcompileContext - the current compile contextCompileException - if a compile error occursprotected void compileStringConversion(Type fromType, Type toType, org.objectweb.asm.MethodVisitor mv, CompileContext compileContext) throws CompileException
CompileExceptionprotected void compilePrimitiveConversion(Type fromType, Type toType, org.objectweb.asm.MethodVisitor mv, CompileContext compileContext) throws CompileException
fromType - the type of the value to be convertedtoType - the type required after conversionmv - the current method visitorcompileContext - the current compile contextCompileException - if a compile error occursprotected void compileBooleanConversion(Type fromType, Type toType, org.objectweb.asm.MethodVisitor mv, CompileContext compileContext) throws CompileException
CompileExceptionprotected void compileObjectConversion(Type fromType, Type toType, org.objectweb.asm.MethodVisitor mv, CompileContext compileContext) throws CompileException
CompileExceptionpublic abstract void writeTo(StringWriter stringWriter)
Copyright © 2016. All rights reserved.