public class JavaParseUtils
extends java.lang.Object
Constructor and Description |
---|
JavaParseUtils() |
Modifier and Type | Method and Description |
---|---|
static JExprMath |
getExpression(JNode aNode,
JExprMath.Op anOp)
Returns the expression for given node with given op, if available.
|
static java.lang.Class |
getReceivingClass(JNode aNode)
Returns the assignable type of given node assuming it's the receiving expression of an assignment or a method arg.
|
static JVariableDecl |
getVariableDeclForInitializer(JNode aNode)
Returns the VariableDecl for given node, if node is initializer.
|
public static java.lang.Class getReceivingClass(JNode aNode)
public static JExprMath getExpression(JNode aNode, JExprMath.Op anOp)
public static JVariableDecl getVariableDeclForInitializer(JNode aNode)