Class ExpressionHelper
java.lang.Object
org.jboss.byteman.rule.expression.ExpressionHelper
helper class to transform parsed expression AST into an actual Expression instance
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ArrayInitExpressioncreateArrayInitExpression(Rule rule, Bindings bindings, ParseNode exprTree, Type type) static AssignableExpressioncreateAssignableExpression(Rule rule, Bindings bindings, ParseNode exprTree, Type type) static ExpressioncreateBinaryExpression(Rule rule, Bindings bindings, ParseNode exprTree, Type type) static ExpressioncreateCallExpression(Rule rule, Bindings bindings, ParseNode selectorTree, ParseNode recipientTree, ParseNode argTree, Type type) static ClassLiteralExpressioncreateClassLiteralExpression(Rule rule, Bindings bindings, ParseNode pathTree, Type type) static ExpressioncreateExpression(Rule rule, Bindings bindings, ParseNode exprTree) static ExpressioncreateExpression(Rule rule, Bindings bindings, ParseNode exprTree, Type type) static List<Expression> createExpressionList(Rule rule, Bindings bindings, ParseNode exprTree) static List<Expression> createExpressionList(Rule rule, Bindings bindings, ParseNode exprTree, Type type) static AssignableExpressioncreateFieldExpression(Rule rule, Bindings bindings, ParseNode fieldTree, ParseNode targetTree, Type type) static List<Expression> createNewArrayDimsList(Rule rule, Bindings bindings, ParseNode exprTree) static ExpressioncreateNewExpression(Rule rule, Bindings bindings, ParseNode typeNameTree, ParseNode argTree, ParseNode arrayDimsTree) static String[]createPathList(ParseNode pathTree) static ExpressioncreateTernaryExpression(Rule rule, Bindings bindings, ParseNode exprTree, Type type) static ExpressioncreateThrowExpression(Rule rule, Bindings bindings, ParseNode typeNameTree, ParseNode argTree) static ExpressioncreateUnaryExpression(Rule rule, Bindings bindings, ParseNode exprTree, Type type)
-
Constructor Details
-
ExpressionHelper
public ExpressionHelper()
-
-
Method Details
-
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
-
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 List<Expression> createExpressionList(Rule rule, Bindings bindings, ParseNode exprTree) throws TypeException - Throws:
TypeException
-
createExpressionList
public static List<Expression> createExpressionList(Rule rule, Bindings bindings, ParseNode exprTree, Type type) throws TypeException - Throws:
TypeException
-
createNewArrayDimsList
public static List<Expression> createNewArrayDimsList(Rule rule, Bindings bindings, ParseNode exprTree) throws TypeException - Throws:
TypeException
-