public class PatternParser extends BasePatternParser
Modifier and Type | Class and Description |
---|---|
static class |
PatternParser.Builder
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
static java.util.function.BiFunction<org.eclipse.emf.ecore.resource.ResourceSet,java.lang.String,org.eclipse.emf.common.util.URI> |
UNUSED_ABSOLUTE_FILE_URI_PROVIDER
This function encodes the a file URI scheme that is relative to folder described by the user.dir system property.
|
static java.util.function.BiFunction<org.eclipse.emf.ecore.resource.ResourceSet,java.lang.String,org.eclipse.emf.common.util.URI> |
UNUSED_RELATIVE_URI_PROVIDER
This function encodes the default URI scheme generation used in VIATRA 2.0.0; it is not recommended to use as it
can cause surprising behavior with regards to the Xtext index; only provided for backward compatibility.
|
builder, extensionProvider, fileExtension, librarySpecifications, libraryURIs, manager, resourceFactory, resourceSet, SYNTHETIC_URI_PREFIX, validator
Modifier | Constructor and Description |
---|---|
protected |
PatternParser(java.util.Set<IQuerySpecification<?>> librarySpecifications,
java.util.Set<org.eclipse.emf.common.util.URI> libraryURIs,
java.util.function.BiFunction<org.eclipse.emf.ecore.resource.ResourceSet,java.lang.String,org.eclipse.emf.common.util.URI> unusedURIComputer) |
Modifier and Type | Method and Description |
---|---|
protected PatternParsingResults |
parse(java.io.InputStream in,
org.eclipse.emf.common.util.URI uriToUse,
java.util.Map<?,?> options,
org.eclipse.emf.ecore.resource.ResourceSet resourceSet) |
PatternParsingResults |
parse(java.lang.String text)
Parses a string as the contents of a VQL file and puts the results in a Resource with a previously unused URI
|
protected PatternParsingResults |
parse(java.lang.String text,
org.eclipse.emf.ecore.resource.ResourceSet resourceSetToUse) |
PatternParsingResults |
parse(java.lang.String text,
org.eclipse.emf.common.util.URI uri)
Parses a string as the contents of a VQL file and puts the results in a Resource with the specified URI
|
protected PatternParsingResults |
parse(java.lang.String text,
org.eclipse.emf.common.util.URI uriToUse,
org.eclipse.emf.ecore.resource.ResourceSet resourceSetToUse) |
static PatternParser.Builder |
parser()
Deprecated.
|
createResourceSet, enableReuseSpecificationBuilder, getAsStream, getOrCreateSpecificationBuilder, resource
public static final java.util.function.BiFunction<org.eclipse.emf.ecore.resource.ResourceSet,java.lang.String,org.eclipse.emf.common.util.URI> UNUSED_RELATIVE_URI_PROVIDER
UNUSED_ABSOLUTE_FILE_URI_PROVIDER
provides an appropriate default implementations; other users
can provide custom implementations with PatternParserBuilder#unusedURIComputer(BiFunction)
.public static final java.util.function.BiFunction<org.eclipse.emf.ecore.resource.ResourceSet,java.lang.String,org.eclipse.emf.common.util.URI> UNUSED_ABSOLUTE_FILE_URI_PROVIDER
protected PatternParser(java.util.Set<IQuerySpecification<?>> librarySpecifications, java.util.Set<org.eclipse.emf.common.util.URI> libraryURIs, java.util.function.BiFunction<org.eclipse.emf.ecore.resource.ResourceSet,java.lang.String,org.eclipse.emf.common.util.URI> unusedURIComputer)
public PatternParsingResults parse(java.lang.String text)
public PatternParsingResults parse(java.lang.String text, org.eclipse.emf.common.util.URI uri)
protected PatternParsingResults parse(java.io.InputStream in, org.eclipse.emf.common.util.URI uriToUse, java.util.Map<?,?> options, org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
protected PatternParsingResults parse(java.lang.String text, org.eclipse.emf.ecore.resource.ResourceSet resourceSetToUse)
protected PatternParsingResults parse(java.lang.String text, org.eclipse.emf.common.util.URI uriToUse, org.eclipse.emf.ecore.resource.ResourceSet resourceSetToUse)
@Deprecated public static PatternParser.Builder parser()
PatternParserBuilder