|
|||||||||||
| 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
org.jtool.jxplatform.wrapper.JxBinaryMethod
An object wrapping a Method element of an XML document generated from a binary file.
The methods in the binary file has no Param. Information about parameters is untrusted.
| Field Summary |
| Fields inherited from class org.jtool.jxplatform.wrapper.JxMethod |
faccessElems, fqn, innerclassElems, localElems, mcallElems, name, parameterElems, signature, throwElems, type, vaccessElems |
| Fields inherited from class org.jtool.jxplatform.wrapper.JxElement |
element |
| Constructor Summary | |
protected |
JxBinaryMethod()
Creates a new, empty object. |
protected |
JxBinaryMethod(org.w3c.dom.Element elem)
Creates a new object wrapping a binary Method or Ctor element. |
| Method Summary | |
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[] |
getAllVariableAccessElements()
Returns elements of variable accesses contained in this method. |
JxVariableList |
getDefinedJxVariables()
Returns variable accesses the value of which is defined in this method.import org.jtool.jxplatform.dom.JxConstants; |
JxClass |
getJxClass()
Obtains a class wrapper defining this method. |
JxVariableList |
getJxVariables()
Returns variable appearing in 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 |
getTypeName()
Returns the fully qualified 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. |
void |
print()
Displays information about this method wrapper for debugging. |
| Methods inherited from class org.jtool.jxplatform.wrapper.JxMethod |
enclose, equals, getAccess, getAllThrowElements, getMethodElement, getModifier, getName, getNameNode, getSignature, getThrowTypes, getTypeFqn, isAbstract, isConstructor, isDefault, isFinal, isMethod, isMethodOrConstructor, isNative, isPrivate, isProtected, isPublic, isStatic, isStrictfp, isSynchronized, isVoid, throwsException |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
protected JxBinaryMethod()
protected JxBinaryMethod(org.w3c.dom.Element elem)
throws JxWrapperException
Method or Ctor element.
elem - An DOM element to be wrapped.
JxWrapperException - JxWrapperException if the specified element is not valid.| Method Detail |
public java.lang.String getTypeName()
getTypeName in class JxMethodJxMethod.getTypeName()public JxClass getJxClass()
getJxClass in class JxMethodJavaClass wrapper defining this method.JxMethod.getJxClass()public org.w3c.dom.Element[] getAllParameterElements()
getAllParameterElements in class JxMethodJxMethod.getAllParameterElements()public org.w3c.dom.Element[] getAllLocalElements()
getAllLocalElements in class JxMethodJxMethod.getAllLocalElements()public java.lang.String getParameterTypes()
getParameterTypes in class JxMethodJxMethod.getParameterTypes()public int getNumOfParameters()
getNumOfParameters in class JxMethodJxMethod.getNumOfParameters()public JxParameter getParameter(int index)
getParameter in class JxMethodindex - The position of the specified parameter.
null if there is no element found.JxMethod.getParameter(int)public JxParameter getParameter(java.lang.String name)
getParameter in class JxMethodname - The name of a parameter to be retrieved.
null since this method does not intend to be called.JxMethod.getParameter(String)public org.w3c.dom.Element getParameterById(java.lang.String id)
getParameterById in class JxMethodid - The identifier of a parameter to be retrieved.
null since this method does not intend to be called.JxMethod.getParameterById(String)public int indexOf(JxParameter jp)
indexOf in class JxMethodjp - A parameter wrapper.
JxMethod.indexOf(JxParameter)public org.w3c.dom.Element[] getAllStatementElements()
getAllStatementElements in class JxMethodJxMethod.getAllStatementElements()public org.w3c.dom.Element[] getAllMethodCallElements()
getAllMethodCallElements in class JxMethodJxMethod.getAllMethodCallElements()public org.w3c.dom.Element[] getAllFieldAccessElements()
getAllFieldAccessElements in class JxMethodJxMethod.getAllFieldAccessElements()public org.w3c.dom.Element[] getAllVariableAccessElements()
getAllVariableAccessElements in class JxMethodJxMethod.getAllVariableAccessElements()
public JxVariableList getDefinedJxVariables()
throws JxWrapperException
getDefinedJxVariables in class JxMethodJxVariable since this method does not intend to be called.
JxWrapperException - if the creation of a variable access wrapper fails.JxMethod.getDefinedJxVariables()public JxVariableList getUsedJxVariables()
getUsedJxVariables in class JxMethodJxVariable since this method does not intend to be called.JxMethod.getUsedJxVariables()public JxVariableList getJxVariables()
getJxVariables in class JxMethodJxVariable since this method does not intend to be called.JxMethod.getJxVariables()public org.w3c.dom.Element[] getAllInnerClassElements()
getAllInnerClassElements in class JxMethodJxMethod.getAllInnerClassElements()public void print()
print in class JxMethodJxMethod.print()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||