com.cedarsoft.codegen.mock
Class CollectionTypeMirrorMock

java.lang.Object
  extended by com.cedarsoft.codegen.mock.TypeMirrorMock
      extended by com.cedarsoft.codegen.mock.ReferenceTypeMock
          extended by com.cedarsoft.codegen.mock.CollectionTypeMirrorMock
All Implemented Interfaces:
com.sun.mirror.type.DeclaredType, com.sun.mirror.type.ReferenceType, com.sun.mirror.type.TypeMirror

public class CollectionTypeMirrorMock
extends ReferenceTypeMock
implements com.sun.mirror.type.DeclaredType


Field Summary
 
Fields inherited from class com.cedarsoft.codegen.mock.ReferenceTypeMock
type
 
Constructor Summary
CollectionTypeMirrorMock(Class<?> collectionType)
           
CollectionTypeMirrorMock(Class<?> collectionType, Class<?> type)
           
 
Method Summary
 Collection<com.sun.mirror.type.TypeMirror> getActualTypeArguments()
           
 Class<?> getCollectionType()
           
 com.sun.mirror.type.DeclaredType getContainingType()
           
 com.sun.mirror.declaration.TypeDeclaration getDeclaration()
           
 Collection<com.sun.mirror.type.InterfaceType> getSuperinterfaces()
           
 String toString()
           
 
Methods inherited from class com.cedarsoft.codegen.mock.TypeMirrorMock
accept
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.sun.mirror.type.TypeMirror
accept, equals
 

Constructor Detail

CollectionTypeMirrorMock

public CollectionTypeMirrorMock(@NotNull
                                Class<?> collectionType)

CollectionTypeMirrorMock

public CollectionTypeMirrorMock(@NotNull
                                Class<?> collectionType,
                                @Nullable
                                Class<?> type)
Method Detail

getDeclaration

public com.sun.mirror.declaration.TypeDeclaration getDeclaration()
Specified by:
getDeclaration in interface com.sun.mirror.type.DeclaredType

getContainingType

public com.sun.mirror.type.DeclaredType getContainingType()
Specified by:
getContainingType in interface com.sun.mirror.type.DeclaredType

getActualTypeArguments

public Collection<com.sun.mirror.type.TypeMirror> getActualTypeArguments()
Specified by:
getActualTypeArguments in interface com.sun.mirror.type.DeclaredType

getSuperinterfaces

public Collection<com.sun.mirror.type.InterfaceType> getSuperinterfaces()
Specified by:
getSuperinterfaces in interface com.sun.mirror.type.DeclaredType

getCollectionType

@NotNull
public Class<?> getCollectionType()

toString

public String toString()
Specified by:
toString in interface com.sun.mirror.type.TypeMirror
Overrides:
toString in class ReferenceTypeMock


Copyright © 2010 cedarsoft GmbH. All Rights Reserved.