|
|||||||||||
| 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.JxStatement
An object wrapping the Stmt element.
| Field Summary | |
protected java.lang.String |
sort
The sort of this statement; |
| 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 |
JxStatement()
Creates a new, empty object. |
protected |
JxStatement(org.w3c.dom.Element elem)
Creates a new object wrapping a Stmt element. |
| Method Summary | |
boolean |
enclose(org.w3c.dom.Element elem)
Tests if this statement element encloses a given element. |
boolean |
equals(JxStatement jst)
Tests if a given statement wrapper equals to this one. |
java.lang.String |
getSort()
Returns the sort of this statement. |
static org.w3c.dom.Element |
getStatementElement(org.w3c.dom.Element elem)
Returns the Stmt element containing a given element. |
boolean |
isBlockStatement()
Tests if this element is the block statement. |
boolean |
isBreakStatement()
Tests if this element is the break statement. |
boolean |
isContinueStatement()
Tests if this element is the continue statement. |
boolean |
isDoStatement()
Tests if this element is the do statement. |
boolean |
isEmptyStatement()
Tests if this element is the empty statement. |
boolean |
isExpressionStstement()
Tests if this element is the expression statement. |
boolean |
isForStatement()
Tests if this element is the for statement. |
boolean |
isIfStatement()
Tests if this element is the if statement. |
boolean |
isReturnStatement()
Tests if this element is the return statement. |
static boolean |
isStatement(org.w3c.dom.Element elem)
Tests if a given element equals to Stmt. |
boolean |
isSwitchStatement()
Tests if this element is the switch statement. |
boolean |
isSynchronizedStatement()
Tests if this element is the synchronized statement. |
boolean |
isThrowStatement()
Tests if this element is the throw statement. |
boolean |
isTryStatement()
Tests if this element is the try statement. |
boolean |
isWhileStatement()
Tests if this element is the while statement. |
void |
print()
Displays information about this statement wrapper for debugging. |
| Methods inherited from class org.jtool.jxplatform.wrapper.JxDefUseExpression |
addDefinedVariable, addDefinedVariableFirst, addUsedVariable, addUsedVariableFirst, clearDefinedVariable, clearUsedVariable, definesVariable, equals, 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 JxStatement()
protected JxStatement(org.w3c.dom.Element elem)
throws JxWrapperException
Stmt element.
elem - An DOM element to be wrapped.
JxWrapperException - if the specified element is not valid.| Method Detail |
public java.lang.String getSort()
public static boolean isStatement(org.w3c.dom.Element elem)
Stmt.
elem - An element of the DOM.
true if the element equals to Stmt.public static org.w3c.dom.Element getStatementElement(org.w3c.dom.Element elem)
Stmt element containing a given element.
elem - An element of the DOM.
Stmt element, or null if there is no such element.public boolean equals(JxStatement jst)
jst - A statement wrapper.
true if the statement 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 boolean isEmptyStatement()
true if this element is the empty statement.public boolean isExpressionStstement()
public boolean isBlockStatement()
true if this element is the block statement.public boolean isDoStatement()
public boolean isWhileStatement()
true if this element is the while statement.public boolean isForStatement()
true if this element is the for statement.public boolean isIfStatement()
true if this element is the if statement.public boolean isSwitchStatement()
true if this element is the switch statement.public boolean isBreakStatement()
true if this element is the break statement.public boolean isContinueStatement()
public boolean isReturnStatement()
true if this element is the return statement.public boolean isSynchronizedStatement()
true if this element is the synchronized statement.public boolean isThrowStatement()
true if this element is the throw statement.public boolean isTryStatement()
true if this element is the try statement.public void print()
print in class JxDefUseExpression
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||