|
|||||||||||
| 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.JxLocal
An object wrapping the Local element.
| Field Summary | |
protected JxVariable |
jvariable
The variable declared in this local declaration. |
| 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 |
JxLocal()
Creates a new, empty object. |
protected |
JxLocal(org.w3c.dom.Element elem)
Creates a new object wrapping a Local element. |
| Method Summary | |
boolean |
enclose(org.w3c.dom.Element elem)
Tests if this local element encloses a given element. |
boolean |
equals(JxLocal jlocal)
Tests if a given local wrapper equals to this one. |
org.w3c.dom.Element[] |
getAllElementsSharingTheSameType()
Returns an array of all elements which shares the same type declaration. |
JxVariable |
getJxVariable()
Returns the variable wrapper declared in this local declaration. |
static org.w3c.dom.Element |
getLocalElement(org.w3c.dom.Element elem)
Returns the Local element containing a given element. |
java.lang.String |
getName()
Returns the name if this local. |
org.w3c.dom.Element |
getNameNode()
Returns the name element of this local. |
int |
getNumOfVariablesInDeclaration()
Returns the number of local varaibles declared in the same statement. |
java.lang.String |
getTypeFqn()
Returns the fully qualified name of the type of this local. |
java.lang.String |
getTypeName()
Returns the name of the type of this local. |
boolean |
hasInitialValue()
Test if the value of the varibale in this local declaration is given. |
boolean |
isFinal()
Test if the declared local variable is final. |
static boolean |
isLocal(org.w3c.dom.Element elem)
Tests if a given element equals to Local. |
boolean |
isOmitted()
Test if the type of the declared local variable is ommited. |
boolean |
isVolatile()
Test if the declared local variable is volatile. |
void |
print()
Displays information about this local 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 JxVariable jvariable
| Constructor Detail |
protected JxLocal()
protected JxLocal(org.w3c.dom.Element elem)
throws JxWrapperException
Local 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 getTypeName()
getTypeName in class JxElementpublic java.lang.String getTypeFqn()
public JxVariable getJxVariable()
JavaVariable wrapper declared in this local declaration.
public static boolean isLocal(org.w3c.dom.Element elem)
Local.
elem - An element of the DOM.
true if the element equals to Local.public static org.w3c.dom.Element getLocalElement(org.w3c.dom.Element elem)
Local element containing a given element.
elem - An element of the DOM.
Local element, or null if there is no such element.public boolean equals(JxLocal jlocal)
jlocal - A local wrapper.
true if the local 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 isFinal()
true if this local variable is final.public boolean isVolatile()
true if this local is volatile.public boolean isOmitted()
true if the type is omitted.public boolean hasInitialValue()
true if this local declaration has initial value.public int getNumOfVariablesInDeclaration()
public org.w3c.dom.Element[] getAllElementsSharingTheSameType()
public void print()
print in class JxDefUseExpression
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||