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 Summary
Constructors - 
Method Summary
Modifier 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.SnapData
createBytes, createSourceURL, delete, get, getBytes, getInputStream, getSite, getSource, getSourceFile, getSourceURL, is, refresh, save, setBytes, setSource 
- 
Constructor Details
- 
ClassData
public ClassData() 
 - 
 - 
Method Details
- 
getClassName
Returns the class name. - 
getClassNameTop
Returns the top class name. - 
getPackageName
Returns the package name. - 
getJavaFile
Returns the JavaFile for this class, if it can be found. - 
getCompiledClass
Returns the class compiled from this java file. - 
getInstance
Returns a new instance of the compiled class of this java file. - 
getInstance
Returns a new instance of the compiled class of this java file as requested class, if applicable. - 
getInstanceURL
Returns a URL for given instance. - 
getURLInstance
Returns an instance for given id. - 
handleGet
Returns a query file for given query.- Specified by:
 handleGetin interfaceWebSite.Servlet
 - 
getDependencies
Returns the list of class names that this class file is dependent on. - 
getHasMain
public boolean getHasMain()Returns whether class file has main method. - 
runMain
public void runMain()Runs the main method of compiled class. - 
get
Returns the ClassData for given file. 
 -