public class LdPathParser<Node> extends Object implements LdPathParserConstants
| Modifier and Type | Field and Description |
|---|---|
Token |
jj_nt
Next token.
|
Token |
token
Current token.
|
LdPathParserTokenManager |
token_source
Generated Token Manager.
|
AND, ASSIGN, B_CC, B_CO, B_RC, B_RO, B_SC, B_SO, B_XC, B_XO, COLON, COMMA, DCOLON, DEFAULT, EOF, FUNC, IDENTIFIER, IN_COMMENT, INVERSE, IS, IS_A, K_BOOST, K_FILTER, K_GRAPH, K_PREFIX, LANG, NOT, OR, P_SEP, PLUS, SCOLON, SELF, STAR, STRLIT, tokenImage, TYPE, URI, URICHAR, WithinString| Constructor and Description |
|---|
LdPathParser(InputStream stream)
Constructor with InputStream.
|
LdPathParser(InputStream stream,
String encoding)
Constructor with InputStream and supplied encoding
|
LdPathParser(LdPathParserTokenManager tm)
Constructor with generated Token Manager.
|
LdPathParser(NodeBackend<Node> backend,
Configuration config,
InputStream in) |
LdPathParser(NodeBackend<Node> backend,
Configuration config,
InputStream in,
String encoding) |
LdPathParser(NodeBackend<Node> backend,
Configuration config,
Reader in) |
LdPathParser(NodeBackend<Node> backend,
InputStream in) |
LdPathParser(NodeBackend<Node> backend,
InputStream in,
String encoding) |
LdPathParser(NodeBackend<Node> backend,
Reader in) |
LdPathParser(Reader stream)
Constructor.
|
public LdPathParserTokenManager token_source
public Token token
public Token jj_nt
public LdPathParser(NodeBackend<Node> backend, Reader in)
public LdPathParser(NodeBackend<Node> backend, Configuration config, Reader in)
public LdPathParser(NodeBackend<Node> backend, InputStream in)
public LdPathParser(NodeBackend<Node> backend, Configuration config, InputStream in)
public LdPathParser(NodeBackend<Node> backend, InputStream in, String encoding)
public LdPathParser(NodeBackend<Node> backend, Configuration config, InputStream in, String encoding)
public LdPathParser(InputStream stream)
public LdPathParser(InputStream stream, String encoding)
public LdPathParser(Reader stream)
public LdPathParser(LdPathParserTokenManager tm)
public Program<Node> parseProgram() throws ParseException
ParseExceptionpublic Map.Entry<String,String> parsePrefix() throws ParseException
ParseExceptionpublic Map<String,String> parsePrefixes() throws ParseException
ParseExceptionpublic NodeSelector<Node> parseSelector(Map<String,String> ctxNamespaces) throws ParseException
ParseExceptionpublic NodeTest<Node> parseTest(Map<String,String> ctxNamespaces) throws ParseException
ParseExceptionpublic <T> FieldMapping<T,Node> parseRule(Map<String,String> ctxNamespaces) throws ParseException
ParseExceptionpublic Node resolveResource(String uri) throws ParseException
ParseExceptionpublic Node resolveResource(String prefix, String local) throws ParseException
ParseExceptionpublic String resolveNamespace(String prefix) throws ParseException
ParseExceptionpublic SelectorFunction<Node> getFunction(String uri) throws ParseException
ParseExceptionpublic TestFunction<Node> getTestFunction(String uri) throws ParseException
ParseExceptionpublic NodeTransformer<?,Node> getTransformer(URI type) throws ParseException
ParseExceptionpublic NodeTransformer<?,Node> getTransformer(Node node) throws ParseException
ParseExceptionpublic NodeTransformer<?,Node> getTransformer(String uri) throws ParseException
ParseExceptionpublic void registerFunction(SelectorFunction<Node> function)
public void registerFunction(TestFunction<Node> test)
public void registerTransformer(String typeUri, NodeTransformer<?,Node> transformer)
public final Map<String,String> Namespaces() throws ParseException
ParseExceptionpublic final Map.Entry<String,String> Namespace() throws ParseException
ParseExceptionpublic final Program Program() throws ParseException
ParseExceptionpublic final LinkedList<URI> UriList() throws ParseException
ParseExceptionpublic final FieldMapping Rule() throws ParseException
ParseExceptionpublic final Map<String,String> FieldConfig() throws ParseException
ParseExceptionpublic final String ConfVal() throws ParseException
ParseExceptionpublic final URI Uri() throws ParseException
ParseExceptionpublic final NodeSelector Selector() throws ParseException
ParseExceptionpublic final NodeSelector CompoundSelector() throws ParseException
ParseExceptionpublic final NodeSelector AtomicOrTestingOrPathSelector() throws ParseException
ParseExceptionpublic final NodeSelector AtomicOrTestingSelector() throws ParseException
ParseExceptionpublic final NodeSelector AtomicSelector() throws ParseException
ParseExceptionpublic final NodeSelector SelfSelector() throws ParseException
ParseExceptionpublic final NodeSelector GroupedSelector() throws ParseException
ParseExceptionpublic final RecursivePathSelector RecursivePathSelector() throws ParseException
ParseExceptionpublic final PathSelector PathSelector() throws ParseException
ParseExceptionpublic final IntersectionSelector IntersectionSelector() throws ParseException
ParseExceptionpublic final UnionSelector UnionSelector() throws ParseException
ParseExceptionpublic final TestingSelector TestingSelector() throws ParseException
ParseExceptionpublic final ReversePropertySelector ReversePropertySelector() throws ParseException
ParseExceptionpublic final PropertySelector PropertySelector() throws ParseException
ParseExceptionpublic final WildcardSelector WildcardSelector() throws ParseException
ParseExceptionpublic final FunctionSelector FunctionSelector() throws ParseException
ParseExceptionpublic final StringConstantSelector StringConstantSelector() throws ParseException
ParseExceptionpublic final NodeTest NodeTest() throws ParseException
ParseExceptionpublic final NodeTest GroupedTest() throws ParseException
ParseExceptionpublic final NodeTest AtomicNodeTest() throws ParseException
ParseExceptionpublic final FunctionTest FunctionTest() throws ParseException
ParseExceptionpublic final LiteralLanguageTest LiteralLanguageTest() throws ParseException
ParseExceptionpublic final LiteralTypeTest LiteralTypeTest() throws ParseException
ParseExceptionpublic final NotTest NotTest() throws ParseException
ParseExceptionpublic final IsATest IsATest() throws ParseException
ParseExceptionpublic final AndTest AndTest() throws ParseException
ParseExceptionpublic final OrTest OrTest() throws ParseException
ParseExceptionpublic final PathEqualityTest PathEqualityTest() throws ParseException
ParseExceptionpublic final Node Node() throws ParseException
ParseExceptionpublic final PathTest PathTest() throws ParseException
ParseExceptionpublic void ReInit(InputStream stream)
public void ReInit(InputStream stream, String encoding)
public void ReInit(Reader stream)
public void ReInit(LdPathParserTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.