public class JavaPropertyImpl extends AbstractJavaMember implements JavaProperty
| Constructor and Description |
|---|
JavaPropertyImpl(java.lang.String name,
JavaMethod getter,
JavaMethod setter,
JavaType type,
JavaType declaringClass)
Constructor setting name, getter, setter, type and declaringClass.
|
| Modifier and Type | Method and Description |
|---|---|
JavaMethod |
getGetterMethod()
Returns the JavaMethod representation of the getter method for this
JavaProperty.
|
int |
getModifiers()
Returns the Java language modifiers for the field represented by
this JavaMember, as an integer.
|
JavaMethod |
getSetterMethod()
Returns the JavaMethod representation of the setter method for this
JavaProperty.
|
JavaType |
getType()
Returns the JavaType representation of the property type.
|
java.lang.Object |
getUnderlyingObject()
Returns the environment specific instance wrapped by this JavaModel
element.
|
equals, getComponentType, getDeclaringClass, getName, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetComponentType, getDeclaringClass, getNamepublic JavaPropertyImpl(java.lang.String name,
JavaMethod getter,
JavaMethod setter,
JavaType type,
JavaType declaringClass)
throws ModelFatalException
ModelFatalExceptionpublic java.lang.Object getUnderlyingObject()
This implementation returns the underlying object of the getter method if available; otherwise the one from the setter method.
getUnderlyingObject in interface JavaElementpublic int getModifiers()
This implementation returns the underlying object of the getter method if available; otherwise the one from the setter method.
getModifiers in interface JavaMembergetModifiers in class AbstractJavaMemberModifierpublic JavaMethod getGetterMethod()
null.getGetterMethod in interface JavaPropertynull
otherwise.public JavaMethod getSetterMethod()
null.getSetterMethod in interface JavaPropertynull
otherwise.public JavaType getType()
getType in interface JavaMembergetType in class AbstractJavaMemberCopyright © 2005-2012 Apache Software Foundation. All Rights Reserved.