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) |
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
TypeException
public abstract Object interpret(HelperAdapter helper) throws ExecuteException
ExecuteException
public abstract void compile(org.objectweb.asm.MethodVisitor mv, CompileContext compileContext) throws CompileException
CompileException
protected void compileTypeConversion(Type fromType, Type toType, org.objectweb.asm.MethodVisitor mv, CompileContext compileContext) throws CompileException
CompileException
protected void compileNumericConversion(Type fromType, Type toType, org.objectweb.asm.MethodVisitor mv, CompileContext compileContext) throws CompileException
CompileException
protected void compileUnbox(Type fromType, Type toType, org.objectweb.asm.MethodVisitor mv, CompileContext compileContext) throws CompileException
fromType
- toType
- mv
- compileContext
- CompileException
protected void compileBox(Type toType, org.objectweb.asm.MethodVisitor mv, CompileContext compileContext) throws CompileException
toType
- mv
- compileContext
- CompileException
protected void compileStringConversion(Type fromType, Type toType, org.objectweb.asm.MethodVisitor mv, CompileContext compileContext) throws CompileException
CompileException
protected void compilePrimitiveConversion(Type fromType, Type toType, org.objectweb.asm.MethodVisitor mv, CompileContext compileContext) throws CompileException
fromType
- toType
- mv
- compileContext
- CompileException
protected void compileBooleanConversion(Type fromType, Type toType, org.objectweb.asm.MethodVisitor mv, CompileContext compileContext) throws CompileException
CompileException
protected void compileObjectConversion(Type fromType, Type toType, org.objectweb.asm.MethodVisitor mv, CompileContext compileContext) throws CompileException
CompileException
public abstract void writeTo(StringWriter stringWriter)
Copyright © 2015. All rights reserved.