|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jtool.jxplatform.wrapper.JxElement
org.jtool.jxplatform.wrapper.JxFile
org.jtool.jxplatform.wrapper.JxBinaryFile
An object wrapping a File element of an XML document generated from a binary file.
The binary file contains only one class or interface.
| Field Summary |
| Fields inherited from class org.jtool.jxplatform.wrapper.JxFile |
classElems, classes, importNames, interfaceElems, packageName, pathName |
| Fields inherited from class org.jtool.jxplatform.wrapper.JxElement |
element |
| Constructor Summary | |
protected |
JxBinaryFile()
Creates a new, empty object. |
protected |
JxBinaryFile(org.w3c.dom.Element elem)
Creates a new object wrapping a binary File element. |
| Method Summary | |
org.w3c.dom.Element[] |
getAllImportElements()
Returns an array of import declaration elements of this file. |
JxClassList |
getAllJxClasses()
Returns the wrapper list of all classes and interfaces within this file. |
org.w3c.dom.Element |
getClassOrInterfaceElement()
Returns the Class or Intf element defined in this binary file. |
java.lang.String[] |
getImportNames()
Returns an array of import names of this file. |
JxClass |
getJxBinaryClass()
Returns a wrapper for a binary class with a given name. |
JxClass |
getJxClass(java.lang.String name)
Returns a wrapper for a class with a given name. |
java.lang.String[] |
getReferencedFileNames()
Obtains the array of the filenames of all classes and interfaces referenced by this file. |
java.lang.String[] |
getReferencedTypeNames()
Obtains the array of the fully qualified names of all the classes and interfaces referenced by this file. |
void |
print()
Displays information about this file wrapper for debugging. |
| Methods inherited from class org.jtool.jxplatform.wrapper.JxFile |
enclose, equals, getAllClassAndInterfaceElements, getAllClassElements, getAllInterfaceElements, getDirName, getFileElement, getJxClass, getJxClassById, getJxMethod, getName, getPackageElement, getPackageName, getPathName, getProjectName, isFile |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
protected JxBinaryFile()
protected JxBinaryFile(org.w3c.dom.Element elem)
throws JxWrapperException
File element.
elem - An DOM element to be wrapped.
JxWrapperException - JxWrapperException if the specified element is not valid.| Method Detail |
public org.w3c.dom.Element getClassOrInterfaceElement()
Class or Intf element defined in this binary file.
Class or Intf element, or null if there is no such element.public JxClass getJxBinaryClass()
JxBinaryClass wrapper, null if there is no element found.public org.w3c.dom.Element[] getAllImportElements()
getAllImportElements in class JxFileElement since a binary class file declares no import package.JxFile.getAllImportElements()public java.lang.String[] getImportNames()
getImportNames in class JxFileString since a binary class file declares no import package.JxFile.getImportNames()public JxClass getJxClass(java.lang.String name)
getJxClass in class JxFilename - The fully-qualified or simple name of a class to be retrieved.
JxBinaryClass wrapper, null if there is no element found.JxFile.getJxClass(String)
public JxClassList getAllJxClasses()
throws JxWrapperException
getAllJxClasses in class JxFileJxWrapperException - if creation of the class wrapper fails.JxFile.getAllJxClasses()public java.lang.String[] getReferencedTypeNames()
getReferencedTypeNames in class JxFileString since the DOM document for a binary class file has no TypeLoc element.JxFile.getReferencedTypeNames()public java.lang.String[] getReferencedFileNames()
getReferencedFileNames in class JxFileString since the DOM document for a binary class file has no TypeLoc element.JxFile.getReferencedFileNames()public void print()
print in class JxFileJxFile.print()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||