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 SummaryConstructors
- 
Method SummaryModifier 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 StringReturns the type class of this file.getClassRef(String aClassName) Returns a class reference for a fully specified class name.protected JClassRefReturns the class reference for this node.Returns the exception if one was hit.Returns the import statements.protected StringResolves file name from ClassDecl.Returns the package.Returns the package declaration.protected PackageReturns the package.Returns the package name.Returns the WebFile for this JFile.protected voidInit from another JFile.voidsetException(Exception anException) Sets the exception.voidSets the package declaration.voidsetSourceFile(WebFile aFile) Sets the WebFile for this JFile.Methods inherited from class com.inductiveautomation.snap.javatree.JNodeaddChild, 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- 
JFilepublic JFile()
 
- 
- 
Method Details- 
getSourceFileReturns the WebFile for this JFile.
- 
setSourceFileSets the WebFile for this JFile.
- 
getClassLoaderReturns the class loader used to resolve classes.- Overrides:
- getClassLoaderin class- JNode
 
- 
getPackageDeclarationReturns the package declaration.
- 
setPackageDeclSets the package declaration.
- 
getNameImplResolves file name from ClassDecl.- Overrides:
- getNameImplin class- JNode
 
- 
getPackageNameReturns the package name.
- 
getPackageReturns the package.
- 
getPackageImplReturns the package.
- 
getImportsReturns the import statements.
- 
getClassDeclReturns the JClassDecl for the file.
- 
getClassDeclsReturns the JClassDecls for the file.
- 
getClassNameReturns a Class name for given name referenced in file.
- 
getClassNameReturns a Class name for given node and name.
- 
getClassNameImplReturns the type class of this file.- Overrides:
- getClassNameImplin class- JNode
 
- 
getClassRefImplReturns the class reference for this node.- Overrides:
- getClassRefImplin class- JNode
 
- 
getClassRefReturns a class reference for a fully specified class name.
- 
getExceptionReturns the exception if one was hit.
- 
setExceptionSets the exception.
- 
initInit from another JFile.
 
-