public class AdvancedPatternParser extends BasePatternParser
Modifier and Type | Class and Description |
---|---|
static class |
AdvancedPatternParser.AdvancedPatternParserSnapshot |
builder, extensionProvider, fileExtension, librarySpecifications, libraryURIs, manager, resourceFactory, resourceSet, SYNTHETIC_URI_PREFIX, validator
Modifier | Constructor and Description |
---|---|
protected |
AdvancedPatternParser(java.util.Set<IQuerySpecification<?>> librarySpecifications,
java.util.Set<org.eclipse.emf.common.util.URI> libraryURIs) |
Modifier and Type | Method and Description |
---|---|
protected AdvancedPatternParser.AdvancedPatternParserSnapshot |
addPatterns(java.util.Map<org.eclipse.emf.common.util.URI,java.lang.String> input,
java.util.Map<?,?> options,
org.eclipse.emf.ecore.resource.ResourceSet resourceSet) |
AdvancedPatternParsingResults |
addSpecifications(java.util.Map<org.eclipse.emf.common.util.URI,java.lang.String> input)
Parses the input as if they were multiple .vql files, and caches the contained queries for further use.
|
protected AdvancedPatternParsingResults |
addSpecifications(java.util.Map<org.eclipse.emf.common.util.URI,java.lang.String> input,
java.util.Map<?,?> options,
org.eclipse.emf.ecore.resource.ResourceSet resourceSet) |
protected AdvancedPatternParsingResults |
addSpecifications(java.util.Map<org.eclipse.emf.common.util.URI,java.lang.String> input,
org.eclipse.emf.ecore.resource.ResourceSet resourceSet) |
AdvancedPatternParsingResults |
addSpecifications(org.eclipse.emf.common.util.URI uriToUse,
java.lang.String text) |
protected java.util.Set<Pattern> |
calculateImpact(java.util.Set<org.eclipse.emf.common.util.URI> input,
org.eclipse.emf.ecore.resource.ResourceSet resourceSet) |
protected java.util.Set<Pattern> |
getErroneousPatterns(org.eclipse.emf.ecore.resource.ResourceSet resourceSet) |
java.util.Collection<org.eclipse.emf.common.util.URI> |
getRegisteredURIs()
Returns a collection of
URI s that have been previously registered. |
protected java.util.Map<org.eclipse.emf.common.util.URI,PatternParsingResults> |
parseBatch(java.util.Map<org.eclipse.emf.common.util.URI,java.lang.String> input,
java.util.Map<?,?> options,
org.eclipse.emf.ecore.resource.ResourceSet resourceSet) |
protected void |
processSpecifications(AdvancedPatternParser.AdvancedPatternParserSnapshot results,
AdvancedPatternParsingResults.AdvancedPatternParsingResultsBuilder builder) |
protected AdvancedPatternParser.AdvancedPatternParserSnapshot |
removePatterns(java.util.Map<org.eclipse.emf.common.util.URI,java.lang.String> input,
java.util.Map<?,?> options,
org.eclipse.emf.ecore.resource.ResourceSet resourceSet) |
AdvancedPatternParsingResults |
removeSpecifications(java.util.Map<org.eclipse.emf.common.util.URI,java.lang.String> input)
Removes the patterns provided in the input from the cache.
|
protected AdvancedPatternParsingResults |
removeSpecifications(java.util.Map<org.eclipse.emf.common.util.URI,java.lang.String> input,
java.util.Map<?,?> options,
org.eclipse.emf.ecore.resource.ResourceSet resourceSet) |
protected AdvancedPatternParsingResults |
removeSpecifications(java.util.Map<org.eclipse.emf.common.util.URI,java.lang.String> input,
org.eclipse.emf.ecore.resource.ResourceSet resourceSet) |
AdvancedPatternParsingResults |
removeSpecifications(org.eclipse.emf.common.util.URI uriToUse,
java.lang.String text) |
void |
reset() |
protected AdvancedPatternParser.AdvancedPatternParserSnapshot |
updatePatterns(java.util.Map<org.eclipse.emf.common.util.URI,java.lang.String> input,
java.util.Map<?,?> options,
org.eclipse.emf.ecore.resource.ResourceSet resourceSet) |
AdvancedPatternParsingResults |
updateSpecifications(java.util.Map<org.eclipse.emf.common.util.URI,java.lang.String> input)
Parses the input as if they were multiple .vql files, and updates the cache based on the results.
|
protected AdvancedPatternParsingResults |
updateSpecifications(java.util.Map<org.eclipse.emf.common.util.URI,java.lang.String> input,
java.util.Map<?,?> options,
org.eclipse.emf.ecore.resource.ResourceSet resourceSet) |
protected AdvancedPatternParsingResults |
updateSpecifications(java.util.Map<org.eclipse.emf.common.util.URI,java.lang.String> input,
org.eclipse.emf.ecore.resource.ResourceSet resourceSet) |
AdvancedPatternParsingResults |
updateSpecifications(org.eclipse.emf.common.util.URI uriToUse,
java.lang.String text) |
createResourceSet, enableReuseSpecificationBuilder, getAsStream, getOrCreateSpecificationBuilder, resource
protected AdvancedPatternParser(java.util.Set<IQuerySpecification<?>> librarySpecifications, java.util.Set<org.eclipse.emf.common.util.URI> libraryURIs)
protected AdvancedPatternParsingResults addSpecifications(java.util.Map<org.eclipse.emf.common.util.URI,java.lang.String> input, java.util.Map<?,?> options, org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
protected void processSpecifications(AdvancedPatternParser.AdvancedPatternParserSnapshot results, AdvancedPatternParsingResults.AdvancedPatternParsingResultsBuilder builder)
protected AdvancedPatternParsingResults updateSpecifications(java.util.Map<org.eclipse.emf.common.util.URI,java.lang.String> input, java.util.Map<?,?> options, org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
protected AdvancedPatternParsingResults removeSpecifications(java.util.Map<org.eclipse.emf.common.util.URI,java.lang.String> input, java.util.Map<?,?> options, org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
protected AdvancedPatternParsingResults addSpecifications(java.util.Map<org.eclipse.emf.common.util.URI,java.lang.String> input, org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
protected AdvancedPatternParsingResults updateSpecifications(java.util.Map<org.eclipse.emf.common.util.URI,java.lang.String> input, org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
protected AdvancedPatternParsingResults removeSpecifications(java.util.Map<org.eclipse.emf.common.util.URI,java.lang.String> input, org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
public AdvancedPatternParsingResults addSpecifications(java.util.Map<org.eclipse.emf.common.util.URI,java.lang.String> input)
input
- Map containing the input in textual form. Each synthetic .vql file must have a unique URI that can be
used to identify its contents.AdvancedPatternParsingResults
that contains the created IQuerySpecification
objects.java.lang.IllegalStateException
- if the input contains URI
that has already been added.public AdvancedPatternParsingResults addSpecifications(org.eclipse.emf.common.util.URI uriToUse, java.lang.String text)
public AdvancedPatternParsingResults updateSpecifications(java.util.Map<org.eclipse.emf.common.util.URI,java.lang.String> input)
IQuerySpecification
objects. The produced query specifications can be
later reused via referring their fully qualified names.input
- Map containing the input in textual form. Each synthetic .vql file must have a unique URI that can be
used to identify its contents.AdvancedPatternParsingResults
that contains the updated, and affected IQuerySpecification
objects.java.lang.IllegalStateException
- if the input contains URI
that has not yet been added to the cache.public AdvancedPatternParsingResults updateSpecifications(org.eclipse.emf.common.util.URI uriToUse, java.lang.String text)
public AdvancedPatternParsingResults removeSpecifications(java.util.Map<org.eclipse.emf.common.util.URI,java.lang.String> input)
IQuerySpecification
objects.input
- Map containing the input in textual form. Each synthetic .vql file must have a unique URI that can be
used to identify its contents.AdvancedPatternParsingResults
that contains removed, and affected IQuerySpecification
objects.java.lang.IllegalStateException
- if the input contains URI
that has not yet been added to the cache.public AdvancedPatternParsingResults removeSpecifications(org.eclipse.emf.common.util.URI uriToUse, java.lang.String text)
public java.util.Collection<org.eclipse.emf.common.util.URI> getRegisteredURIs()
URI
s that have been previously registered.public void reset()
protected AdvancedPatternParser.AdvancedPatternParserSnapshot updatePatterns(java.util.Map<org.eclipse.emf.common.util.URI,java.lang.String> input, java.util.Map<?,?> options, org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
protected AdvancedPatternParser.AdvancedPatternParserSnapshot addPatterns(java.util.Map<org.eclipse.emf.common.util.URI,java.lang.String> input, java.util.Map<?,?> options, org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
protected AdvancedPatternParser.AdvancedPatternParserSnapshot removePatterns(java.util.Map<org.eclipse.emf.common.util.URI,java.lang.String> input, java.util.Map<?,?> options, org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
protected java.util.Set<Pattern> calculateImpact(java.util.Set<org.eclipse.emf.common.util.URI> input, org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
protected java.util.Map<org.eclipse.emf.common.util.URI,PatternParsingResults> parseBatch(java.util.Map<org.eclipse.emf.common.util.URI,java.lang.String> input, java.util.Map<?,?> options, org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
protected java.util.Set<Pattern> getErroneousPatterns(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)