org.jtool.jxplatform.wrapper
Class JxBinaryClass

java.lang.Object
  extended byorg.jtool.jxplatform.wrapper.JxElement
      extended byorg.jtool.jxplatform.wrapper.JxClass
          extended byorg.jtool.jxplatform.wrapper.JxBinaryClass

public class JxBinaryClass
extends JxClass

An object wrapping a Class element of an XML document generated from a binary file. The binary file contains only one class or interface.

Author:
Katsuhisa Maruyama

Field Summary
 
Fields inherited from class org.jtool.jxplatform.wrapper.JxClass
anonymous, constructorElems, fieldElems, fields, fqn, member, methodElems, methods, name
 
Fields inherited from class org.jtool.jxplatform.wrapper.JxElement
element
 
Constructor Summary
protected JxBinaryClass()
          Creates a new, empty object.
protected JxBinaryClass(org.w3c.dom.Element elem)
          Creates a new object wrapping a binary Class element.
 
Method Summary
 JxClassList getAllAncestors()
          Returns the wrapper list of the ancestors of this class.
 JxClassList getAllInnerClasses()
          Returns the wrapper list of all the inner classes.
 JxFieldList getAllJxFields()
          Returns the wrapper list of all fields within this file.
 JxMethodList getAllJxMethods()
          Returns the wrapper list of all methods and constructors within this file.
 JxClassList getAllOuterJxClasses()
          Returns the wrapper list of all the outer classes.
 JxClassList getAllSuperclasses()
          Returns the wrapper list of all the superclasses of this class.
 JxClassList getAllSuperInterfaces()
          Returns the wrapper list of all the super interfaces of this class.
 JxClassList getInnerClasses()
          Returns the wrapper list of the immediately inner classes.
 JxField getJxField(java.lang.String name)
          Returns a wrapper for a field with a given name.
 JxFile getJxFile()
          Obtains a file wrapper defining this class.
 JxMethod getJxMethod(java.lang.String sig)
          Returns a wrapper for a method with a given signature.
 JxClass getOuterJxClass()
          Returns the wrapper of the immediately outer class.
 java.lang.String getSuperclassFqn()
          Returns the fully qualified name of a superclass of this class.
 java.lang.String getSuperclassName()
          Returns the name of a superclass of this class.
 java.lang.String[] getSuperInterfaceFqns()
          Returns the array of fully qualified names of super interfaces of this class.
 java.lang.String[] getSuperInterfaceNames()
          Returns the array of names of super interfaces of this class.
 void print()
          Displays information about this class wrapper for debugging.
 
Methods inherited from class org.jtool.jxplatform.wrapper.JxClass
enclose, equals, getAccess, getAllFieldElements, getAllInnerClassElements, getAllMethodAndConstructorElements, getAllOuterClassElements, getClassElement, getConstructorElements, getFirstMemeberElement, getFqn, getFqnOfTopLevelClass, getInnerClassElements, getJxFieldById, getJxMethodById, getLastMemeberElement, getMethodElements, getModifier, getName, getNameNode, getOuterClassElement, getSinitElement, getSuperClass, getSuperClassElement, getSuperInterfaceElements, getSuperInterfaces, isAbstract, isAnonymous, isChildOf, isClass, isDefault, isFinal, isInnerClass, isInterface, isPrivate, isProtected, isPublic, isStatic, isStrictfp
 
Methods inherited from class org.jtool.jxplatform.wrapper.JxElement
equals, existInTheSameClass, existInTheSameField, existInTheSameFile, existInTheSameMethod, existsInTheSameClass, existsInTheSameFile, existsInTheSameMethod, existsInTheSamePackage, getArrayOfElements, getChildElement, getChildElement, getChildElements, getChildElements, getChildNodes, getChildNodes, getClassElement, getDescendantElements, getDescendantElements, getDescendantElements, getDescendantElements, getElement, getElementById, getExpressionElements, getFieldElement, getFileElement, getFirstChildElement, getFirstChildElement, getId, getId, getIdentName, getIdentName, getJxClass, getJxField, getJxMethod, getJxStaticInit, getKeyword, getLine, getMethodElement, getStatementElement, getStaticInitElement, getTypeElement, getTypeElements, getTypeName, indexOf, indexOf, isBinary, isClass, isClassOrInterface, isConstructor, isExpression, isField, isFile, isImport, isInterface, isInTheSameField, isLocal, isMethod, isMethodOrConstructor, isPackage, isParameter, isStatement, isStaticInit, isTerminalElement, isType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JxBinaryClass

protected JxBinaryClass()
Creates a new, empty object.


JxBinaryClass

protected JxBinaryClass(org.w3c.dom.Element elem)
                 throws JxWrapperException
Creates a new object wrapping a binary Class element.

Parameters:
elem - An DOM element to be wrapped.
Throws:
JxWrapperException - JxWrapperException if the specified element is not valid.
Method Detail

getJxFile

