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, toString
protected Event(Rule rule, ParseNode eventTree) throws TypeException
TypeException
protected Event(Rule rule)
public static Event create(Rule rule, ParseNode eventTree) throws TypeException
TypeException
public static Event create(Rule rule, java.lang.String text) throws ParseException, TypeException
ParseException
TypeException
public Bindings getBindings()
getBindings
in class RuleElement
public Type typeCheck(Type expected) throws TypeException
typeCheck
in class RuleElement
TypeException
private void typeCheck(Binding binding) throws TypeException
TypeException
private void createBindings(ParseNode eventTree) throws TypeException
TypeException
private void addBinding(Bindings bindings, ParseNode bindingTree) throws TypeException
TypeException
public Binding createBinding(ParseNode varTree) throws TypeException
TypeException
private Type getBindingType(ParseNode typeTree)
typeTree
- public java.lang.Object interpret(HelperAdapter helper) throws ExecuteException
interpret
in class RuleElement
ExecuteException
public void compile(MethodVisitor mv, CompileContext compileContext) throws CompileException
compile
in class RuleElement
CompileException
public void writeTo(java.io.StringWriter stringWriter)
writeTo
in class RuleElement