Package net.ssehub.easy.varModel.model
Class IvmlModelQuery
java.lang.Object
net.ssehub.easy.varModel.model.ModelQuery
net.ssehub.easy.varModel.model.IvmlModelQuery
Provides IVML specific model query operations.
- Author:
- Holger Eichelberger
-
Nested Class Summary
Nested classes/interfaces inherited from class net.ssehub.easy.varModel.model.ModelQuery
ModelQuery.FirstDeclTypeSelector, ModelQuery.IDeclarationSelector -
Field Summary
Fields inherited from class net.ssehub.easy.varModel.model.ModelQuery
MQ_SHORT_REFERENCE, MQ_SHORT_SEQUENCE, MQ_SHORT_SET -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<SearchResult> getElementsByNamePrefix(ModelElement element, String namePrefix, QualifiedNameMode mode, SearchContext context, Class<?>... restrictions) Searches a given set of elements by a name prefix starting atelement.static List<SearchResult> getElementsByNamePrefix(ModelElement element, String namePrefix, SearchContext context, Class<?>... restrictions) Searches a given set of elements by a name prefix starting atelement.Methods inherited from class net.ssehub.easy.varModel.model.ModelQuery
enumLiteralAsValue, findAttribute, findDeclaration, findElementByName, findElementByTypeName, findElementByTypeName, findElementByTypeName, findEnum, findProject, findRefining, findType, findVariable, findVariableUse, getAllAttributes, getElementsByNamePrefix, getReferenceTypeSearchName
-
Constructor Details
-
IvmlModelQuery
public IvmlModelQuery()
-
-
Method Details
-
getElementsByNamePrefix
public static List<SearchResult> getElementsByNamePrefix(ModelElement element, String namePrefix, QualifiedNameMode mode, SearchContext context, Class<?>... restrictions) Searches a given set of elements by a name prefix starting atelement.- Parameters:
element- the element to start searching atnamePrefix- the name prefixmode- the type name resolution mode to be appliedcontext- additional information to include or exclude locally defined model elementsrestrictions- type restrictions on the elements to include into the search- Returns:
- the search results
-
getElementsByNamePrefix
public static List<SearchResult> getElementsByNamePrefix(ModelElement element, String namePrefix, SearchContext context, Class<?>... restrictions) Searches a given set of elements by a name prefix starting atelement. Types are resolved to qualified names.- Parameters:
element- the element to start searching atnamePrefix- the name prefixcontext- additional information to include or exclude locally defined model elementsrestrictions- type restrictions on the elements to include into the search- Returns:
- the search results
-