|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jdo.impl.model.java.AbstractJavaMember
Abstract super class for JavaMember implementations. It provides getters for the name and declaringClass properties which are initialized in the constructor.
A non-abstract subclass must implement methods
getModifiers()
and getType()
.
Constructor Summary | |
AbstractJavaMember(java.lang.String name,
JavaType declaringClass)
Constructor setting the name and declaringClass property. |
Method Summary | |
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one. |
JavaType |
getComponentType()
Returns the JavaType representation of the component type of the type of the property, if the property type is an array or collection. |
JavaType |
getDeclaringClass()
Returns the JavaType instance representing the class or interface that declares the field represented by this JavaMember instance. |
abstract int |
getModifiers()
Returns the Java language modifiers for the member represented by this JavaMember, as an integer. |
java.lang.String |
getName()
Returns the name of the field. |
abstract JavaType |
getType()
Returns the JavaType representation of the type of the memeber. |
int |
hashCode()
Returns a hash code value for the object. |
java.lang.String |
toString()
Returns a string representation of the object. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.jdo.model.java.JavaElement |
getUnderlyingObject |
Constructor Detail |
public AbstractJavaMember(java.lang.String name, JavaType declaringClass)
name
- field namedeclaringClass
- the JavaType of the class or interface that
declares this JavaMember.Method Detail |
public java.lang.String getName()
getName
in interface JavaMember
public JavaType getDeclaringClass()
getDeclaringClass
in interface JavaMember
public abstract int getModifiers()
getModifiers
in interface JavaMember
Modifier
public abstract JavaType getType()
getType
in interface JavaMember
public JavaType getComponentType()
null
, if the property type is not an array
or collection.
getComponentType
in interface JavaMember
public boolean equals(java.lang.Object obj)
obj
- the reference object with which to compare.
This implementation matches the declaring class and the name of the specified object to the declaring class and the name of this JavaMember.
true
if this object is the same as the obj
argument; false
otherwise.public int hashCode()
This is computed as the exclusive-or of the hashcodes for the underlying field's declaring class name and its name.
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |