public abstract class RuleElement
extends java.lang.Object
| 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 java.lang.Object |
interpret(HelperAdapter helper) |
java.lang.String |
toString() |
abstract Type |
typeCheck(Type expected) |
abstract void |
writeTo(java.io.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 java.lang.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 - toType - mv - compileContext - CompileExceptionprotected void compileBox(Type toType, org.objectweb.asm.MethodVisitor mv, CompileContext compileContext) throws CompileException
toType - mv - compileContext - CompileExceptionprotected 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 - toType - mv - compileContext - CompileExceptionprotected 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 java.lang.String toString()
toString in class java.lang.Objectpublic abstract void writeTo(java.io.StringWriter stringWriter)
Copyright © 2013. All Rights Reserved.