public class ASTHelper extends Object
A common base class of AST helper methods which can be shared across the classic and new parsers
Constructor and description |
---|
ASTHelper(SourceUnit controller, ClassLoader classLoader) |
ASTHelper() |
Type Params | Return Type | Name and description |
---|---|---|
|
public static String |
dot(String base, String name)
|
|
public ClassLoader |
getClassLoader() Returns our class loader (as supplied on construction). |
|
public SourceUnit |
getController() |
|
public String |
getPackageName() |
|
public void |
setClassLoader(ClassLoader classLoader) |
|
public void |
setController(SourceUnit controller) |
|
public PackageNode |
setPackage(String packageName, List<AnnotationNode> annotations) |
|
public void |
setPackageName(String packageName) |
base
- typically a packagename
- typically a simple unqualified class nameReturns our class loader (as supplied on construction).
Copyright © 2003-2022 The Apache Software Foundation. All rights reserved.