|
|||||||||||
| 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.JxClass
An object wrapping the Class or Intf element.
| Field Summary | |
protected boolean |
anonymous
The flag if this class is anonymous. |
protected org.w3c.dom.Element[] |
constructorElems
Elements of constructors defined in this class. |
protected org.w3c.dom.Element[] |
fieldElems
Elements of fields defined in this class. |
protected JxFieldList |
fields
Fields defined in this class. |
protected java.lang.String |
fqn
The fully-qualified name of this class. |
protected org.w3c.dom.Element |
member
A Members element dominated by this class. |
protected org.w3c.dom.Element[] |
methodElems
Elements of methods defined in this class. |
protected JxMethodList |
methods
Methods and constructors defined in this class. |
protected java.lang.String |
name
The name of this class. |
| Fields inherited from class org.jtool.jxplatform.wrapper.JxElement |
element |
| Constructor Summary | |
protected |
JxClass()
Creates a new, empty object. |
protected |
JxClass(org.w3c.dom.Element elem)
Creates a new object wrapping a Class or Intf element. |
| Method Summary | |
boolean |
enclose(org.w3c.dom.Element elem)
Tests if this class element encloses a given element. |
boolean |
equals(JxClass jclass)
Tests if a given class wrapper equals to this one. |
java.lang.String |
getAccess()
Returns the access setting for this class. |
JxClassList |
getAllAncestors()
Returns the wrapper list of the ancestors of this class. |
org.w3c.dom.Element[] |
getAllFieldElements()
Returns the elements of all field declarations contained in this class. |
org.w3c.dom.Element[] |
getAllInnerClassElements()
Returns all the elements of the inner classes. |
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. |
org.w3c.dom.Element[] |
getAllMethodAndConstructorElements()
Returns the elements of all class and interface declarations contained in this class. |
org.w3c.dom.Element[] |
getAllOuterClassElements()
Returns all the elements of the outer classes. |
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. |
static org.w3c.dom.Element |
getClassElement(org.w3c.dom.Element elem)
Returns the Class or Intf element containing a given element. |
org.w3c.dom.Element[] |
getConstructorElements()
Returns the elements of all constructor declarations contained in this class. |
org.w3c.dom.Element |
getFirstMemeberElement()
Returns the first method or field element of this class. |
java.lang.String |
getFqn()
Returns the fully qualified name of this class. |
java.lang.String |
getFqnOfTopLevelClass()
Returns the fully qualified name of the top level class of this class. |
org.w3c.dom.Element[] |
getInnerClassElements()
Returns the elements of the immediately inner classes. |
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. |
org.w3c.dom.Element |
getJxFieldById(java.lang.String id)
Returns the element for a field with a given identifier. |
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. |
org.w3c.dom.Element |
getJxMethodById(java.lang.String id)
Returns the element for a method with a given identifier. |
org.w3c.dom.Element |
getLastMemeberElement()
Returns the last method or field element of this class. |
org.w3c.dom.Element[] |
getMethodElements()
Returns the elements of all method declarations contained in this class. |
java.lang.String |
getModifier()
Returns modifiers of this class. |
java.lang.String |
getName()
Returns the name of this class. |
org.w3c.dom.Element |
getNameNode()
Returns the name element of this class. |
org.w3c.dom.Element |
getOuterClassElement()
Returns the element of the immediately outer class. |
JxClass |
getOuterJxClass()
Returns the wrapper of the immediately outer class. |
org.w3c.dom.Element |
getSinitElement()
Returns the element of a static initializer contained in this class. |
JxClass |
getSuperClass()
Returns the wrapper of the superclass of this class. |
org.w3c.dom.Element |
getSuperClassElement()
Returns the declaration of a superclass of this 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. |
org.w3c.dom.Element[] |
getSuperInterfaceElements()
Returns the declarations of super interfaces 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. |
JxClassList |
getSuperInterfaces()
Returns the wrapper list of all the super interfaces of this class. |
boolean |
isAbstract()
Test if this class is abstract. |
boolean |
isAnonymous()
Tests if this class is the anonymous class. |
boolean |
isChildOf(JxClass jc)
Test if this class is a child of the specified class. |
static boolean |
isClass(org.w3c.dom.Element elem)
Tests if a given element is the Class. |
boolean |
isDefault()
Test if the access setting of this class is default. |
boolean |
isFinal()
Test if this class is final. |
boolean |
isInnerClass()
Tests if this class is an inner class. |
static boolean |
isInterface(org.w3c.dom.Element elem)
Tests if a given element is the Intf. |
boolean |
isPrivate()
Test if the access setting of this class is private. |
boolean |
isProtected()
Test if the access setting of this class is protected. |
boolean |
isPublic()
Test if the access setting of this class is public. |
boolean |
isStatic()
Test if this class is static. |
boolean |
isStrictfp()
Test if this class is strictfp. |
void |
print()
Displays information about this class wrapper for debugging. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected java.lang.String name
protected java.lang.String fqn
protected boolean anonymous
protected org.w3c.dom.Element member
Members element dominated by this class.
protected org.w3c.dom.Element[] methodElems
protected org.w3c.dom.Element[] constructorElems
protected JxMethodList methods
protected org.w3c.dom.Element[] fieldElems
protected JxFieldList fields
| Constructor Detail |
protected JxClass()
protected JxClass(org.w3c.dom.Element elem)
throws JxWrapperException
Class or Intf element.
elem - An DOM element to be wrapped.
JxWrapperException - if the specified element is not valid.| Method Detail |
public java.lang.String getName()
public java.lang.String getFqn()
public java.lang.String getFqnOfTopLevelClass()
public org.w3c.dom.Element getNameNode()
public java.lang.String getAccess()
public JxFile getJxFile()
getJxFile in class JxElementJxFile wrapper defining this class.public static boolean isClass(org.w3c.dom.Element elem)
Class.
elem - An element of the DOM.
Class.public static boolean isInterface(org.w3c.dom.Element elem)
Intf.
elem - An element of the DOM.
Intf.public static org.w3c.dom.Element getClassElement(org.w3c.dom.Element elem)
Class or Intf element containing a given element.
elem - An element of the DOM.
Class or Intf element,
or null if thereis no such element.public boolean isAnonymous()
true if this class is the anonymous class, otherwise false.public boolean equals(JxClass jclass)
jclass - A class wrapper.
true if the class wrapper equals to this one.public boolean enclose(org.w3c.dom.Element elem)
elem - An element of the DOM.
true if this element encloses the element.public org.w3c.dom.Element[] getMethodElements()
Method elements.public org.w3c.dom.Element[] getConstructorElements()
Ctor elements.public org.w3c.dom.Element[] getAllMethodAndConstructorElements()
Method and Ctor elements.
public JxMethodList getAllJxMethods()
throws JxWrapperException
JxWrapperException - if creation of the method or constructor wrapper fails.public org.w3c.dom.Element[] getAllFieldElements()
Field elements.
public JxFieldList getAllJxFields()
throws JxWrapperException
JxWrapperException - if creation of the field wrapper fails.public org.w3c.dom.Element getSinitElement()
SInit element, null if there is no static initializer.public org.w3c.dom.Element getSuperClassElement()
getSuperInterfaceElements() instead of this method.
null if there is no superclass or this class is an interface.public org.w3c.dom.Element[] getSuperInterfaceElements()
public java.lang.String getSuperclassFqn()
null if this class has no superclass.public java.lang.String[] getSuperInterfaceFqns()
public java.lang.String getSuperclassName()
public java.lang.String[] getSuperInterfaceNames()
public boolean isInnerClass()
true if this class is an inner class.public org.w3c.dom.Element getOuterClassElement()
null if this class has no outer class.public org.w3c.dom.Element[] getAllOuterClassElements()
public org.w3c.dom.Element[] getInnerClassElements()
throws JxWrapperException
JxWrapperException - ifpublic org.w3c.dom.Element[] getAllInnerClassElements()
public JxMethod getJxMethod(java.lang.String sig)
sig - The signature of a method to be retrived.
JxMethod wrapper, null if there is no element found.public org.w3c.dom.Element getJxMethodById(java.lang.String id)
id - The indetifier of a method to be retrieved.
null if there is no element found.public JxField getJxField(java.lang.String name)
name - The name of a field to be retrived.
JxField wrapper, null if there is no element found.public org.w3c.dom.Element getJxFieldById(java.lang.String id)
id - The indetifier of a field to be retrieved.
null if there is no element found.public org.w3c.dom.Element getFirstMemeberElement()
public org.w3c.dom.Element getLastMemeberElement()
public boolean isChildOf(JxClass jc)
jc - A class wrapper that might be superclass.
true if this class is a child of the specified class, otherwise false.public boolean isPublic()
true if this class is public.public boolean isProtected()
true if this class is protected.public boolean isPrivate()
true if this class is private.public boolean isDefault()
true if this class has no specified access setting.public boolean isFinal()
true if this class is final.public boolean isAbstract()
true if this class is abstract.public boolean isStatic()
true if this class is static.public boolean isStrictfp()
true if this class is strictfp.public java.lang.String getModifier()
public JxClass getOuterJxClass()
throws JxWrapperException
null if this class has no outer class.
JxWrapperException - if creation of the class wrapper fails.
public JxClassList getAllOuterJxClasses()
throws JxWrapperException
JxWrapperException - if creation of the class wrapper fails.
public JxClassList getInnerClasses()
throws JxWrapperException
JxWrapperException - if creation of the class wrapper fails.
public JxClassList getAllInnerClasses()
throws JxWrapperException
JxWrapperException - if creation of the class wrapper fails.
public JxClass getSuperClass()
throws JxWrapperException
null if this class has no superclass.
JxWrapperException - if no referenced class found.
public JxClassList getSuperInterfaces()
throws JxWrapperException
JxWrapperException - if no referenced class found.
public JxClassList getAllAncestors()
throws JxWrapperException
JxWrapperException - if no referenced class found.
public JxClassList getAllSuperclasses()
throws JxWrapperException
JxWrapperException - if no referenced class found.
public JxClassList getAllSuperInterfaces()
throws JxWrapperException
JxWrapperException - if no referenced class found.public void print()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||