public class Action extends RuleElement
rule| Modifier | Constructor | Description |
|---|---|---|
protected |
Action(Rule rule) |
|
protected |
Action(Rule rule,
ParseNode actionTree) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
compile(org.objectweb.asm.MethodVisitor mv,
CompileContext compileContext) |
|
static Action |
create(Rule rule,
String text) |
|
static Action |
create(Rule rule,
ParseNode actionTree) |
|
Object |
interpret(HelperAdapter helper) |
|
Type |
typeCheck(Type expected) |
|
void |
writeTo(StringWriter stringWriter) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetBindings, getTypeGroup, rebox, toStringprotected Action(Rule rule, ParseNode actionTree) throws TypeException
TypeExceptionprotected Action(Rule rule)
public static Action create(Rule rule, ParseNode actionTree) throws TypeException
TypeExceptionpublic static Action create(Rule rule, String text) throws ParseException, TypeException
ParseExceptionTypeExceptionpublic Type typeCheck(Type expected) throws TypeException
typeCheck in class RuleElementTypeExceptionpublic void compile(org.objectweb.asm.MethodVisitor mv,
CompileContext compileContext)
throws CompileException
compile in class RuleElementCompileExceptionpublic Object interpret(HelperAdapter helper) throws ExecuteException
interpret in class RuleElementExecuteExceptionpublic void writeTo(StringWriter stringWriter)
writeTo in class RuleElementCopyright © 2018. All rights reserved.