org.apache.jdo.model.java
Interface JavaMember

All Superinterfaces:
JavaElement
All Known Subinterfaces:
JavaField, JavaMethod, JavaProperty
All Known Implementing Classes:
AbstractJavaMember, BaseReflectionJavaField, JavaPropertyImpl, ReflectionJavaMethod

public interface JavaMember
extends JavaElement

This is the super interface for named JavaModel elements having a declaring class such as JavaField, JavaMethod, etc.

Since:
JDO 2.0
Author:
Michael Bouschen

Method Summary
 JavaType getComponentType()
          Returns the JavaType representation of the component type of the type of the member, if the field type is an array or collection.
 JavaType getDeclaringClass()
          Returns the JavaType instance representing the class or interface that declares the member represented by this JavaMember instance.
 int getModifiers()
          Returns the Java language modifiers for the field represented by this JavaMember, as an integer.
 java.lang.String getName()
          Returns the name of the member.
 JavaType getType()
          Returns the JavaType representation of the type of the member.
 
Methods inherited from interface org.apache.jdo.model.java.JavaElement
getUnderlyingObject
 

Method Detail

getName

public java.lang.String getName()
Returns the name of the member.

Returns:
member name

getDeclaringClass

public JavaType getDeclaringClass()
Returns the JavaType instance representing the class or interface that declares the member represented by this JavaMember instance.

Returns:
the JavaType instance of the declaring class.

getModifiers

public int getModifiers()
Returns the Java language modifiers for the field represented by this JavaMember, as an integer. The java.lang.reflect.Modifier class should be used to decode the modifiers.

Returns:
the Java language modifiers for this JavaMember
See Also:
Modifier

getType

public JavaType getType()
Returns the JavaType representation of the type of the member.

Returns:
type of the member

getComponentType

public JavaType getComponentType()
Returns the JavaType representation of the component type of the type of the member, if the field type is an array or collection. The method returns null, if the member type is not an array or collection.

Returns:
the component type of the member type in case of an array or collection.