|
|||||||||||
| 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
An object wrapping the Expr elment.
| Field Summary | |
protected java.lang.String |
sort
The sort of this expression. |
| 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 |
JxExpression()
Creates a new, empty object. |
protected |
JxExpression(org.w3c.dom.Element elem)
Creates a new object wrapping a Expr element. |
| Method Summary | |
boolean |
equals(JxExpression jexpr)
Tests if a given expression wrapper equals to this one. |
java.lang.String |
getCastedTypeFqn()
Returns the fully-qualified name of the casted type of this expression. |
java.lang.String |
getCastedTypeName()
Returns the name of the casted type of this expression. |
org.w3c.dom.Element |
getDotPrefix()
Obtains the former element if this is the child of a dot element. |
JxStatement |
getJavaStatement()
Obtains a statement wrapper defining this expression. |
java.lang.String |
getName()
Returns the name of an accessed variable or called method in this exprression. |
java.lang.String |
getSort()
Returns the sort of this expression. |
java.lang.String |
getTypeFqn()
Returns the fully-qualified name of this expression. |
boolean |
isArrayCreation()
Tests if this expression is the array creation. |
boolean |
isAssign()
Tests if this expression is the assignment. |
boolean |
isConstructorCall()
Tests if this expression is the constructor call. |
boolean |
isDotOperator()
Tests if this expression has the dot operation. |
static boolean |
isExpression(org.w3c.dom.Element elem)
Tests if a given element equals to Expr. |
boolean |
isFieldAccess()
Tests if this expression is the field access. |
boolean |
isInSimpleAssignment()
Tests if this expression exists in a simple not complex statement. |
boolean |
isInstanceCreation()
Tests if this expression is the instance creation. |
boolean |
isMethodCall()
Tests if this expression is the method call. |
boolean |
isOpAssign()
Tests if this expression is the assignment with an operator. |
boolean |
isParenthesis()
Tests if this expression is the parenthesis. |
boolean |
isPostAssignment()
Tests if this expression is the post assignment. |
boolean |
isPostDecrement()
Tests if this expression is the post-decrement. |
boolean |
isPostIncrement()
Tests if this expression is the post-increment. |
boolean |
isPreAssignment()
Tests if this expression is the pre-assignment. |
boolean |
isPreDecrement()
Tests if this expression is the pre-decrement. |
boolean |
isPreIncement()
Tests if this expression is the pre-increment. |
boolean |
isSuperConstructorCall()
Tests if this expression is the super-constructor call. |
boolean |
isSuperReference()
Tests if this expression is super. |
boolean |
isThisConstructorCall()
Tests if this expression is the this-constructor call. |
boolean |
isThisReference()
Tests if this expression is this. |
boolean |
isVariableAccess()
Tests if this expression is the variable access. |
void |
print()
Displays information about this expression wrapper for debugging. |
| 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 sort
| Constructor Detail |
protected JxExpression()
protected JxExpression(org.w3c.dom.Element elem)
throws JxWrapperException
Expr element.
elem - An DOM element to be wrapped.
JxWrapperException - if the specified element is not valid.| Method Detail |
public java.lang.String getSort()
public JxStatement getJavaStatement()
throws JxWrapperException
JavaStaement wrapper defining this expression.
JxWrapperException - the creation of the wrapper fails.public static boolean isExpression(org.w3c.dom.Element elem)
Expr.
elem - An element of the DOM.
true if the element equals to Expr.public boolean equals(JxExpression jexpr)
equals in class JxDefUseExpressionjexpr - An expression wrapper.
true if the expression wrapper equals to this one, otherwise false.public java.lang.String getName()
public boolean isAssign()
true> if this expression is the assignment.public boolean isOpAssign()
true> if this expression is the assignment with an operator.public boolean isPreAssignment()
true> if this expression is the pre-assignment.public boolean isPreIncement()
true> if this expression is the pre-increment.public boolean isPreDecrement()
true> if this expression is the pre-decrement.public boolean isPostAssignment()
true> if this expression is the post assignment.public boolean isPostIncrement()
true> if this expression is the post-increment.public boolean isPostDecrement()
true> if this expression is the post-decrement.public boolean isVariableAccess()
true> if this expression is the variable access.public boolean isFieldAccess()
true> if this expression is the field access.public boolean isDotOperator()
true> if this expression has the dot operation.public boolean isParenthesis()
true> if this expression is the parenthesis.public boolean isConstructorCall()
true> if this expression is the canstructor call.public boolean isThisConstructorCall()
true> if this expression is the super-constructor call.public boolean isSuperConstructorCall()
true> if this expression is the super-constructor call.public boolean isMethodCall()
true> if this expression is the methodcall.public boolean isInstanceCreation()
true> if this expression is the instance creation.public boolean isArrayCreation()
true> if this expression is the array creation.public boolean isThisReference()
this.
true> if this expression is this.public boolean isSuperReference()
super.
true> if this expression is super.public java.lang.String getCastedTypeName()
public java.lang.String getCastedTypeFqn()
public org.w3c.dom.Element getDotPrefix()
null if this is not the child of a dot element.public java.lang.String getTypeFqn()
public boolean isInSimpleAssignment()
true if expression is in a simple statement.public void print()
print in class JxDefUseExpression
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||