Modifier and Type | Method and Description |
---|---|
Rule |
TransformContext.createRule(java.lang.String triggerMethodName,
java.lang.String triggerMethodDescriptor)
called by a check adapter to create a rule specific to a given trigger method.
|
Rule |
Transform.getRule() |
Rule |
TransformContext.lookupRule(java.lang.String triggerMethodName,
java.lang.String triggerMethodDescriptor)
called by a trigger adapter to find a rule specific to a given trigger method,
expects to find a rule created by the corresponding check adapter.
|
Modifier and Type | Method and Description |
---|---|
void |
HelperManager.installed(Rule rule) |
boolean |
RuleScript.recordMethodTransform(java.lang.ClassLoader loader,
java.lang.String internalClassName,
java.lang.String triggerMethodName,
java.lang.String desc,
Rule rule)
record the fact that a trigger call has been successfully installed into bytecode associated with a specific
class and loader and a corresponding rule instance been installed
|
boolean |
RuleScript.recordTransform(java.lang.ClassLoader loader,
java.lang.String internalClassName,
java.lang.String triggerMethodName,
java.lang.String desc,
Rule rule,
java.lang.Throwable th)
record the fact that a trigger call has failed to install into bytecode associated with a specific
class and loader
|
void |
HelperManager.uninstalled(Rule rule) |
Constructor and Description |
---|
Transform(java.lang.ClassLoader loader,
java.lang.String internalClassName,
Rule rule) |
Transform(java.lang.ClassLoader loader,
java.lang.String internalClassName,
java.lang.String triggerMethodName,
Rule rule,
java.lang.Throwable th) |
Modifier and Type | Field and Description |
---|---|
protected Rule |
RuleMethodAdapter.rule |
Constructor and Description |
---|
RuleGeneratorAdapter(org.objectweb.asm.MethodVisitor mv,
TransformContext transformContext,
int access,
java.lang.String name,
java.lang.String desc,
Rule rule)
Creates a new
RuleGeneratorAdapter . |
RuleMethodAdapter(org.objectweb.asm.MethodVisitor mv,
TransformContext transformContext,
int access,
java.lang.String name,
java.lang.String desc,
Rule rule) |
Modifier and Type | Method and Description |
---|---|
int |
RuleCheck.installParamTypes(Rule rule,
java.lang.String targetClassName,
int access,
java.lang.String candidateName,
java.lang.String candidateDesc) |
Modifier and Type | Field and Description |
---|---|
protected Rule |
RuleElement.rule |
Modifier and Type | Method and Description |
---|---|
static Rule |
Rule.create(RuleScript ruleScript,
java.lang.ClassLoader loader,
HelperManager helperManager) |
Modifier and Type | Method and Description |
---|---|
static Event |
Event.create(Rule rule,
ParseNode eventTree) |
static Action |
Action.create(Rule rule,
ParseNode actionTree) |
static Condition |
Condition.create(Rule rule,
ParseNode conditionTree) |
static Event |
Event.create(Rule rule,
java.lang.String text) |
static Action |
Action.create(Rule rule,
java.lang.String text) |
static Condition |
Condition.create(Rule rule,
java.lang.String text) |
Constructor and Description |
---|
Action(Rule rule) |
Action(Rule rule,
ParseNode actionTree) |
Condition(Rule rule) |
Condition(Rule rule,
ParseNode conditionTree) |
Event(Rule rule) |
Event(Rule rule,
ParseNode eventTree) |
RuleElement(Rule rule) |
Constructor and Description |
---|
Binding(Rule rule,
java.lang.String name) |
Binding(Rule rule,
java.lang.String name,
Type type) |
Binding(Rule rule,
java.lang.String name,
Type type,
Expression value) |
Modifier and Type | Method and Description |
---|---|
static java.lang.Class |
Compiler.getHelperAdapter(Rule rule,
java.lang.Class helperClass,
boolean compileToBytecode) |
Modifier and Type | Field and Description |
---|---|
protected Rule |
Expression.rule |
Modifier and Type | Method and Description |
---|---|
static AssignableExpression |
ExpressionHelper.createAssignableExpression(Rule rule,
Bindings bindings,
ParseNode exprTree,
Type type) |
static Expression |
ExpressionHelper.createBinaryExpression(Rule rule,
Bindings bindings,
ParseNode exprTree,
Type type) |
static Expression |
ExpressionHelper.createCallExpression(Rule rule,
Bindings bindings,
ParseNode selectorTree,
ParseNode recipientTree,
ParseNode argTree,
Type type) |
static Expression |
ExpressionHelper.createClassLiteralExpression(Rule rule,
Bindings bindings,
ParseNode pathTree,
Type type) |
static Expression |
ExpressionHelper.createExpression(Rule rule,
Bindings bindings,
ParseNode exprTree) |
static Expression |
ExpressionHelper.createExpression(Rule rule,
Bindings bindings,
ParseNode exprTree,
Type type) |
static java.util.List<Expression> |
ExpressionHelper.createExpressionList(Rule rule,
Bindings bindings,
ParseNode exprTree) |
static java.util.List<Expression> |
ExpressionHelper.createExpressionList(Rule rule,
Bindings bindings,
ParseNode exprTree,
Type type) |
static AssignableExpression |
ExpressionHelper.createFieldExpression(Rule rule,
Bindings bindings,
ParseNode fieldTree,
ParseNode targetTree,
Type type) |
static Expression |
ExpressionHelper.createNewExpression(Rule rule,
Bindings bindings,
ParseNode typeNameTree,
ParseNode argTree,
ParseNode arrayDimsTree) |
static java.util.List<Expression> |
ExpressionHelper.createNewExpressionIndexList(Rule rule,
Bindings bindings,
ParseNode exprTree) |
static Expression |
ExpressionHelper.createTernaryExpression(Rule rule,
Bindings bindings,
ParseNode exprTree,
Type type) |
static Expression |
ExpressionHelper.createThrowExpression(Rule rule,
Bindings bindings,
ParseNode typeNameTree,
ParseNode argTree) |
static Expression |
ExpressionHelper.createUnaryExpression(Rule rule,
Bindings bindings,
ParseNode exprTree,
Type type) |
Constructor and Description |
---|
ArithmeticExpression(Rule rule,
int oper,
ParseNode token,
Expression left,
Expression right) |
ArrayExpression(Rule rule,
Type type,
ParseNode token,
Expression arrayRef,
java.util.List<Expression> idxList) |
AssignableExpression(Rule rule,
Type type,
ParseNode token)
Create a new expression.
|
AssignExpression(Rule rule,
ParseNode token,
AssignableExpression left,
Expression right) |
BinaryOperExpression(Rule rule,
int oper,
Type type,
ParseNode token,
Expression operand1,
Expression operand2) |
BitExpression(Rule rule,
int oper,
ParseNode token,
Expression left,
Expression right) |
BooleanExpression(Rule rule,
int oper,
ParseNode token,
Expression left,
Expression right) |
BooleanLiteral(Rule rule,
ParseNode token) |
ClassLiteralExpression(Rule rule,
Type type,
ParseNode pathTree,
java.lang.String[] pathList) |
ComparisonExpression(Rule rule,
int oper,
ParseNode token,
Expression left,
Expression right) |
ConditionalEvalExpression(Rule rule,
Type type,
ParseNode token,
Expression cond,
Expression if_expr,
Expression else_expr) |
DollarExpression(Rule rule,
Type type,
ParseNode token,
int index)
constructor for param bindings or special bindings
|
DollarExpression(Rule rule,
Type type,
ParseNode token,
java.lang.String name)
constructor for local var bindings
|
Expression(Rule rule,
Type type,
ParseNode token)
Create a new expression.
|
FieldExpression(Rule rule,
Type type,
ParseNode fieldTree,
java.lang.String fieldName,
Expression owner,
java.lang.String[] pathList) |
LogicalExpression(Rule rule,
int oper,
ParseNode token,
Expression left,
Expression right) |
MethodExpression(Rule rule,
Type type,
ParseNode token,
Expression recipient,
java.util.List<Expression> arguments,
java.lang.String[] pathList) |
MinusExpression(Rule rule,
ParseNode token,
Expression operand) |
NewExpression(Rule rule,
ParseNode token,
java.util.List<Expression> arguments,
java.util.List<Expression> arraySizes) |
NotExpression(Rule rule,
ParseNode token,
Expression operand) |
NullLiteral(Rule rule,
ParseNode token) |
NumericLiteral(Rule rule,
Type type,
ParseNode token) |
PlusExpression(Rule rule,
ParseNode token,
Expression left,
Expression right) |
ReturnExpression(Rule rule,
ParseNode token,
Expression returnValue) |
ShiftExpression(Rule rule,
int oper,
ParseNode token,
Expression left,
Expression right) |
StaticExpression(Rule rule,
Type type,
ParseNode token,
java.lang.String fieldName,
java.lang.String ownerTypeName) |
StringLiteral(Rule rule,
ParseNode token) |
StringPlusExpression(Rule rule,
ParseNode token,
Expression left,
Expression right) |
TernaryOperExpression(Rule rule,
int oper,
Type type,
ParseNode token,
Expression operand1,
Expression operand2,
Expression operand3) |
ThrowExpression(Rule rule,
ParseNode token,
java.util.List<Expression> arguments) |
TwiddleExpression(Rule rule,
ParseNode token,
Expression operand) |
UnaryOperExpression(Rule rule,
int oper,
Type type,
ParseNode token,
Expression operand) |
Variable(Rule rule,
Type type,
ParseNode token) |
Variable(Rule rule,
Type type,
ParseNode token,
java.lang.String name) |
Modifier and Type | Field and Description |
---|---|
protected Rule |
Helper.rule |
Modifier and Type | Method and Description |
---|---|
static void |
Helper.installed(Rule rule) |
static void |
Helper.uninstalled(Rule rule) |
Constructor and Description |
---|
Helper(Rule rule) |
InterpretedHelper(Rule rule) |
Copyright © 2015. All Rights Reserved.