public class PivotMetamodelManager extends java.lang.Object implements MetamodelManagerInternal.MetamodelManagerInternalExtension2, org.eclipse.emf.common.notify.Adapter.Internal
| Modifier and Type | Class and Description |
|---|---|
class |
PivotMetamodelManager.CompleteClassPropertiesIterable |
class |
PivotMetamodelManager.CompleteElementInvariantsIterable |
class |
PivotMetamodelManager.CompleteTypeOperationsIterable |
MetamodelManagerInternal.MetamodelManagerInternalExtension, MetamodelManagerInternal.MetamodelManagerInternalExtension2| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<Library> |
asLibraries
All Library packages imported into the current type managed domain.
|
protected org.eclipse.emf.ecore.resource.Resource |
asLibraryResource
The resource of the Standard Library defined by loadDefaultLibrary.
|
protected Package |
asMetamodel |
protected org.eclipse.emf.ecore.resource.ResourceSet |
asResourceSet |
static java.util.List<Constraint> |
EMPTY_CONSTRAINT_LIST |
static java.util.List<Element> |
EMPTY_ELEMENT_LIST |
static java.util.List<Operation> |
EMPTY_OPERATION_LIST |
static java.util.List<Property> |
EMPTY_PROPERTY_LIST |
static java.util.List<State> |
EMPTY_STATE_LIST |
static java.util.List<TemplateParameter> |
EMPTY_TEMPLATE_PARAMETER_LIST |
static java.util.List<Type> |
EMPTY_TYPE_LIST |
protected EnvironmentFactoryInternal |
environmentFactory |
static TracingOption |
INSTALL_MODEL |
static java.util.WeakHashMap<PivotMetamodelManager,java.lang.Object> |
liveMetamodelManagers
Leak debugging aid.
|
| Constructor and Description |
|---|
PivotMetamodelManager(EnvironmentFactoryInternal environmentFactory,
org.eclipse.emf.ecore.resource.ResourceSet asResourceSet)
Construct a MetamodelManager that will use environmentFactory to create its artefacts
such as an asResourceSet to contain pivot copies of meta-models.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addClassLoader(java.lang.ClassLoader classLoader) |
void |
addExternal2AS(External2AS es2as) |
void |
addGenModel(org.eclipse.emf.codegen.ecore.genmodel.GenModel genModel) |
void |
addGenPackage(org.eclipse.emf.codegen.ecore.genmodel.GenPackage genPackage) |
Namespace |
addGlobalNamespace(java.lang.String name,
Namespace namespace) |
boolean |
addGlobalTypes(java.util.Collection<Type> types) |
void |
addLockedElement(java.lang.Object lockedElement) |
void |
assignLibraryIds(AS2XMIid as2xmIid,
java.util.Map<java.lang.String,java.lang.Object> options)
Assign xmi:id values to referenceable elements in the libraries.
|
int |
compareOperationMatches(Operation reference,
TemplateParameterSubstitutions referenceBindings,
Operation candidate,
TemplateParameterSubstitutions candidateBindings)
Return -ve if match1 is inferior to match2, +ve if match2 is inferior to match1, or
zero if both matches are of equal validity.
|
boolean |
conformsTo(Type firstType,
TemplateParameterSubstitutions firstSubstitutions,
Type secondType,
TemplateParameterSubstitutions secondSubstitutions) |
BooleanLiteralExp |
createBooleanLiteralExp(boolean booleanSymbol) |
IfExp |
createIfExp(OCLExpression asCondition,
OCLExpression asThen,
OCLExpression asElse) |
IfExp |
createIfExp(OperationCallExp asCondition,
OCLExpression asThen,
OCLExpression asElse) |
IntegerLiteralExp |
createIntegerLiteralExp(java.lang.Number integerSymbol) |
InvalidLiteralExp |
createInvalidExpression() |
NullLiteralExp |
createNullLiteralExp() |
Orphanage |
createOrphanage() |
ParserContext |
createParserContext(Element element,
java.lang.Object... todoParameters)
Return a parserContext suitable for parsing OCL expressions in the context of a pivot element.
|
protected PrecedenceManager |
createPrecedenceManager() |
RealLiteralExp |
createRealLiteralExp(java.lang.Number realSymbol) |
StringLiteralExp |
createStringLiteralExp(java.lang.String stringSymbol) |
UnlimitedNaturalLiteralExp |
createUnlimitedNaturalLiteralExp(java.lang.Number unlimitedNaturalSymbol) |
WildcardType |
createWildcardType(Class lowerBound,
Class upperBound) |
void |
dispose() |
protected void |
finalize() |
static PivotMetamodelManager |
findAdapter(org.eclipse.emf.ecore.resource.ResourceSet asResourceSet)
Return the non-null MetamodelManager for which resourceSet is an AS ResourceSet, or null if not an AS ResourceSet.
|
static PivotMetamodelManager |
getAdapter(org.eclipse.emf.ecore.resource.ResourceSet asResourceSet)
Return the non-null MetamodelManager for the asResourceSet.
|
java.lang.Iterable<CompletePackageInternal> |
getAllCompletePackages() |
java.lang.Iterable<Constraint> |
getAllInvariants(Type pivotType)
Return all constraints applicable to a type and its superclasses.
|
java.lang.Iterable<Operation> |
getAllOperations(Type type,
FeatureFilter featureFilter) |
java.lang.Iterable<Operation> |
getAllOperations(Type type,
FeatureFilter featureFilter,
java.lang.String name) |
java.lang.Iterable<? extends Property> |
getAllProperties(Property pivotProperty) |
java.lang.Iterable<? extends Property> |
getAllProperties(Type type,
FeatureFilter featureFilter) |
java.lang.Iterable<? extends Property> |
getAllProperties(Type type,
FeatureFilter featureFilter,
java.lang.String name) |
java.lang.Iterable<CompleteClass> |
getAllSuperCompleteClasses(Type type) |
java.lang.Iterable<Class> |
getAllTypes(Class pivotType)
Deprecated.
|
java.lang.Iterable<Type> |
getAllTypes(Type pivotType)
Deprecated.
|
Class |
getASClass(java.lang.String className)
Return the pivot model class for className with the Pivot Model.
|
Element |
getASElement(org.eclipse.emf.common.util.URI uri) |
Package |
getASmetamodel() |
<T extends Element> |
getASOf(java.lang.Class<T> pivotClass,
org.eclipse.emf.ecore.EObject eObject) |
<T extends Element> |
getASOfEcore(java.lang.Class<T> pivotClass,
org.eclipse.emf.ecore.EObject eObject) |
org.eclipse.emf.ecore.resource.ResourceSet |
getASResourceSet() |
ExpressionInOCL |
getBodyExpression(Operation operation) |
CollectionType |
getCollectionType(boolean isOrdered,
boolean isUnique) |
CollectionType |
getCollectionType(boolean isOrdered,
boolean isUnique,
Type elementType,
boolean isNullFree,
IntegerValue lower,
UnlimitedNaturalValue upper) |
Class |
getCollectionType(java.lang.String collectionTypeName,
Type elementType,
boolean isNullFree,
IntegerValue lower,
UnlimitedNaturalValue upper) |
Class |
getCollectionType(java.lang.String collectionTypeName,
Type elementType,
IntegerValue lower,
UnlimitedNaturalValue upper)
Deprecated.
add isNullFree argument
|
Type |
getCommonType(Type leftType,
TemplateParameterSubstitutions leftSubstitutions,
Type rightType,
TemplateParameterSubstitutions rightSubstitutions) |
CompleteClassInternal |
getCompleteClass(Type pivotType) |
CompleteEnvironmentInternal |
getCompleteEnvironment() |
CompleteModelInternal |
getCompleteModel() |
CompletePackage |
getCompletePackage(Package asPackage) |
ExpressionInOCL |
getDefaultExpression(Property property) |
<T extends org.eclipse.emf.ecore.EObject> |
getEcoreOfPivot(java.lang.Class<T> ecoreClass,
Element element) |
ElementExtension |
getElementExtension(Element asStereotypedElement,
Stereotype asStereotype)
Return an ElementExtension for asStereotype reusing any that already exist in asElementExtensions.
|
EnvironmentFactoryInternal |
getEnvironmentFactory() |
Class |
getEquivalentClass(Model thisModel,
Class thatClass)
Return the equivalent class to thatClass in thisModel, where equivalent is the same
class/package name hierarchy.
|
External2AS |
getES2AS(org.eclipse.emf.ecore.resource.Resource esResource) |
FinalAnalysis |
getFinalAnalysis() |
FlowAnalysis |
getFlowAnalysis(OCLExpression oclExpression) |
org.eclipse.emf.codegen.ecore.genmodel.GenPackage |
getGenPackage(java.lang.String nsURI) |
java.util.Set<java.util.Map.Entry<java.lang.String,Namespace>> |
getGlobalNamespaces() |
java.lang.Iterable<Type> |
getGlobalTypes() |
LibraryProperty |
getImplementation(Element asNavigationExp,
java.lang.Object sourceValue,
Property property) |
LibraryFeature |
getImplementation(Feature feature) |
LibraryProperty |
getImplementation(java.lang.Object sourceValue,
Property property)
Deprecated.
|
LibraryFeature |
getImplementation(Operation operation) |
ImplementationManager |
getImplementationManager() |
Precedence |
getInfixPrecedence(java.lang.String operatorName) |
CompleteInheritance |
getInheritance(Class type) |
java.util.List<Library> |
getLibraries() |
org.eclipse.emf.ecore.resource.Resource |
getLibraryResource() |
Class |
getLibraryType(java.lang.String string,
java.util.List<? extends Type> templateArguments) |
<T extends Class> |
getLibraryType(T libraryType,
java.util.List<? extends Type> templateArguments) |
java.lang.Iterable<Constraint> |
getLocalInvariants(Class type) |
org.eclipse.emf.ecore.EObject |
getLockingObject() |
Class |
getMapType(java.lang.String mapTypeName,
Type keyType,
Type valueType) |
java.lang.Iterable<Operation> |
getMemberOperations(Class type,
boolean selectStatic) |
java.lang.Iterable<? extends CompletePackage> |
getMemberPackages(Package pkg) |
java.lang.Iterable<Property> |
getMemberProperties(Class type,
boolean selectStatic) |
Class |
getMetaclass(Type domainInstanceType) |
Type |
getOclType(java.lang.String typeName) |
java.lang.Iterable<? extends Operation> |
getOperationOverloads(Operation pivotOperation) |
java.lang.Iterable<Class> |
getPartialClasses(Type pivotType) |
java.lang.Iterable<? extends Package> |
getPartialPackages(Package pkg,
boolean loadASmetamodelFirst) |
protected PrecedenceManager |
getPrecedenceManager() |
Precedence |
getPrefixPrecedence(java.lang.String operatorName) |
Class |
getPrimaryClass(Class type) |
<T extends org.eclipse.emf.ecore.EObject> |
getPrimaryElement(T element) |
Operation |
getPrimaryOperation(Operation pivotOperation) |
Package |
getPrimaryPackage(Package aPackage)
Lookup a primary sub-package.
|
Package |
getPrimaryPackage(java.lang.String nsURI,
java.lang.String... subPackagePath)
Lookup a primary package by its URI and optionally a sub-package path.
|
Property |
getPrimaryProperty(Property pivotProperty) |
Class |
getPrimaryType(java.lang.String nsURI,
java.lang.String path,
java.lang.String... extraPath) |
Type |
getPrimaryType(Type type) |
ASResource |
getResource(org.eclipse.emf.common.util.URI uri,
java.lang.String contentType) |
StandardLibraryInternal |
getStandardLibrary() |
java.lang.Iterable<CompleteClass> |
getSuperCompleteClasses(Class pivotType) |
java.lang.Iterable<CompleteClass> |
getSuperCompleteClasses(CompleteClass completeClass) |
org.eclipse.emf.ecore.resource.ResourceSet |
getTarget() |
protected void |
installLibraryContents(Library asLibrary)
Merge all types in asLibrary into the overall Standard Library.
|
void |
installPropertyDeclaration(Property thisProperty)
Create an implicit opposite property if there is no explicit opposite.
|
void |
installResource(org.eclipse.emf.ecore.resource.Resource asResource) |
void |
installRoot(Model pivotModel) |
boolean |
isAdapterForType(java.lang.Object type) |
boolean |
isLibraryLoadInProgress() |
boolean |
isSuperClassOf(Class unspecializedFirstType,
Class secondType) |
boolean |
isSuperCompleteClassOf(CompleteClass unspecializedFirstType,
CompleteClass secondType) |
boolean |
isTypeServeable(Type type) |
protected boolean |
isUnspecialized(java.util.List<TemplateParameter> templateParameters,
java.util.List<? extends Type> templateArguments) |
protected void |
loadASmetamodel(Package asLibrary)
Load the Pivot Metamodel of the Pivot Model to accompany a given asLibrary.
|
org.eclipse.emf.ecore.resource.Resource |
loadDefaultLibrary(java.lang.String uri)
Load the Standard Library for a given uri.
|
Element |
loadResource(org.eclipse.emf.common.util.URI uri,
java.lang.String zzalias,
org.eclipse.emf.ecore.resource.ResourceSet resourceSet) |
LibraryFeature |
lookupImplementation(Operation dynamicOperation) |
void |
notifyChanged(org.eclipse.emf.common.notify.Notification notification) |
ExpressionInOCL |
parseSpecification(LanguageExpression specification)
Return the compiled query for a specification resolving a String body into a non-null bodyExpression.
|
void |
removeExternalResource(External2AS external2as) |
void |
removeExternalResource(org.eclipse.emf.ecore.resource.Resource esResource) |
void |
resetFinalAnalysis() |
void |
resetFlowAnalysis() |
void |
setASmetamodel(Package asPackage) |
void |
setAutoLoadASmetamodel(boolean autoLoadASmetamodel) |
void |
setLibraryLoadInProgress(boolean libraryLoadInProgress) |
void |
setMetamodelNsURI(java.lang.String metaNsURI) |
void |
setTarget(org.eclipse.emf.common.notify.Notifier newTarget) |
Type |
specializeType(Type type,
CallExp callExp,
Type selfType,
Type selfTypeValue)
Return the specialized form of type analyzing expr to determine the formal to actual parameter mappings
using selfType as the value of OclSelf.
|
void |
unsetTarget(org.eclipse.emf.common.notify.Notifier oldTarget) |
@NonNull public static final TracingOption INSTALL_MODEL
@NonNull public static final java.util.List<Constraint> EMPTY_CONSTRAINT_LIST
@NonNull public static final java.util.List<Element> EMPTY_ELEMENT_LIST
@NonNull public static final java.util.List<Operation> EMPTY_OPERATION_LIST
@NonNull public static final java.util.List<Property> EMPTY_PROPERTY_LIST
@NonNull public static final java.util.List<State> EMPTY_STATE_LIST
@NonNull public static final java.util.List<TemplateParameter> EMPTY_TEMPLATE_PARAMETER_LIST
@NonNull public static final java.util.List<Type> EMPTY_TYPE_LIST
public static java.util.WeakHashMap<PivotMetamodelManager,java.lang.Object> liveMetamodelManagers
@NonNull protected final EnvironmentFactoryInternal environmentFactory
protected Package asMetamodel
@NonNull protected final org.eclipse.emf.ecore.resource.ResourceSet asResourceSet
@NonNull protected final java.util.List<Library> asLibraries
@Nullable protected org.eclipse.emf.ecore.resource.Resource asLibraryResource
public PivotMetamodelManager(@NonNull
EnvironmentFactoryInternal environmentFactory,
@NonNull
org.eclipse.emf.ecore.resource.ResourceSet asResourceSet)
@Nullable public static PivotMetamodelManager findAdapter(@NonNull org.eclipse.emf.ecore.resource.ResourceSet asResourceSet)
@NonNull public static PivotMetamodelManager getAdapter(@NonNull org.eclipse.emf.ecore.resource.ResourceSet asResourceSet)
public void addClassLoader(@NonNull
java.lang.ClassLoader classLoader)
addClassLoader in interface MetamodelManagerInternalpublic void addExternal2AS(@NonNull
External2AS es2as)
addExternal2AS in interface MetamodelManagerInternalpublic void addGenModel(@NonNull
org.eclipse.emf.codegen.ecore.genmodel.GenModel genModel)
addGenModel in interface MetamodelManagerInternalpublic void addGenPackage(@NonNull
org.eclipse.emf.codegen.ecore.genmodel.GenPackage genPackage)
@Nullable public Namespace addGlobalNamespace(@NonNull java.lang.String name, @NonNull Namespace namespace)
addGlobalNamespace in interface MetamodelManagerInternalpublic boolean addGlobalTypes(@NonNull
java.util.Collection<Type> types)
public void addLockedElement(@NonNull
java.lang.Object lockedElement)
addLockedElement in interface MetamodelManagerInternalpublic void assignLibraryIds(@NonNull
AS2XMIid as2xmIid,
@Nullable
java.util.Map<java.lang.String,java.lang.Object> options)
public int compareOperationMatches(@NonNull
Operation reference,
@NonNull
TemplateParameterSubstitutions referenceBindings,
@NonNull
Operation candidate,
@NonNull
TemplateParameterSubstitutions candidateBindings)
public boolean conformsTo(@NonNull
Type firstType,
@NonNull
TemplateParameterSubstitutions firstSubstitutions,
@NonNull
Type secondType,
@NonNull
TemplateParameterSubstitutions secondSubstitutions)
conformsTo in interface MetamodelManagerInternal@NonNull public BooleanLiteralExp createBooleanLiteralExp(boolean booleanSymbol)
@NonNull public IfExp createIfExp(@NonNull OperationCallExp asCondition, @NonNull OCLExpression asThen, @NonNull OCLExpression asElse)
@NonNull public IfExp createIfExp(@NonNull OCLExpression asCondition, @NonNull OCLExpression asThen, @NonNull OCLExpression asElse)
@NonNull public IntegerLiteralExp createIntegerLiteralExp(@NonNull java.lang.Number integerSymbol)
@NonNull public InvalidLiteralExp createInvalidExpression()
@NonNull public NullLiteralExp createNullLiteralExp()
@NonNull public Orphanage createOrphanage()
@Nullable public ParserContext createParserContext(@NonNull Element element, java.lang.Object... todoParameters)
createParserContext in interface MetamodelManagerInternalParserException - if eObject cannot be converted to a Pivot element@NonNull protected PrecedenceManager createPrecedenceManager()
@NonNull public RealLiteralExp createRealLiteralExp(@NonNull java.lang.Number realSymbol)
@NonNull public StringLiteralExp createStringLiteralExp(@NonNull java.lang.String stringSymbol)
@NonNull public UnlimitedNaturalLiteralExp createUnlimitedNaturalLiteralExp(@NonNull java.lang.Number unlimitedNaturalSymbol)
@NonNull public WildcardType createWildcardType(Class lowerBound, Class upperBound)
public void dispose()
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic Class getASClass(@NonNull java.lang.String className)
getASClass in interface MetamodelManager@Nullable public Element getASElement(@NonNull org.eclipse.emf.common.util.URI uri)
@Nullable public <T extends Element> T getASOf(@NonNull java.lang.Class<T> pivotClass, @Nullable org.eclipse.emf.ecore.EObject eObject) throws ParserException
getASOf in interface MetamodelManagerParserException@Nullable public <T extends Element> T getASOfEcore(@NonNull java.lang.Class<T> pivotClass, @Nullable org.eclipse.emf.ecore.EObject eObject)
getASOfEcore in interface MetamodelManagerpublic Package getASmetamodel()
getASmetamodel in interface MetamodelManagerInternal@NonNull public org.eclipse.emf.ecore.resource.ResourceSet getASResourceSet()
getASResourceSet in interface MetamodelManager@NonNull public java.lang.Iterable<CompletePackageInternal> getAllCompletePackages()
@NonNull public java.lang.Iterable<Constraint> getAllInvariants(@NonNull Type pivotType)
getAllInvariants in interface MetamodelManagerInternal@NonNull public java.lang.Iterable<Operation> getAllOperations(@NonNull Type type, @Nullable FeatureFilter featureFilter)
@NonNull public java.lang.Iterable<Operation> getAllOperations(@NonNull Type type, @Nullable FeatureFilter featureFilter, @NonNull java.lang.String name)
@NonNull public java.lang.Iterable<? extends Property> getAllProperties(@NonNull Type type, @Nullable FeatureFilter featureFilter)
@NonNull public java.lang.Iterable<? extends Property> getAllProperties(@NonNull Type type, @Nullable FeatureFilter featureFilter, @NonNull java.lang.String name)
@NonNull public java.lang.Iterable<? extends Property> getAllProperties(@NonNull Property pivotProperty)
@NonNull public java.lang.Iterable<CompleteClass> getAllSuperCompleteClasses(@NonNull Type type)
@Deprecated @NonNull public java.lang.Iterable<Class> getAllTypes(Class pivotType)
@Deprecated @NonNull public java.lang.Iterable<Type> getAllTypes(@NonNull Type pivotType)
@Nullable public ExpressionInOCL getBodyExpression(@NonNull Operation operation)
@NonNull public CollectionType getCollectionType(boolean isOrdered, boolean isUnique)
@NonNull public CollectionType getCollectionType(boolean isOrdered, boolean isUnique, @NonNull Type elementType, boolean isNullFree, @Nullable IntegerValue lower, @Nullable UnlimitedNaturalValue upper)
@Deprecated public Class getCollectionType(@NonNull java.lang.String collectionTypeName, @NonNull Type elementType, @Nullable IntegerValue lower, @Nullable UnlimitedNaturalValue upper)
public Class getCollectionType(@NonNull java.lang.String collectionTypeName, @NonNull Type elementType, boolean isNullFree, @Nullable IntegerValue lower, @Nullable UnlimitedNaturalValue upper)
getCollectionType in interface MetamodelManagerInternal@NonNull public Type getCommonType(@NonNull Type leftType, @NonNull TemplateParameterSubstitutions leftSubstitutions, @NonNull Type rightType, @NonNull TemplateParameterSubstitutions rightSubstitutions)
@NonNull public CompleteClassInternal getCompleteClass(@NonNull Type pivotType)
getCompleteClass in interface MetamodelManagerInternal@NonNull public CompleteEnvironmentInternal getCompleteEnvironment()
@NonNull public CompleteModelInternal getCompleteModel()
getCompleteModel in interface MetamodelManagerInternalgetCompleteModel in interface MetamodelManager@NonNull public CompletePackage getCompletePackage(Package asPackage)
getCompletePackage in interface MetamodelManagerInternal@Nullable public ExpressionInOCL getDefaultExpression(@NonNull Property property)
@Nullable
public <T extends org.eclipse.emf.ecore.EObject> T getEcoreOfPivot(@NonNull
java.lang.Class<T> ecoreClass,
@NonNull
Element element)
getEcoreOfPivot in interface MetamodelManager@NonNull public ElementExtension getElementExtension(@NonNull Element asStereotypedElement, @NonNull Stereotype asStereotype)
@NonNull public EnvironmentFactoryInternal getEnvironmentFactory()
getEnvironmentFactory in interface MetamodelManagerInternalgetEnvironmentFactory in interface MetamodelManagerpublic Class getEquivalentClass(@NonNull Model thisModel, Class thatClass)
@Nullable public External2AS getES2AS(@NonNull org.eclipse.emf.ecore.resource.Resource esResource)
@NonNull public FinalAnalysis getFinalAnalysis()
getFinalAnalysis in interface MetamodelManagerInternal.MetamodelManagerInternalExtension2@NonNull public FlowAnalysis getFlowAnalysis(@NonNull OCLExpression oclExpression)
getFlowAnalysis in interface MetamodelManagerInternal.MetamodelManagerInternalExtension2@Nullable
public org.eclipse.emf.codegen.ecore.genmodel.GenPackage getGenPackage(@NonNull
java.lang.String nsURI)
getGenPackage in interface MetamodelManagerInternal@NonNull public java.util.Set<java.util.Map.Entry<java.lang.String,Namespace>> getGlobalNamespaces()
@NonNull public java.lang.Iterable<Type> getGlobalTypes()
@NonNull public LibraryFeature getImplementation(@NonNull Feature feature) throws java.lang.ClassNotFoundException, java.lang.SecurityException, java.lang.NoSuchFieldException, java.lang.IllegalArgumentException, java.lang.IllegalAccessException
java.lang.ClassNotFoundExceptionjava.lang.SecurityExceptionjava.lang.NoSuchFieldExceptionjava.lang.IllegalArgumentExceptionjava.lang.IllegalAccessException@NonNull public LibraryFeature getImplementation(@NonNull Operation operation)
@Deprecated @NonNull public LibraryProperty getImplementation(@Nullable java.lang.Object sourceValue, @NonNull Property property)
@NonNull public LibraryProperty getImplementation(@Nullable Element asNavigationExp, @Nullable java.lang.Object sourceValue, @NonNull Property property)
getImplementation in interface MetamodelManagerInternal.MetamodelManagerInternalExtension@NonNull public ImplementationManager getImplementationManager()
@Nullable public Precedence getInfixPrecedence(@NonNull java.lang.String operatorName)
@NonNull public CompleteInheritance getInheritance(Class type)
@NonNull public java.util.List<Library> getLibraries()
@Nullable public org.eclipse.emf.ecore.resource.Resource getLibraryResource()
public Class getLibraryType(@NonNull java.lang.String string, @NonNull java.util.List<? extends Type> templateArguments)
@NonNull public <T extends Class> T getLibraryType(@NonNull T libraryType, @NonNull java.util.List<? extends Type> templateArguments)
@NonNull public java.lang.Iterable<Constraint> getLocalInvariants(Class type)
@Nullable public org.eclipse.emf.ecore.EObject getLockingObject()
public Class getMapType(@NonNull java.lang.String mapTypeName, @NonNull Type keyType, @NonNull Type valueType)
@NonNull public java.lang.Iterable<Operation> getMemberOperations(Class type, boolean selectStatic)
@NonNull public java.lang.Iterable<? extends CompletePackage> getMemberPackages(Package pkg)
@NonNull public java.lang.Iterable<Property> getMemberProperties(Class type, boolean selectStatic)
@Nullable public Type getOclType(@NonNull java.lang.String typeName)
@NonNull public java.lang.Iterable<? extends Operation> getOperationOverloads(@NonNull Operation pivotOperation)
@NonNull public java.lang.Iterable<? extends Package> getPartialPackages(Package pkg, boolean loadASmetamodelFirst)
@NonNull public java.lang.Iterable<Class> getPartialClasses(@NonNull Type pivotType)
@NonNull protected PrecedenceManager getPrecedenceManager()
@Nullable public Precedence getPrefixPrecedence(@NonNull java.lang.String operatorName)
@NonNull
public <T extends org.eclipse.emf.ecore.EObject> T getPrimaryElement(@NonNull
T element)
@NonNull public Operation getPrimaryOperation(@NonNull Operation pivotOperation)
getPrimaryOperation in interface MetamodelManagerpublic Package getPrimaryPackage(@NonNull java.lang.String nsURI, java.lang.String... subPackagePath)
public Package getPrimaryPackage(Package aPackage)
getPrimaryPackage in interface MetamodelManager@NonNull public Property getPrimaryProperty(@NonNull Property pivotProperty)
getPrimaryProperty in interface MetamodelManagerpublic Class getPrimaryClass(Class type)
getPrimaryClass in interface MetamodelManagerpublic Class getPrimaryType(@NonNull java.lang.String nsURI, @NonNull java.lang.String path, java.lang.String... extraPath)
getPrimaryType in interface MetamodelManagerInternal@NonNull public ASResource getResource(@NonNull org.eclipse.emf.common.util.URI uri, @Nullable java.lang.String contentType)
@NonNull public StandardLibraryInternal getStandardLibrary()
getStandardLibrary in interface MetamodelManagerInternalgetStandardLibrary in interface MetamodelManagerpublic java.lang.Iterable<CompleteClass> getSuperCompleteClasses(Class pivotType)
public java.lang.Iterable<CompleteClass> getSuperCompleteClasses(@NonNull CompleteClass completeClass)
public org.eclipse.emf.ecore.resource.ResourceSet getTarget()
getTarget in interface org.eclipse.emf.common.notify.Adapterprotected void installLibraryContents(@NonNull
Library asLibrary)
public void installPropertyDeclaration(@NonNull
Property thisProperty)
public void installResource(@NonNull
org.eclipse.emf.ecore.resource.Resource asResource)
public void installRoot(@NonNull
Model pivotModel)
installRoot in interface MetamodelManagerInternalpublic boolean isAdapterForType(java.lang.Object type)
isAdapterForType in interface org.eclipse.emf.common.notify.Adapterpublic boolean isLibraryLoadInProgress()
public boolean isSuperCompleteClassOf(@NonNull
CompleteClass unspecializedFirstType,
@NonNull
CompleteClass secondType)
public boolean isTypeServeable(@NonNull
Type type)
protected boolean isUnspecialized(@NonNull
java.util.List<TemplateParameter> templateParameters,
@NonNull
java.util.List<? extends Type> templateArguments)
protected void loadASmetamodel(Package asLibrary)
asLibrary - @Nullable
public org.eclipse.emf.ecore.resource.Resource loadDefaultLibrary(@Nullable
java.lang.String uri)
@Nullable public Element loadResource(@NonNull org.eclipse.emf.common.util.URI uri, java.lang.String zzalias, @Nullable org.eclipse.emf.ecore.resource.ResourceSet resourceSet) throws ParserException
loadResource in interface MetamodelManagerInternalParserException@NonNull public LibraryFeature lookupImplementation(@NonNull Operation dynamicOperation) throws java.lang.SecurityException, java.lang.IllegalArgumentException, java.lang.ClassNotFoundException, java.lang.NoSuchFieldException, java.lang.IllegalAccessException
java.lang.SecurityExceptionjava.lang.IllegalArgumentExceptionjava.lang.ClassNotFoundExceptionjava.lang.NoSuchFieldExceptionjava.lang.IllegalAccessExceptionpublic void notifyChanged(org.eclipse.emf.common.notify.Notification notification)
notifyChanged in interface org.eclipse.emf.common.notify.Adapter@NonNull public ExpressionInOCL parseSpecification(@NonNull LanguageExpression specification) throws ParserException
parseSpecification in interface MetamodelManagerParserException - if text parsing failspublic void removeExternalResource(@NonNull
External2AS external2as)
public void removeExternalResource(@NonNull
org.eclipse.emf.ecore.resource.Resource esResource)
public void resetFinalAnalysis()
resetFinalAnalysis in interface MetamodelManagerInternal.MetamodelManagerInternalExtension2public void resetFlowAnalysis()
resetFlowAnalysis in interface MetamodelManagerInternal.MetamodelManagerInternalExtension2public void setASmetamodel(Package asPackage)
public void setAutoLoadASmetamodel(boolean autoLoadASmetamodel)
public void setLibraryLoadInProgress(boolean libraryLoadInProgress)
public void setMetamodelNsURI(@NonNull
java.lang.String metaNsURI)
public void setTarget(org.eclipse.emf.common.notify.Notifier newTarget)
setTarget in interface org.eclipse.emf.common.notify.Adapter@NonNull public Type specializeType(@NonNull Type type, @NonNull CallExp callExp, @NonNull Type selfType, @Nullable Type selfTypeValue)
public void unsetTarget(org.eclipse.emf.common.notify.Notifier oldTarget)
unsetTarget in interface org.eclipse.emf.common.notify.Adapter.Internal