public JxFile getJxFile()
Obtains a file wrapper defining this class.

Overrides:
getJxFile in class JxClass
Returns:
The JxBinaryFile wrapper defining this class.
See Also:
JxClass.getJxFile()

getAllJxMethods

public JxMethodList getAllJxMethods()
                             throws JxWrapperException
Returns the wrapper list of all methods and constructors within this file.

Overrides:
getAllJxMethods in class JxClass
Returns:
The wrapper list of the methods and constructors.
Throws:
JxWrapperException - if creation of the method or constructor wrapper fails.
See Also:
JxClass.getAllJxMethods()

getAllJxFields

public JxFieldList getAllJxFields()
                           throws JxWrapperException
Returns the wrapper list of all fields within this file.

Overrides:
getAllJxFields in class JxClass
Returns:
The wrapper list of the fields.
Throws:
JxWrapperException - if creation of the field wrapper fails.
See Also:
JxClass.getAllJxFields()

getSuperclassFqn

public java.lang.String getSuperclassFqn()
Returns the fully qualified name of a superclass of this class.

Overrides:
getSuperclassFqn in class JxClass
Returns:
The fully-qualified name string of the superclass, or null if this class has no superclass.
See Also:
JxClass.getSuperclassFqn()

getSuperInterfaceFqns

public java.lang.String[] getSuperInterfaceFqns()
Returns the array of fully qualified names of super interfaces of this class.

Overrides:
getSuperInterfaceFqns in class JxClass
Returns:
The string array of fully-qualified names of the super interfaces.
See Also:
JxClass.getSuperInterfaceFqns()

getSuperclassName

public java.lang.String getSuperclassName()
Returns the name of a superclass of this class.

Overrides:
getSuperclassName in class JxClass
Returns:
Always the empty string since this method does not intend to be called.
See Also:
JxClass.getSuperclassName()

getSuperInterfaceNames

public java.lang.String[] getSuperInterfaceNames()
Returns the array of names of super interfaces of this class.

Overrides:
getSuperInterfaceNames in class JxClass
Returns:
Always an empty array of strings since this method does not intend to be called.
See Also:
JxClass.getSuperInterfaceNames()

getJxMethod

public JxMethod getJxMethod(java.lang.String sig)
Returns a wrapper for a method with a given signature.

Overrides:
getJxMethod in class JxClass
Parameters:
sig - The signature of a method to be retrived.
Returns:
The matched JxBinaryMethod wrapper, null if there is no element found.
See Also:
JxClass.getJxMethod(String)

getJxField

public JxField getJxField(java.lang.String name)
Returns a wrapper for a field with a given name.

Overrides:
getJxField in class JxClass
Parameters:
name - The name of a field to be retrived.
Returns:
The matched JxBinaryField wrapper, null if there is no element found.
See Also:
JxClass.getJxField(String)

getOuterJxClass

public JxClass getOuterJxClass()
Returns the wrapper of the immediately outer class.

Overrides:
getOuterJxClass in class JxClass
Returns:
Always am empty collection of classes since this method does not intend to be called.
See Also:
JxClass.getOuterJxClass()

getAllOuterJxClasses

public JxClassList getAllOuterJxClasses()
Returns the wrapper list of all the outer classes.

Overrides:
getAllOuterJxClasses in class JxClass
Returns:
Always the 0-size collection since this method does not intend to be called.
See Also:
JxClass.getOuterClassElement()

getInnerClasses

public JxClassList getInnerClasses()
Returns the wrapper list of the immediately inner classes.

Overrides:
getInnerClasses in class JxClass
Returns:
Always an empty collection of classes since this method does not intend to be called.
See Also:
JxClass.getInnerClasses()

getAllInnerClasses

public JxClassList getAllInnerClasses()
Returns the wrapper list of all the inner classes.

Overrides:
getAllInnerClasses in class JxClass
Returns:
Always an empty collection of classes since this method does not intend to be called.
See Also:
JxClass.getAllInnerClasses()

getAllAncestors

public JxClassList getAllAncestors()
Returns the wrapper list of the ancestors of this class.

Overrides:
getAllAncestors in class JxClass
Returns:
Always an empty collection of classes since this method does not intend to be called.
See Also:
JxClass.getAllAncestors()

getAllSuperclasses

public JxClassList getAllSuperclasses()
Returns the wrapper list of all the superclasses of this class.

Overrides:
getAllSuperclasses in class JxClass
Returns:
Always an empty collection of classes since this method does not intend to be called.
See Also:
JxClass.getAllSuperclasses()

getAllSuperInterfaces

public JxClassList getAllSuperInterfaces()
Returns the wrapper list of all the super interfaces of this class.

Overrides:
getAllSuperInterfaces in class JxClass
Returns:
Always an empty collection of classes since this method does not intend to be called.
See Also:
JxClass.getAllSuperInterfaces()

print

public void print()
Displays information about this class wrapper for debugging.

Overrides:
print in class JxClass
See Also:
JxClass.print()