|
|||||||||||
| 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.JxMethod
An object wrapping the Method or Ctor element.
| Field Summary | |
protected org.w3c.dom.Element[] |
faccessElems
Elements of field accesses within in this method. |
protected java.lang.String |
fqn
The fully-qualified name of this method. |
protected org.w3c.dom.Element[] |
innerclassElems
Elements of inThner classes within in this method. |
protected org.w3c.dom.Element[] |
localElems
Elements of local variables defined in this method. |
protected org.w3c.dom.Element[] |
mcallElems
Elements of method calls within in this method. |
protected java.lang.String |
name
The name of this method. |
protected org.w3c.dom.Element[] |
parameterElems
Elements of parameters defined in this method. |
protected java.lang.String |
signature
The signature of this method. |
protected org.w3c.dom.Element[] |
throwElems
Elements of exceptions this method might throw. |
protected java.lang.String |
type
The type of this method. |
protected org.w3c.dom.Element[] |
vaccessElems
Elements of variable accesses within in this method. |
| Fields inherited from class org.jtool.jxplatform.wrapper.JxElement |
element |
| Constructor Summary | |
protected |
JxMethod()
Creates a new, empty object. |
protected |
JxMethod(org.w3c.dom.Element elem)
Creates a new object wrapping a Method or Ctor element. |
| Method Summary | |
boolean |
enclose(org.w3c.dom.Element elem)
Tests if this method element encloses a given element. |
boolean |
equals(JxMethod jmethod)
Tests if a given method wrapper equals to this one. |
java.lang.String |
getAccess()
Returns the access setting for this method. |
org.w3c.dom.Element[] |
getAllFieldAccessElements()
Returns elements of field accesses contained in this method. |
org.w3c.dom.Element[] |
getAllInnerClassElements()
Returns elements of inner classes contained in this method. |
org.w3c.dom.Element[] |
getAllLocalElements()
Returns the elements of all local variable declarations contained in this method. |
org.w3c.dom.Element[] |
getAllMethodCallElements()
Returns elements of method calls contained in this method. |
org.w3c.dom.Element[] |
getAllParameterElements()
Returns the elements of all parameter declarations contained in this method. |
org.w3c.dom.Element[] |
getAllStatementElements()
Returns elements of statements contained in this method. |
org.w3c.dom.Element[] |
getAllThrowElements()
Returns the elements of exceptions will be thrown. |
org.w3c.dom.Element[] |
getAllVariableAccessElements()
Returns elements of variable accesses contained in this method. |
JxVariableList |
getDefinedJxVariables()
Returns variable accesses the value of which is defined in this method. |
JxClass |
getJxClass()
Obtains a class wrapper defining this method. |
JxVariableList |
getJxVariables()
Returns variable appearing in this method. |
static org.w3c.dom.Element |
getMethodElement(org.w3c.dom.Element elem)
Returns the Method or Ctor element containing a given element. |
java.lang.String |
getModifier()
Returns modifiers of this method. |
java.lang.String |
getName()
Returns the name of this method. |
org.w3c.dom.Element |
getNameNode()
Returns the name element of this method. |
int |
getNumOfParameters()
Returns the number of parameters of this method. |
JxParameter |
getParameter(int index)
Returns the parameter at the specified position. |
JxParameter |
getParameter(java.lang.String name)
Returns the element for a parameter with a given name. |
org.w3c.dom.Element |
getParameterById(java.lang.String id)
Returns the element for a parameter with a given identifier. |
java.lang.String |
getParameterTypes()
Returns the types of all parameters of this method. |
java.lang.String |
getSignature()
Returns the signature of this method. |
java.lang.String[] |
getThrowTypes()
Returns the types of all exceptions thrown by this method. |
java.lang.String |
getTypeFqn()
Returns the fully qualified name of the return type of this method. |
java.lang.String |
getTypeName()
Returns the name of the return type of this method. |
JxVariableList |
getUsedJxVariables()
Returns variable accesses the value of which is used in this method. |
int |
indexOf(JxParameter jp)
Returns the position of the specified parameter in parameters of this method. |
boolean |
isAbstract()
Test if this method is abstract. |
static boolean |
isConstructor(org.w3c.dom.Element elem)
Tests if a given element equals to Ctor. |
boolean |
isDefault()
Test if the access setting of this method is default. |
boolean |
isFinal()
Test if this method is final. |
static boolean |
isMethod(org.w3c.dom.Element elem)
Tests if a given element equals to Method. |
static boolean |
isMethodOrConstructor(org.w3c.dom.Element elem)
Tests if a given element equals to Method or Ctor. |
boolean |
isNative()
Test if this method is native. |
boolean |
isPrivate()
Test if the access setting of this method is private. |
boolean |
isProtected()
Test if the access setting of this method is protected. |
boolean |
isPublic()
Test if the access setting of this method is public. |
boolean |
isStatic()
Test if this method is static. |
boolean |
isStrictfp()
Test if this method is strictfp. |
boolean |
isSynchronized()
Test if this method is synchronized. |
boolean |
isVoid()
Tests if the type of this method is void. |
void |
print()
Displays information about this method wrapper for debugging. |
boolean |
throwsException()
Tests if this method might throw an exception. |
| 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 signature
protected java.lang.String fqn
protected java.lang.String type
protected org.w3c.dom.Element[] parameterElems
protected org.w3c.dom.Element[] localElems
protected org.w3c.dom.Element[] throwElems
protected org.w3c.dom.Element[] mcallElems
protected org.w3c.dom.Element[] faccessElems
protected org.w3c.dom.Element[] vaccessElems
protected org.w3c.dom.Element[] innerclassElems
| Constructor Detail |
protected JxMethod()
protected JxMethod(org.w3c.dom.Element elem)
throws JxWrapperException
Method or Ctor element.
elem - An DOM element to be wrapped.
JxWrapperException - if the specified element is not valid.| Method Detail |
public java.lang.String getName()
public org.w3c.dom.Element getNameNode()
public java.lang.String getTypeFqn()
public java.lang.String getTypeName()
getTypeName in class JxElementpublic java.lang.String getAccess()
public JxClass getJxClass()
getJxClass in class JxElementJavaClass wrapper defining this method.public static boolean isMethod(org.w3c.dom.Element elem)
Method.
elem - An element of the DOM.
Method.public static boolean isConstructor(org.w3c.dom.Element elem)
Ctor.
elem - An element of the DOM.
Ctor.public static boolean isMethodOrConstructor(org.w3c.dom.Element elem)
Method or Ctor.
elem - An element of the DOM.
Method or Ctor.public static org.w3c.dom.Element getMethodElement(org.w3c.dom.Element elem)
Method or Ctor element containing a given element.
elem - An element of the DOM.
Method or Ctor element, or null if thereis no such element.public boolean equals(JxMethod jmethod)
jmethod - A method wrapper.
true if the method wrapper equals to this one, otherwise false.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[] getAllParameterElements()
Param elements.public org.w3c.dom.Element[] getAllLocalElements()
Local elements.public org.w3c.dom.Element[] getAllThrowElements()
ThrwOpt elements.public java.lang.String getSignature()
public java.lang.String getParameterTypes()
null.public int getNumOfParameters()
public JxParameter getParameter(int index)
index - The position of the specified parameter.
null if there is no element found.public JxParameter getParameter(java.lang.String name)
name - The name of a parameter to be retrieved.
null if there is no element found.public org.w3c.dom.Element getParameterById(java.lang.String id)
id - The identifier of a parameter to be retrieved.
null if there is no element found.public int indexOf(JxParameter jp)
jp - A parameter wrapper.
public boolean throwsException()
true if this method might throw an exception.public java.lang.String[] getThrowTypes()
public boolean isVoid()
void.
true if the type of this method is void.public boolean isPublic()
true if this method is public.public boolean isProtected()
true if this method is protected.public boolean isPrivate()
true if this method is private.public boolean isDefault()
true if this method has no specified access setting.public boolean isFinal()
true if this method is final.public boolean isAbstract()
true if this method is abstract.public boolean isStatic()
true if this method is static.public boolean isSynchronized()
true if this method is synchronized.public boolean isNative()
true if this method is native.public boolean isStrictfp()
true if this class is strictfp.public java.lang.String getModifier()
public org.w3c.dom.Element[] getAllStatementElements()
public org.w3c.dom.Element[] getAllMethodCallElements()
public org.w3c.dom.Element[] getAllFieldAccessElements()
public org.w3c.dom.Element[] getAllVariableAccessElements()
public JxVariableList getDefinedJxVariables()
throws JxWrapperException
JxVariable.
JxWrapperException - if the creation of a variable access wrapper fails.
public JxVariableList getUsedJxVariables()
throws JxWrapperException
JxVariable.
JxWrapperException - if the creation of a variable access wrapper fails.
public JxVariableList getJxVariables()
throws JxWrapperException
JxVariable.
JxWrapperException - if the creation of a wrapper fails.public org.w3c.dom.Element[] getAllInnerClassElements()
public void print()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||