Class JavaData
java.lang.Object
com.inductiveautomation.snap.filedata.SnapData
com.inductiveautomation.snap.filedata.JavaData
A file object for managing Java files.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected JFile
Returns the parsed Java file.static JavaData
Returns 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.boolean
Returns whether Java file needs compile.Returns the package name.void
setBytes
(byte[] theBytes) Sets the file bytes.Methods inherited from class com.inductiveautomation.snap.filedata.SnapData
createBytes, createSourceURL, delete, get, getBytes, getInputStream, getSite, getSource, getSourceFile, getSourceURL, is, refresh, save, setSource
-
Constructor Details
-
JavaData
public JavaData()
-
-
Method Details
-
getFile
-
getClassName
Returns the class name. -
getPackageName
Returns the package name. -
getClassFile
Returns the class file. -
getNeedsCompile
public boolean getNeedsCompile()Returns whether Java file needs compile. -
getCompiledClass
Returns the class compiled from this java file. -
getClassFiles
Returns the class files for this Java file. -
getDependencies
Returns the list of class names that this class file is dependent on. -
getJFile
Returns the parsed Java file. -
createJFile
Returns the parsed Java file. -
getJFileClassName
Returns the class name. -
getJFileDependencies
Returns dependencies for JFile. -
setBytes
public void setBytes(byte[] theBytes) Sets the file bytes. -
get
Returns the JavaData for given file.
-