Constructor and Description |
---|
BasicType(AstBasicType originalAst,
BasicTypeKind kind)
Creates and returns a new instance.
|
Modifier and Type | Method and Description |
---|---|
BasicTypeKind |
getKind()
Returns the kind of this type.
|
AstBasicType |
getOriginalAst()
Returns the corresponded syntactic element of this.
|
boolean |
isSame(Type other)
Compare to other type, and returns
true iff both type are same. |
Type |
map(PropertyMappingKind mapping)
Returns the mapped result type.
|
String |
toString() |
public BasicType(AstBasicType originalAst, BasicTypeKind kind)
originalAst
- the original AST, or null
if this is an ad-hoc elementkind
- the kind of this typeIllegalArgumentException
- if some parameters were null
public AstBasicType getOriginalAst()
Element
getOriginalAst
in interface Element
null
if unknownpublic BasicTypeKind getKind()
public Type map(PropertyMappingKind mapping)
Type
public boolean isSame(Type other)
Type
true
iff both type are same.Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.