public final class PartialDataModelMirror extends Object implements DataModelMirror
DataModelMirror.DataModelMirror.Kind| Constructor and Description |
|---|
PartialDataModelMirror(CompileEnvironment environment,
TypeVariable 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 PartialDataModelMirror(CompileEnvironment environment, TypeVariable type, PropertyMirrorCollector collector)
environment - the current compilation environmenttype - the target data model typecollector - the property collectorIllegalArgumentException - if some parameters were nullpublic String getSimpleName()
DataModelMirrorgetSimpleName in interface DataModelMirrorpublic DataModelMirror.Kind getKind()
DataModelMirrorgetKind in interface DataModelMirrorpublic boolean isSame(DataModelMirror other)
DataModelMirrortrue iff this data model and the specified data model are same.isSame in interface DataModelMirrorother - the other data model typetrue iff both are samepublic boolean canInvoke(DataModelMirror other)
DataModelMirrortrue iff this data model can apply the method parameter
whose type is the specified data model type.
That is:
canInvoke in interface DataModelMirrorother - 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)
DataModelMirrortrue iff this data model can contain the other data model.
That is:
canContain in interface DataModelMirrorother - the other data model typetrue iff this data model can contain the other data model,
false otherwisepublic PropertyMirror findProperty(String name)
DataModelMirrorfindProperty in interface DataModelMirrorname - target namenull if not foundCopyright © 2011–2018 Asakusa Framework Team. All rights reserved.