Class JavaData
java.lang.Object
com.inductiveautomation.snap.filedata.SnapData
com.inductiveautomation.snap.filedata.JavaData
A file object for managing Java files.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected JFileReturns the parsed Java file.static JavaDataReturns the JavaData for given file.Returns the class file.WebFile[]Returns the class files for this Java file.Returns the class name.Returns the class compiled from this java file.String[]Returns the list of class names that this class file is dependent on.getFile()getJFile()Returns the parsed Java file.Returns the class name.String[]Returns dependencies for JFile.booleanReturns whether Java file needs compile.Returns the package name.voidsetBytes(byte[] theBytes) Sets the file bytes.Methods inherited from class com.inductiveautomation.snap.filedata.SnapDatacreateBytes, createSourceURL, delete, get, getBytes, getInputStream, getSite, getSource, getSourceFile, getSourceURL, is, refresh, save, setSource
- 
Constructor Details- 
JavaDatapublic JavaData()
 
- 
- 
Method Details- 
getFile
- 
getClassNameReturns the class name.
- 
getPackageNameReturns the package name.
- 
getClassFileReturns the class file.
- 
getNeedsCompilepublic boolean getNeedsCompile()Returns whether Java file needs compile.
- 
getCompiledClassReturns the class compiled from this java file.
- 
getClassFilesReturns the class files for this Java file.
- 
getDependenciesReturns the list of class names that this class file is dependent on.
- 
getJFileReturns the parsed Java file.
- 
createJFileReturns the parsed Java file.
- 
getJFileClassNameReturns the class name.
- 
getJFileDependenciesReturns dependencies for JFile.
- 
setBytespublic void setBytes(byte[] theBytes) Sets the file bytes.
- 
getReturns the JavaData for given file.
 
-