Class ClassData
java.lang.Object
com.inductiveautomation.snap.filedata.SnapData
com.inductiveautomation.snap.filedata.ClassData
- All Implemented Interfaces:
- WebSite.Servlet
A file to represent a Java class.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic ClassDataReturns the ClassData for given file.Returns the class name.Returns the top class name.Returns the class compiled from this java file.String[]Returns the list of class names that this class file is dependent on.booleanReturns whether class file has main method.Returns a new instance of the compiled class of this java file.<T> TgetInstance(Class<T> aClass) Returns a new instance of the compiled class of this java file as requested class, if applicable.getInstanceURL(Object anObj) Returns a URL for given instance.Returns the JavaFile for this class, if it can be found.Returns the package name.getURLInstance(WebURL aURL) Returns an instance for given id.Returns a query file for given query.voidrunMain()Runs the main method of compiled class.Methods inherited from class com.inductiveautomation.snap.filedata.SnapDatacreateBytes, createSourceURL, delete, get, getBytes, getInputStream, getSite, getSource, getSourceFile, getSourceURL, is, refresh, save, setBytes, setSource
- 
Constructor Details- 
ClassDatapublic ClassData()
 
- 
- 
Method Details- 
getClassNameReturns the class name.
- 
getClassNameTopReturns the top class name.
- 
getPackageNameReturns the package name.
- 
getJavaFileReturns the JavaFile for this class, if it can be found.
- 
getCompiledClassReturns the class compiled from this java file.
- 
getInstanceReturns a new instance of the compiled class of this java file.
- 
getInstanceReturns a new instance of the compiled class of this java file as requested class, if applicable.
- 
getInstanceURLReturns a URL for given instance.
- 
getURLInstanceReturns an instance for given id.
- 
handleGetReturns a query file for given query.- Specified by:
- handleGetin interface- WebSite.Servlet
 
- 
getDependenciesReturns the list of class names that this class file is dependent on.
- 
getHasMainpublic boolean getHasMain()Returns whether class file has main method.
- 
runMainpublic void runMain()Runs the main method of compiled class.
- 
getReturns the ClassData for given file.
 
-