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, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getComponentType, getDeclaringClass, getName
public JavaPropertyImpl(java.lang.String name, JavaMethod getter, JavaMethod setter, JavaType type, JavaType declaringClass) throws ModelFatalException
ModelFatalException
public 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 JavaElement
public int getModifiers()
This implementation returns the underlying object of the getter method if available; otherwise the one from the setter method.
getModifiers
in interface JavaMember
getModifiers
in class AbstractJavaMember
Modifier
public JavaMethod getGetterMethod()
null
.getGetterMethod
in interface JavaProperty
null
otherwise.public JavaMethod getSetterMethod()
null
.getSetterMethod
in interface JavaProperty
null
otherwise.public JavaType getType()
getType
in interface JavaMember
getType
in class AbstractJavaMember
Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.