com.cedarsoft.codegen.model
Class DefaultFieldTypeInformation

java.lang.Object
  extended by com.cedarsoft.codegen.model.DefaultFieldTypeInformation
All Implemented Interfaces:
FieldTypeInformation
Direct Known Subclasses:
DefaultFieldDeclarationInfo

public class DefaultFieldTypeInformation
extends Object
implements FieldTypeInformation


Constructor Summary
DefaultFieldTypeInformation(com.sun.mirror.type.TypeMirror typeMirror)
           
 
Method Summary
 com.sun.mirror.type.TypeMirror getCollectionParam()
          Returns the collection parameter
 com.sun.mirror.type.TypeMirror getType()
          Returns the type of the field
 com.sun.mirror.type.TypeMirror getTypeMirror()
           
 boolean isCollectionType()
          Whether this is a collection type
 boolean isType(Class<?> type)
          Whether the field is of the given type (exactly!)
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultFieldTypeInformation

public DefaultFieldTypeInformation(@NotNull
                                   com.sun.mirror.type.TypeMirror typeMirror)
Method Detail

getTypeMirror

@NotNull
public com.sun.mirror.type.TypeMirror getTypeMirror()

getType

@NotNull
public com.sun.mirror.type.TypeMirror getType()
Description copied from interface: FieldTypeInformation
Returns the type of the field

Specified by:
getType in interface FieldTypeInformation
Returns:
the type of the field

isType

public boolean isType(@NotNull
                      Class<?> type)
Description copied from interface: FieldTypeInformation
Whether the field is of the given type (exactly!)

Specified by:
isType in interface FieldTypeInformation
Parameters:
type - the type
Returns:
true if the field is of the given type

isCollectionType

public boolean isCollectionType()
Description copied from interface: FieldTypeInformation
Whether this is a collection type

Specified by:
isCollectionType in interface FieldTypeInformation
Returns:
whether this is a collection type

getCollectionParam

@NotNull
public com.sun.mirror.type.TypeMirror getCollectionParam()
Description copied from interface: FieldTypeInformation
Returns the collection parameter

Specified by:
getCollectionParam in interface FieldTypeInformation
Returns:
the collection parameter

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2010 cedarsoft GmbH. All Rights Reserved.