Class JavaParseUtils


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

      • JavaParseUtils

        public JavaParseUtils()
    • 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.