Class JavaParseUtils
- java.lang.Object
-
- com.inductiveautomation.snap.javaparse.JavaParseUtils
-
public class JavaParseUtils extends java.lang.Object
A class to hold some utilities for JavaParse package.
-
-
Constructor Summary
Constructors Constructor Description JavaParseUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
getReceivingClass
public 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.
-
getExpression
public static JExprMath getExpression(JNode aNode, JExprMath.Op anOp)
Returns the expression for given node with given op, if available.
-
getVariableDeclForInitializer
public static JVariableDecl getVariableDeclForInitializer(JNode aNode)
Returns the VariableDecl for given node, if node is initializer.
-
-