Class JavaParseUtils
java.lang.Object
com.inductiveautomation.snap.javaparse.JavaParseUtils
A class to hold some utilities for JavaParse package.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic JExprMath
getExpression
(JNode aNode, JExprMath.Op anOp) Returns the expression for given node with given op, if available.static 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
Returns the VariableDecl for given node, if node is initializer.
-
Constructor Details
-
JavaParseUtils
public JavaParseUtils()
-
-
Method Details
-
getReceivingClass
Returns the assignable type of given node assuming it's the receiving expression of an assignment or a method arg. -
getExpression
Returns the expression for given node with given op, if available. -
getVariableDeclForInitializer
Returns the VariableDecl for given node, if node is initializer.
-