|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.stickycode.coercion.target.ParameterizedArrayCoercionTarget
public class ParameterizedArrayCoercionTarget
| Constructor Summary | |
|---|---|
ParameterizedArrayCoercionTarget(GenericArrayType genericType,
Class<?> owner,
CoercionTarget parent,
String name)
|
|
| Method Summary | |
|---|---|
Class<?> |
boxedType()
If this target represents a primitive type return the boxing type for it |
boolean |
canBeAnnotated()
|
boolean |
equals(Object obj)
|
AnnotatedElement |
getAnnotatedElement()
|
CoercionTarget[] |
getComponentCoercionTypes()
Return the CoercionTargets for the components. |
String |
getName()
|
Class<?> |
getOwner()
Return the owning type of the target, for a method this is the class the method was found on similarly for fields. |
CoercionTarget |
getParent()
|
Class<?> |
getType()
Return the type for the target to be coerced |
boolean |
hasComponents()
Does the target have components, this is true of any container e.g. |
int |
hashCode()
|
boolean |
hasParent()
|
boolean |
isArray()
Is the underlying target an array |
boolean |
isPrimitive()
Return true if this target is a primitive type |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ParameterizedArrayCoercionTarget(GenericArrayType genericType,
Class<?> owner,
CoercionTarget parent,
String name)
| Method Detail |
|---|
public Class<?> getType()
CoercionTarget
getType in interface CoercionTargetpublic boolean hasComponents()
CoercionTargetCollection, Map
hasComponents in interface CoercionTargetpublic CoercionTarget[] getComponentCoercionTypes()
CoercionTargetCoercionTargets for the components.
For a collection this would return a single CoercionTarget for the element contained.
For a map you would get one for the key and one for the value.
getComponentCoercionTypes in interface CoercionTargetpublic boolean isArray()
CoercionTarget
isArray in interface CoercionTargetpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic boolean isPrimitive()
CoercionTarget
isPrimitive in interface CoercionTargetpublic Class<?> boxedType()
CoercionTarget
boxedType in interface CoercionTargetpublic boolean canBeAnnotated()
canBeAnnotated in interface CoercionTargetpublic AnnotatedElement getAnnotatedElement()
getAnnotatedElement in interface CoercionTargetpublic Class<?> getOwner()
CoercionTarget
getOwner in interface CoercionTargetpublic String toString()
toString in class Objectpublic CoercionTarget getParent()
getParent in interface CoercionTargetpublic boolean hasParent()
hasParent in interface CoercionTargetpublic String getName()
getName in interface CoercionTarget
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||