Class ExpressionHelper
- java.lang.Object
-
- org.jboss.byteman.rule.expression.ExpressionHelper
-
public class ExpressionHelper extends java.lang.Object
helper class to transform parsed expression AST into an actual Expression instance
-
-
Constructor Summary
Constructors Constructor Description ExpressionHelper()
-
Method Summary
-
-
-
Method Detail
-
createExpression
public static Expression createExpression(Rule rule, Bindings bindings, ParseNode exprTree) throws TypeException
- Throws:
TypeException
-
createExpression
public static Expression createExpression(Rule rule, Bindings bindings, ParseNode exprTree, Type type) throws TypeException
- Throws:
TypeException
-
createFieldExpression
public static AssignableExpression createFieldExpression(Rule rule, Bindings bindings, ParseNode fieldTree, ParseNode targetTree, Type type) throws TypeException
- Throws:
TypeException
-
createClassLiteralExpression
public static ClassLiteralExpression createClassLiteralExpression(Rule rule, Bindings bindings, ParseNode pathTree, Type type) throws TypeException
- Throws:
TypeException
-
createCallExpression
public static Expression createCallExpression(Rule rule, Bindings bindings, ParseNode selectorTree, ParseNode recipientTree, ParseNode argTree, Type type) throws TypeException
- Throws:
TypeException
-
createPathList
public static java.lang.String[] createPathList(ParseNode pathTree)
-
createThrowExpression
public static Expression createThrowExpression(Rule rule, Bindings bindings, ParseNode typeNameTree, ParseNode argTree) throws TypeException
- Throws:
TypeException
-
createNewExpression
public static Expression createNewExpression(Rule rule, Bindings bindings, ParseNode typeNameTree, ParseNode argTree, ParseNode arrayDimsTree) throws TypeException
- Throws:
TypeException
-
createUnaryExpression
public static Expression createUnaryExpression(Rule rule, Bindings bindings, ParseNode exprTree, Type type) throws TypeException
- Throws:
TypeException
-
createBinaryExpression
public static Expression createBinaryExpression(Rule rule, Bindings bindings, ParseNode exprTree, Type type) throws TypeException
- Throws:
TypeException
-
createTernaryExpression
public static Expression createTernaryExpression(Rule rule, Bindings bindings, ParseNode exprTree, Type type) throws TypeException
- Throws:
TypeException
-
createArrayInitExpression
public static ArrayInitExpression createArrayInitExpression(Rule rule, Bindings bindings, ParseNode exprTree, Type type) throws TypeException
- Throws:
TypeException
-
createAssignableExpression
public static AssignableExpression createAssignableExpression(Rule rule, Bindings bindings, ParseNode exprTree, Type type) throws TypeException
- Throws:
TypeException
-
createExpressionList
public static java.util.List<Expression> createExpressionList(Rule rule, Bindings bindings, ParseNode exprTree) throws TypeException
- Throws:
TypeException
-
createExpressionList
public static java.util.List<Expression> createExpressionList(Rule rule, Bindings bindings, ParseNode exprTree, Type type) throws TypeException
- Throws:
TypeException
-
createNewArrayDimsList
public static java.util.List<Expression> createNewArrayDimsList(Rule rule, Bindings bindings, ParseNode exprTree) throws TypeException
- Throws:
TypeException
-
-