public final class ConcreteDataModelMirror extends Object implements DataModelMirror
DataModelMirror
.DataModelMirror.Kind
Constructor and Description |
---|
ConcreteDataModelMirror(CompileEnvironment environment,
DeclaredType type,
PropertyMirrorCollector collector)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canContain(DataModelMirror other)
Returns
true iff this data model can contain the other data model. |
boolean |
canInvoke(DataModelMirror other)
Returns
true iff this data model can apply the method parameter
whose type is the specified data model type. |
PropertyMirror |
findProperty(String name)
Returns a property with the specified name.
|
DataModelMirror.Kind |
getKind()
Returns the kind of this data model.
|
String |
getSimpleName()
Returns the simple name of this data model.
|
boolean |
isSame(DataModelMirror other)
Returns
true iff this data model and the specified data model are same. |
String |
toString() |
public ConcreteDataModelMirror(CompileEnvironment environment, DeclaredType type, PropertyMirrorCollector collector)
environment
- the current compilation environmenttype
- the target data model typecollector
- the property collectorIllegalArgumentException
- if some parameters were null
public String getSimpleName()
DataModelMirror
getSimpleName
in interface DataModelMirror
public DataModelMirror.Kind getKind()
DataModelMirror
getKind
in interface DataModelMirror
public boolean isSame(DataModelMirror other)
DataModelMirror
true
iff this data model and the specified data model are same.isSame
in interface DataModelMirror
other
- the other data model typetrue
iff both are samepublic boolean canInvoke(DataModelMirror other)
DataModelMirror
true
iff this data model can apply the method parameter
whose type is the specified data model type.
That is:
canInvoke
in interface DataModelMirror
other
- the other data model typetrue
iff can invoke method
using this data model as parameter of the specified parameter,
false
otherwisepublic boolean canContain(DataModelMirror other)
DataModelMirror
true
iff this data model can contain the other data model.
That is:
canContain
in interface DataModelMirror
other
- the other data model typetrue
iff this data model can contain the other data model,
false
otherwisepublic PropertyMirror findProperty(String name)
DataModelMirror
findProperty
in interface DataModelMirror
name
- target namenull
if not foundCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.