|
|||||||||||
| 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
An object wrapping the Field element.
| Field Summary | |
protected java.lang.String |
fqn
The fully-qualified type name of this field. |
protected JxVariable |
jvariable
The variable declared in this field declaration. |
protected org.w3c.dom.Element[] |
mcallElems
Elements of method calls within in this fields. |
protected java.lang.String |
name
The name of this field. |
protected java.lang.String |
type
The type of this field. |
protected org.w3c.dom.Element[] |
vaccessElems
Elements of variable accesses within in this field. |
| 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 |
JxField()
Creates a new, empty object. |
protected |
JxField(org.w3c.dom.Element elem)
Creates a new object wrapping a Field element. |
| Method Summary | |
boolean |
enclose(org.w3c.dom.Element elem)
Tests if this field element encloses a given element. |
boolean |
equals(JxField jfield)
Tests if a given field wrapper equals to this one. |
java.lang.String |
getAccess()
Returns the access setting for this field. |
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. |
static org.w3c.dom.Element |
getFieldElement(org.w3c.dom.Element elem)
Returns the Field element containing a given element. |
JxClass |
getJxClass()
Obtains a class wrapper defining this field. |
JxVariable |
getJxVariable()
Returns the variable wrapper declared in this field. |
java.lang.String |
getModifier()
Returns modifiers of this method. |
java.lang.String |
getName()
Returns the name if this field. |
org.w3c.dom.Element |
getNameNode()
Returns the name element of this field. |
int |
getNumOfDeclaredFields()
Returns the number of the fields sharing the same type-declaration. |
java.lang.String |
getTypeFqn()
Returns the fully qualified name of the type of this field. |
java.lang.String |
getTypeName()
Returns the name of the type of this field. |
boolean |
hasInitialValue()
Test if the value of the varibale in this field declaration is given. |
boolean |
isDefault()
Test if the access setting of this field is default. |
static boolean |
isField(org.w3c.dom.Element elem)
Tests if a given element equals to Field. |
boolean |
isFinal()
Test if this field is final. |
boolean |
isOmitted()
Test if the type of the declared field is ommited. |
boolean |
isPrivate()
Test if the access setting of this field is private. |
boolean |
isProtected()
Test if the access setting of this field is protected. |
boolean |
isPublic()
Test if the access setting of this field is public. |
boolean |
isStatic()
Test if this field is static. |
boolean |
isTransient()
Test if this field is volatile. |
boolean |
isVolatile()
Test if this field is volatile. |
void |
print()
Displays information about this field 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 name
protected java.lang.String fqn
protected java.lang.String type
protected JxVariable jvariable
protected org.w3c.dom.Element[] mcallElems
protected org.w3c.dom.Element[] vaccessElems
| Constructor Detail |
protected JxField()
protected JxField(org.w3c.dom.Element elem)
throws JxWrapperException
Field 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 getTypeFqn()
public java.lang.String getTypeName()
getTypeName in class JxElementpublic JxVariable getJxVariable()
JavaVariable wrapper declared in this field.public java.lang.String getAccess()
public JxClass getJxClass()
getJxClass in class JxElementJavaClass wrapper defining this field.public static boolean isField(org.w3c.dom.Element elem)
Field.
elem - An element of the DOM.
Field.public static org.w3c.dom.Element getFieldElement(org.w3c.dom.Element elem)
Field element containing a given element.
elem - An element of the DOM.
Field element, or null if thereis no such element.public boolean equals(JxField jfield)
jfield - A field wrapper.
true if the field 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 isPublic()
true if this field is public.public boolean isProtected()
true if this field is protected.public boolean isPrivate()
true if this field is private.public boolean isDefault()
true if this field has no specified access setting.public boolean isFinal()
true if this field is final.public boolean isStatic()
true if this field is static.public boolean isVolatile()
true if this field is volatile.public boolean isTransient()
true if this field is volatile.public boolean isOmitted()
true if the type is omitted.public boolean hasInitialValue()
true if this field declaration has initial value.public java.lang.String getModifier()
public org.w3c.dom.Element[] getAllMethodCallElements()
public org.w3c.dom.Element[] getAllVariableAccessElements()
public int getNumOfDeclaredFields()
public JxField getDeclarativeField()
throws JxWrapperException
JxWrapperException - if no declarative field was found.public void print()
print in class JxDefUseExpression
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||