public class JFile extends JNode
Constructor and Description |
---|
JFile() |
Modifier and Type | Method and Description |
---|---|
JClassDecl |
getClassDecl()
Returns the JClassDecl for the file.
|
java.util.List<JClassDecl> |
getClassDecls()
Returns the JClassDecls for the file.
|
WebClassLoader |
getClassLoader()
Returns the class loader used to resolve classes.
|
java.lang.String |
getClassName(JNode aNode,
java.lang.String aName)
Returns a Class name for given node and name.
|
java.lang.String |
getClassName(java.lang.String aName)
Returns a Class name for given name referenced in file.
|
protected java.lang.String |
getClassNameImpl()
Returns the type class of this file.
|
JClassRef |
getClassRef(java.lang.String aClassName)
Returns a class reference for a fully specified class name.
|
protected JClassRef |
getClassRefImpl()
Returns the class reference for this node.
|
java.lang.Exception |
getException()
Returns the exception if one was hit.
|
java.util.List<JImportDecl> |
getImports()
Returns the import statements.
|
protected java.lang.String |
getNameImpl()
Resolves file name from ClassDecl.
|
java.lang.Package |
getPackage()
Returns the package.
|
JPackageDecl |
getPackageDeclaration()
Returns the package declaration.
|
protected java.lang.Package |
getPackageImpl()
Returns the package.
|
java.lang.String |
getPackageName()
Returns the package name.
|
WebFile |
getSourceFile()
Returns the WebFile for this JFile.
|
protected void |
init(JFile aJFile)
Init from another JFile.
|
void |
setException(java.lang.Exception anException)
Sets the exception.
|
void |
setPackageDecl(JPackageDecl aPD)
Sets the package declaration.
|
void |
setSourceFile(WebFile aFile)
Sets the WebFile for this JFile.
|
addChild, buildChildren, getBlock, getChild, getChildCount, getChildren, getClassName, getClassRef, getEnclosingClassDecl, getEnclosingMemberDecl, getEnclosingMethodDecl, getEnd, getEndToken, getFile, getJClass, getLineIndex, getName, getNodeAtCharIndex, getNodeFields, getNodeFieldsImpl, getNodeParents, getNodePath, getNodeString, getOthers, getParent, getParent, getReferencedClasses, getReferencedClassNames, getReferencedClassNames, getReferencedClassNames, getStart, getStartToken, getString, getVariableDecl, getVariableDeclInside, getVariableDecls, isBlock, setClassName, setClassRef, setEndToken, setJClass, setParent, setStartToken, toString
public WebFile getSourceFile()
public void setSourceFile(WebFile aFile)
public WebClassLoader getClassLoader()
getClassLoader
in class JNode
public JPackageDecl getPackageDeclaration()
public void setPackageDecl(JPackageDecl aPD)
protected java.lang.String getNameImpl()
getNameImpl
in class JNode
public java.lang.String getPackageName()
public java.lang.Package getPackage()
protected java.lang.Package getPackageImpl()
public java.util.List<JImportDecl> getImports()
public JClassDecl getClassDecl()
public java.util.List<JClassDecl> getClassDecls()
public java.lang.String getClassName(java.lang.String aName)
public java.lang.String getClassName(JNode aNode, java.lang.String aName)
protected java.lang.String getClassNameImpl()
getClassNameImpl
in class JNode
protected JClassRef getClassRefImpl()
getClassRefImpl
in class JNode
public JClassRef getClassRef(java.lang.String aClassName)
public java.lang.Exception getException()
public void setException(java.lang.Exception anException)
protected void init(JFile aJFile)