public class Action extends RuleElement
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<Expression> |
action |
rule| Modifier | Constructor and Description |
|---|---|
protected |
Action(Rule rule) |
protected |
Action(Rule rule,
ParseNode actionTree) |
| Modifier and Type | Method and Description |
|---|---|
void |
compile(MethodVisitor mv,
CompileContext compileContext) |
static Action |
create(Rule rule,
ParseNode actionTree) |
static Action |
create(Rule rule,
java.lang.String text) |
java.lang.Object |
interpret(HelperAdapter helper) |
Type |
typeCheck(Type expected) |
void |
writeTo(java.io.StringWriter stringWriter) |
compileBooleanConversion, compileBox, compileNumericConversion, compileObjectConversion, compilePrimitiveConversion, compileStringConversion, compileTypeConversion, compileUnbox, getBindings, getTypeGroup, toStringprivate java.util.List<Expression> action
protected 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, java.lang.String text) throws ParseException, TypeException
ParseExceptionTypeExceptionpublic Type typeCheck(Type expected) throws TypeException
typeCheck in class RuleElementTypeExceptionpublic void compile(MethodVisitor mv,
CompileContext compileContext)
throws CompileException
compile in class RuleElementCompileExceptionpublic java.lang.Object interpret(HelperAdapter helper) throws ExecuteException
interpret in class RuleElementExecuteExceptionpublic void writeTo(java.io.StringWriter stringWriter)
writeTo in class RuleElement