public static class PatternParser.Builder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PPERROR |
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
PatternParser |
build()
Initializes the pattern parser instance
|
PatternParsingResults |
parse(java.lang.String text)
Creates a single-use pattern parser instance and collects the parsing results for the selected text, then the
forgets the used parser instance.
|
PatternParser.Builder |
withInjector(com.google.inject.Injector injector)
Provide a specific injector instance to use with this parser
|
PatternParser.Builder |
withLibrary(org.eclipse.emf.common.util.URI libraryURI)
Provide an URI to a VQL file that can be used as a library.
|
PatternParser.Builder |
withLibrary(org.eclipse.emf.common.util.URI libraryURI,
java.util.Collection<IQuerySpecification<?>> specifications)
Provide an URI to a VQL file that can be used as a library, together with a set of query specifications
already created from this library.
|
public static final java.lang.String PPERROR
public PatternParser.Builder withInjector(com.google.inject.Injector injector)
public PatternParser.Builder withLibrary(org.eclipse.emf.common.util.URI libraryURI)
public PatternParser.Builder withLibrary(org.eclipse.emf.common.util.URI libraryURI, java.util.Collection<IQuerySpecification<?>> specifications)
public PatternParser build()
public PatternParsingResults parse(java.lang.String text)