T
- Return type of the property to be invoked. class PropertyClass<T>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.Class<?> |
clazz |
private GetProperty<T> |
get |
private java.lang.String |
name |
private SetProperty |
set |
private java.lang.Class<?> |
type |
private TypeModifier |
typeModifier |
Constructor and Description |
---|
PropertyClass(java.lang.Class<?> clazz,
java.lang.String name,
java.lang.Class<?> type,
TypeModifier typeModifier) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
private GetProperty<T> |
getInstanceGet()
Gets the class that implements GetProperty.
|
private SetProperty |
getInstanceSet()
Gets the class that implements SetProperty
|
GetProperty<T> |
getProperty()
Returns an object that implements GetProperty to perform dynamic invocations to the property.
|
int |
hashCode() |
SetProperty |
setProperty()
Returns an object that implements SetProperty to perform dynamic invocations to the property.
|
private final java.lang.String name
private final java.lang.Class<?> clazz
private final java.lang.Class<?> type
private final TypeModifier typeModifier
private GetProperty<T> get
private SetProperty set
public PropertyClass(java.lang.Class<?> clazz, java.lang.String name, java.lang.Class<?> type, TypeModifier typeModifier)
clazz
- The class the method belongs to.name
- Name of the propertytype
- Type of the propertytypeModifier
- Indicates if the member is instance or class (static).public final GetProperty<T> getProperty() throws java.lang.InstantiationException
java.lang.InstantiationException
- If there is an error instantiating the class.public final SetProperty setProperty() throws java.lang.InstantiationException
java.lang.InstantiationException
- If there is an error instantiating the class.private GetProperty<T> getInstanceGet() throws java.lang.InstantiationException
java.lang.InstantiationException
- If there is an error instantiating the class.private SetProperty getInstanceSet() throws java.lang.InstantiationException
java.lang.InstantiationException
- If there is an error instantiating the class.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object