|
|||||||||||
| 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.JxField
org.jtool.jxplatform.wrapper.JxBinaryField
An object wrapping a Field element of an XML document generated from a binary file.
| Field Summary |
| Fields inherited from class org.jtool.jxplatform.wrapper.JxField |
fqn, jvariable, mcallElems, name, type, vaccessElems |
| 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 |
JxBinaryField()
Creates a new, empty object. |
protected |
JxBinaryField(org.w3c.dom.Element elem)
Creates a new object wrapping a Field element. |
| Method Summary | |
void |
addDefinedVariable(JxVariable jv)
Adds a variable into a variable list of defined variables in this expression. |
void |
addDefinedVariableFirst(JxVariable jv)
Adds a variable into the head of a variable list of defined variables in this expression. |
void |
addUsedVariable(JxVariable jv)
Adds a variable into a variable list of used variables in this expression. |
void |
addUsedVariableFirst(JxVariable jv)
Adds a variable into the head of a variable list of used variables in this expression. |
void |
clearDefinedVariable()
Removes all variables in a variable list of defined variables in this expression. |
void |
clearUsedVariable()
Removes all variables in a variable list of used variables in this expression. |
boolean |
definesVariable()
Tests if this statement defines any variable. |
org.w3c.dom.Element[] |
getAllMethodCallElements()
Returns the elements of method calls contained in this method. |
org.w3c.dom.Element[] |
getAllVariableAccessElements()
Returns the elements of variable accesses contained in this static inotializer. |
JxField |
getDeclarativeField()
Returns the field with its type among the fields sharing the same type-declaration. |
JxVariableList |
getDefinedVariables()
Returns the list of variables defined in this statement. |
org.w3c.dom.Element[] |
getExpressions()
Obtains the elements of expressions contained in this statement. |
JxClass |
getJxClass()
Obtains a class wrapper defining this field. |
JxVariable |
getJxVariable()
Returns the variable wrapper declared in this field. |
int |
getNumOfDeclaredFields()
Returns the number of the fields sharing the same type-declaration. |
JxVariableList |
getUsedVariables()
Returns the list of variables used in this statement. |
boolean |
hasInitialValue()
Test if the value of the varibale in this field declaration is given. |
void |
print()
Displays information about this field wrapper for debugging. |
void |
removeDefinedVariable(JxVariable jv)
Removes a variable from a variable list of defined variables in this expression. |
void |
removeUsedVariable(JxVariable jv)
Removes a variable from a variable list of used variables in this expression. |
boolean |
usesVariable()
Tests if this statement uses any variable. |
| Methods inherited from class org.jtool.jxplatform.wrapper.JxField |
enclose, equals, getAccess, getFieldElement, getModifier, getName, getNameNode, getTypeFqn, getTypeName, isDefault, isField, isFinal, isOmitted, isPrivate, isProtected, isPublic, isStatic, isTransient, isVolatile |
| Methods inherited from class org.jtool.jxplatform.wrapper.JxDefUseExpression |
equals |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
protected JxBinaryField()
protected JxBinaryField(org.w3c.dom.Element elem)
throws JxWrapperException
Field element.
elem - An DOM element to be wrapped.
JxWrapperException - JxWrapperException if the specified element is not valid.| Method Detail |
public JxVariable getJxVariable()
getJxVariable in class JxFieldnull since this method does not intend to be called.JxField.getJxVariable()public JxClass getJxClass()
getJxClass in class JxFieldJavaBinaryClass wrapper defining this field.JxField.getJxClass()public boolean hasInitialValue()
hasInitialValue in class JxFieldfalse since this method does not intend to be called.JxField.hasInitialValue()public org.w3c.dom.Element[] getAllMethodCallElements()
getAllMethodCallElements in class JxFieldJxField.getAllMethodCallElements()public org.w3c.dom.Element[] getAllVariableAccessElements()
getAllVariableAccessElements in class JxFieldJxField.getAllVariableAccessElements()public int getNumOfDeclaredFields()
getNumOfDeclaredFields in class JxFieldJxField.getNumOfDeclaredFields()public JxField getDeclarativeField()
getDeclarativeField in class JxFieldJxField.getDeclarativeField()public org.w3c.dom.Element[] getExpressions()
getExpressions in class JxDefUseExpressionJxDefUseExpression.getExpressions()public JxVariableList getDefinedVariables()
getDefinedVariables in class JxDefUseExpressionJxVariable since this method does not intend to be called.JxDefUseExpression.getDefinedVariables()public JxVariableList getUsedVariables()
getUsedVariables in class JxDefUseExpressionJxVariable since this method does not intend to be called.JxDefUseExpression.getUsedVariables()public boolean definesVariable()
definesVariable in class JxDefUseExpressionfalse since this method does not intend to be called.JxDefUseExpression.definesVariable()public boolean usesVariable()
usesVariable in class JxDefUseExpressionfalse since this method does not intend to be called.JxDefUseExpression.usesVariable()public void addDefinedVariable(JxVariable jv)
addDefinedVariable in class JxDefUseExpressionJxDefUseExpression.addDefinedVariable(JxVariable)public void addUsedVariable(JxVariable jv)
addUsedVariable in class JxDefUseExpressionJxDefUseExpression.addUsedVariable(JxVariable)public void addDefinedVariableFirst(JxVariable jv)
addDefinedVariableFirst in class JxDefUseExpressionJxDefUseExpression.addDefinedVariableFirst(JxVariable)public void addUsedVariableFirst(JxVariable jv)
addUsedVariableFirst in class JxDefUseExpressionJxDefUseExpression.addUsedVariableFirst(JxVariable)public void removeDefinedVariable(JxVariable jv)
removeDefinedVariable in class JxDefUseExpressionJxDefUseExpression.clearDefinedVariable()public void removeUsedVariable(JxVariable jv)
removeUsedVariable in class JxDefUseExpressionJxDefUseExpression.removeUsedVariable(JxVariable)public void clearDefinedVariable()
clearDefinedVariable in class JxDefUseExpressionJxDefUseExpression.clearDefinedVariable()public void clearUsedVariable()
clearUsedVariable in class JxDefUseExpressionJxDefUseExpression.clearUsedVariable()public void print()
print in class JxFieldJxField.print()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||