|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.groovy.syntax.parser.ASTHelper
A common base class of AST helper methods which can be shared across the classic and new parsers
Field Summary | |
protected ModuleNode |
output
|
protected static HashMap |
resolutions
|
Constructor Summary | |
ASTHelper()
|
|
ASTHelper(SourceUnit controller,
ClassLoader classLoader)
|
Method Summary | |
protected void |
addNewClassName(String name)
|
protected String |
dot(String base)
A synonym for dot( base, "" ) . |
protected String |
dot(String base,
String name)
Returns two names joined by a dot. |
ClassLoader |
getClassLoader()
Returns our class loader (as supplied on construction). |
SourceUnit |
getController()
|
String |
getPackageName()
|
protected void |
importClass(String importPackage,
String name,
String as)
|
protected void |
importPackageWithStar(String importPackage)
|
protected boolean |
isDatatype(String name)
Returns true if the specified name is a known type name. |
protected void |
makeModule()
|
protected String |
resolveName(String name,
boolean safe)
Returns a fully qualified name for any given potential type name. |
protected String |
resolveNewClassOrName(String name,
boolean safe)
|
void |
setClassLoader(ClassLoader classLoader)
|
void |
setController(SourceUnit controller)
|
void |
setPackageName(String packageName)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected ModuleNode output
protected static HashMap resolutions
Constructor Detail |
public ASTHelper(SourceUnit controller, ClassLoader classLoader)
public ASTHelper()
Method Detail |
public String getPackageName()
public void setPackageName(String packageName)
public ClassLoader getClassLoader()
public void setClassLoader(ClassLoader classLoader)
public SourceUnit getController()
public void setController(SourceUnit controller)
protected String resolveName(String name, boolean safe)
protected String dot(String base, String name)
protected void makeModule()
protected boolean isDatatype(String name)
protected String dot(String base)
dot( base, "" )
.
protected String resolveNewClassOrName(String name, boolean safe)
protected void addNewClassName(String name)
protected void importClass(String importPackage, String name, String as)
protected void importPackageWithStar(String importPackage)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |