Modifier and Type | Class and Description |
---|---|
static class |
CollectionType.CollectionKind
Returns the kind of this type.
|
Constructor and Description |
---|
CollectionType(AstCollectionType originalAst,
CollectionType.CollectionKind kind,
Type elementType)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
Type |
getElementType()
Returns the element type.
|
CollectionType.CollectionKind |
getKind()
Returns the collection kind of this type.
|
AstCollectionType |
getOriginalAst()
Returns the corresponded syntactic element of this.
|
boolean |
isSame(Type o)
Compare to other type, and returns
true iff both type are same. |
Type |
map(PropertyMappingKind mapping)
Returns the mapped result type.
|
String |
toString() |
public CollectionType(AstCollectionType originalAst, CollectionType.CollectionKind kind, Type elementType)
originalAst
- the original AST, or null
if this is an ad-hoc elementkind
- the kind of this typeelementType
- the element typepublic AstCollectionType getOriginalAst()
Element
getOriginalAst
in interface Element
null
if unknownpublic CollectionType.CollectionKind getKind()
public Type getElementType()
public Type map(PropertyMappingKind mapping)
Type
public boolean isSame(Type o)
Type
true
iff both type are same.Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.