net.stickycode.coercion.target
Class PrimitiveResolvingCoercionTarget

java.lang.Object
  extended by net.stickycode.coercion.target.AbstractCoercionTarget
      extended by net.stickycode.coercion.target.PrimitiveResolvingCoercionTarget
All Implemented Interfaces:
CoercionTarget

public class PrimitiveResolvingCoercionTarget
extends AbstractCoercionTarget


Field Summary
 
Fields inherited from class net.stickycode.coercion.target.AbstractCoercionTarget
owner, parent, type
 
Constructor Summary
PrimitiveResolvingCoercionTarget(Class<?> type, AnnotatedElement annotatedElement, 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()
           
 int hashCode()
           
 boolean isPrimitive()
          Return true if this target is a primitive type
 String toString()
           
 
Methods inherited from class net.stickycode.coercion.target.AbstractCoercionTarget
getComponentCoercionTypes, getName, getOwner, getParent, getType, hasComponents, hasParent, isArray
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PrimitiveResolvingCoercionTarget

public PrimitiveResolvingCoercionTarget(Class<?> type,
                                        AnnotatedElement annotatedElement,
                                        Class<?> owner,
                                        CoercionTarget parent,
                                        String name)
Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

isPrimitive

public boolean isPrimitive()
Description copied from interface: CoercionTarget
Return true if this target is a primitive type

Specified by:
isPrimitive in interface CoercionTarget
Overrides:
isPrimitive in class AbstractCoercionTarget

boxedType

public Class<?> boxedType()
Description copied from interface: CoercionTarget
If this target represents a primitive type return the boxing type for it

Specified by:
boxedType in interface CoercionTarget
Overrides:
boxedType in class AbstractCoercionTarget

canBeAnnotated

public boolean canBeAnnotated()
Specified by:
canBeAnnotated in interface CoercionTarget
Overrides:
canBeAnnotated in class AbstractCoercionTarget

getAnnotatedElement

public AnnotatedElement getAnnotatedElement()
Specified by:
getAnnotatedElement in interface CoercionTarget
Overrides:
getAnnotatedElement in class AbstractCoercionTarget

toString

public String toString()
Overrides:
toString in class AbstractCoercionTarget


Copyright © 2003-2012 RedEngine Ltd. All Rights Reserved.