Class JavaData
- java.lang.Object
-
- com.inductiveautomation.snap.filedata.SnapData
-
- com.inductiveautomation.snap.filedata.JavaData
-
public class JavaData extends SnapData
A file object for managing Java files.
-
-
Constructor Summary
Constructors Constructor Description JavaData()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected JFilecreateJFile()Returns the parsed Java file.static JavaDataget(WebFile aFile)Returns the JavaData for given file.WebFilegetClassFile()Returns the class file.WebFile[]getClassFiles()Returns the class files for this Java file.java.lang.StringgetClassName()Returns the class name.java.lang.ClassgetCompiledClass()Returns the class compiled from this java file.java.lang.String[]getDependencies()Returns the list of class names that this class file is dependent on.WebFilegetFile()JFilegetJFile()Returns the parsed Java file.java.lang.StringgetJFileClassName()Returns the class name.java.lang.String[]getJFileDependencies()Returns dependencies for JFile.booleangetNeedsCompile()Returns whether Java file needs compile.java.lang.StringgetPackageName()Returns the package name.voidsetBytes(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
-
-
-
-
Method Detail
-
getFile
public WebFile getFile()
-
getClassName
public java.lang.String getClassName()
Returns the class name.
-
getPackageName
public java.lang.String getPackageName()
Returns the package name.
-
getClassFile
public WebFile getClassFile()
Returns the class file.
-
getNeedsCompile
public boolean getNeedsCompile()
Returns whether Java file needs compile.
-
getCompiledClass
public java.lang.Class getCompiledClass()
Returns the class compiled from this java file.
-
getClassFiles
public WebFile[] getClassFiles()
Returns the class files for this Java file.
-
getDependencies
public java.lang.String[] getDependencies()
Returns the list of class names that this class file is dependent on.
-
getJFile
public JFile getJFile()
Returns the parsed Java file.
-
createJFile
protected JFile createJFile()
Returns the parsed Java file.
-
getJFileClassName
public java.lang.String getJFileClassName()
Returns the class name.
-
getJFileDependencies
public java.lang.String[] getJFileDependencies()
Returns dependencies for JFile.
-
setBytes
public void setBytes(byte[] theBytes)
Sets the file bytes.
-
-