|
|||||||||||
| 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.JxDefUseExpression
org.jtool.jxplatform.wrapper.JxExpression
org.jtool.jxplatform.wrapper.JxMethodCall
| Field Summary | |
protected org.w3c.dom.Element[] |
arguments
The elements of arguments of this method call. |
protected java.lang.String |
binding
The binding information about this method call. |
protected org.w3c.dom.Element |
declaration
The element of the element of a called method. |
protected java.lang.String |
defid
The identifier string of the element of a called method. |
protected java.lang.String |
fqn
The fully-qualified type of a return value. |
protected java.lang.String |
name
The name of a called method. |
protected java.lang.String |
ref
The class name of the element of a called method. |
| Fields inherited from class org.jtool.jxplatform.wrapper.JxExpression |
sort |
| Fields inherited from class org.jtool.jxplatform.wrapper.JxDefUseExpression |
defs, expressions, uses |
| Fields inherited from class org.jtool.jxplatform.wrapper.JxElement |
element |
| Constructor Summary | |
protected |
JxMethodCall()
Creates a new, empty object. |
protected |
JxMethodCall(org.w3c.dom.Element elem)
Creates a new object wrapping a Expr element
with the sort="MethodCall" or sort="CtorCall"attribute. |
|
JxMethodCall(org.w3c.dom.Element elem,
org.w3c.dom.Element decl)
Creates a new object wrapping a Expr element
with the sort="MethodCall" or sort="CtorCall" attribute. |
| Method Summary | |
boolean |
equals(JxMethodCall jcall)
Tests if a given method call wrapper equals to this one. |
org.w3c.dom.Element[] |
getArgumentElements()
Obtains the elements of all argument expressions contained in this method call. |
java.lang.String |
getArgumentTypeFqn(int index)
Obtains the fully-qualified name of the argument type at the specified position. |
java.lang.String |
getBindingSignature()
Returns the binding string of this method call. |
org.w3c.dom.Element |
getDeclaration()
Returns the declaration element for the called method. |
java.lang.String |
getDefId()
Returns the identifier of the called method (not the identifier of the method call). |
java.lang.String |
getName()
Returns the name of the called method. |
int |
getNumOfArguments()
Returns the number of arguments of this method call. |
JxMethod |
getReferencedJxMethod()
Returns the method wrapper referenced by this method call. |
java.lang.String |
getTypeFqn()
Returns the fully qualified name of a return type of this method. |
boolean |
isConstructorCall()
Tests if this element indicates a constructor call. |
static boolean |
isMethodCall(org.w3c.dom.Element elem)
Tests if a given element equals to Expr with sort="MethodCall". |
boolean |
isNormalCall()
Tests if this element indicates a normal method call. |
boolean |
isSuperConsutructorCall()
Tests if this element indicates a super constructor call. |
boolean |
isThisConsutructorCall()
Tests if this element indicates a this constructor call. |
void |
print()
Displays information about this method call wrapper for debugging. |
| Methods inherited from class org.jtool.jxplatform.wrapper.JxExpression |
equals, getCastedTypeFqn, getCastedTypeName, getDotPrefix, getJavaStatement, getSort, isArrayCreation, isAssign, isDotOperator, isExpression, isFieldAccess, isInSimpleAssignment, isInstanceCreation, isMethodCall, isOpAssign, isParenthesis, isPostAssignment, isPostDecrement, isPostIncrement, isPreAssignment, isPreDecrement, isPreIncement, isSuperConstructorCall, isSuperReference, isThisConstructorCall, isThisReference, isVariableAccess |
| Methods inherited from class org.jtool.jxplatform.wrapper.JxDefUseExpression |
addDefinedVariable, addDefinedVariableFirst, addUsedVariable, addUsedVariableFirst, clearDefinedVariable, clearUsedVariable, definesVariable, getDefinedVariables, getExpressions, getUsedVariables, removeDefinedVariable, removeUsedVariable, usesVariable |
| 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 java.lang.String defid
protected java.lang.String binding
protected org.w3c.dom.Element declaration
protected java.lang.String ref
protected org.w3c.dom.Element[] arguments
| Constructor Detail |
protected JxMethodCall()
protected JxMethodCall(org.w3c.dom.Element elem)
throws JxWrapperException
Expr element
with the sort="MethodCall" or sort="CtorCall"attribute.
elem - An DOM element to be wrapped.
JxWrapperException - if the specified element is not valid.
public JxMethodCall(org.w3c.dom.Element elem,
org.w3c.dom.Element decl)
throws JxWrapperException
Expr element
with the sort="MethodCall" or sort="CtorCall" attribute.
elem - An DOM element to be wrapped.decl - The declaration's element referenced by this method call.
JxWrapperException - if the specified element is not valid.| Method Detail |
public java.lang.String getName()
getName in class JxExpressionpublic java.lang.String getTypeFqn()
getTypeFqn in class JxExpressionpublic java.lang.String getDefId()
public java.lang.String getBindingSignature()
public org.w3c.dom.Element getDeclaration()
Method.
public JxMethod getReferencedJxMethod()
throws JxWrapperException
JxWrapperExceptionpublic static boolean isMethodCall(org.w3c.dom.Element elem)
Expr with sort="MethodCall".
elem - An element of the DOM.
true if the element equals to method call, otherwise false.public boolean isNormalCall()
true if this element indicates a normal method call.public boolean isConstructorCall()
isConstructorCall in class JxExpressiontrue if this element indicates a constructor call.public boolean isThisConsutructorCall()
this constructor call.
true if this element indicates a this call.public boolean isSuperConsutructorCall()
super constructor call.
true if this element indicates a super call.public org.w3c.dom.Element[] getArgumentElements()
Expr elements.public int getNumOfArguments()
public java.lang.String getArgumentTypeFqn(int index)
index - The position of the specified argument.
null.public boolean equals(JxMethodCall jcall)
jcall - A method call wrapper.
true if the method call wrapper equals to this one, otherwise false.public void print()
print in class JxExpression
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||