Class JFile
java.lang.Object
com.inductiveautomation.snap.javatree.JNode
com.inductiveautomation.snap.javatree.JFile
The top level Java part describing a Java file.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the JClassDecl for the file.Returns the JClassDecls for the file.Returns the class loader used to resolve classes.getClassName
(JNode aNode, String aName) Returns a Class name for given node and name.getClassName
(String aName) Returns a Class name for given name referenced in file.protected String
Returns the type class of this file.getClassRef
(String aClassName) Returns a class reference for a fully specified class name.protected JClassRef
Returns the class reference for this node.Returns the exception if one was hit.Returns the import statements.protected String
Resolves file name from ClassDecl.Returns the package.Returns the package declaration.protected Package
Returns the package.Returns the package name.Returns the WebFile for this JFile.protected void
Init from another JFile.void
setException
(Exception anException) Sets the exception.void
Sets the package declaration.void
setSourceFile
(WebFile aFile) Sets the WebFile for this JFile.Methods inherited from class com.inductiveautomation.snap.javatree.JNode
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
-
Constructor Details
-
JFile
public JFile()
-
-
Method Details
-
getSourceFile
Returns the WebFile for this JFile. -
setSourceFile
Sets the WebFile for this JFile. -
getClassLoader
Returns the class loader used to resolve classes.- Overrides:
getClassLoader
in classJNode
-
getPackageDeclaration
Returns the package declaration. -
setPackageDecl
Sets the package declaration. -
getNameImpl
Resolves file name from ClassDecl.- Overrides:
getNameImpl
in classJNode
-
getPackageName
Returns the package name. -
getPackage
Returns the package. -
getPackageImpl
Returns the package. -
getImports
Returns the import statements. -
getClassDecl
Returns the JClassDecl for the file. -
getClassDecls
Returns the JClassDecls for the file. -
getClassName
Returns a Class name for given name referenced in file. -
getClassName
Returns a Class name for given node and name. -
getClassNameImpl
Returns the type class of this file.- Overrides:
getClassNameImpl
in classJNode
-
getClassRefImpl
Returns the class reference for this node.- Overrides:
getClassRefImpl
in classJNode
-
getClassRef
Returns a class reference for a fully specified class name. -
getException
Returns the exception if one was hit. -
setException
Sets the exception. -
init
Init from another JFile.
-