public class Event extends RuleElement
rule| Modifier | Constructor and Description |
|---|---|
protected |
Event(Rule rule) |
protected |
Event(Rule rule,
ParseNode eventTree) |
| Modifier and Type | Method and Description |
|---|---|
private void |
addBinding(Bindings bindings,
ParseNode bindingTree) |
void |
compile(MethodVisitor mv,
CompileContext compileContext) |
static Event |
create(Rule rule,
ParseNode eventTree) |
static Event |
create(Rule rule,
java.lang.String text) |
Binding |
createBinding(ParseNode varTree) |
private void |
createBindings(ParseNode eventTree) |
Bindings |
getBindings() |
private Type |
getBindingType(ParseNode typeTree)
create and return a type for a binding or return null if the type cannot be created
|
java.lang.Object |
interpret(HelperAdapter helper) |
private void |
typeCheck(Binding binding) |
Type |
typeCheck(Type expected) |
void |
writeTo(java.io.StringWriter stringWriter) |
compileBooleanConversion, compileBox, compileNumericConversion, compileObjectConversion, compilePrimitiveConversion, compileStringConversion, compileTypeConversion, compileUnbox, getTypeGroup, toStringprotected Event(Rule rule, ParseNode eventTree) throws TypeException
TypeExceptionprotected Event(Rule rule)
public static Event create(Rule rule, ParseNode eventTree) throws TypeException
TypeExceptionpublic static Event create(Rule rule, java.lang.String text) throws ParseException, TypeException
ParseExceptionTypeExceptionpublic Bindings getBindings()
getBindings in class RuleElementpublic Type typeCheck(Type expected) throws TypeException
typeCheck in class RuleElementTypeExceptionprivate void typeCheck(Binding binding) throws TypeException
TypeExceptionprivate void createBindings(ParseNode eventTree) throws TypeException
TypeExceptionprivate void addBinding(Bindings bindings, ParseNode bindingTree) throws TypeException
TypeExceptionpublic Binding createBinding(ParseNode varTree) throws TypeException
TypeExceptionprivate Type getBindingType(ParseNode typeTree)
typeTree - public java.lang.Object interpret(HelperAdapter helper) throws ExecuteException
interpret in class RuleElementExecuteExceptionpublic void compile(MethodVisitor mv,
CompileContext compileContext)
throws CompileException
compile in class RuleElementCompileExceptionpublic void writeTo(java.io.StringWriter stringWriter)
writeTo in class RuleElement