Class ASTHelper

  • Direct Known Subclasses:

    public class ASTHelper
    extends Object
    A common base class of AST helper methods which can be shared across the classic and new parsers
    • Field Detail

      • resolutions

        protected static Map resolutions
    • Constructor Detail

      • ASTHelper

        public ASTHelper()
    • Method Detail

      • getPackageName

        public String getPackageName()
      • setPackageName

        public void setPackageName​(String packageName)
      • getClassLoader

        public ClassLoader getClassLoader()
        Returns our class loader (as supplied on construction).
      • setClassLoader

        public void setClassLoader​(ClassLoader classLoader)
      • getController

        public SourceUnit getController()
      • setController

        public void setController​(SourceUnit controller)
      • dot

        public static String dot​(String base,
                                 String name)
        base - typically a package
        name - typically a simple unqualified class name
        Two names joined by a dot. If the base name is empty, returns the name unchanged.
      • makeModule

        protected void makeModule()
      • dot

        protected String dot​(String base)
        A synonym for dot( base, "" ).
      • addStaticStarImport

        protected void addStaticStarImport​(ClassNode type,
                                           String importClass)
      • addStarImport

        protected void addStarImport​(String importPackage)