Class JavaParseUtils

java.lang.Object
com.inductiveautomation.snap.javaparse.JavaParseUtils

public class JavaParseUtils extends Object
A class to hold some utilities for JavaParse package.
  • Constructor Details

    • JavaParseUtils

      public JavaParseUtils()
  • Method Details

    • getReceivingClass

      public 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.
    • 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.