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
ParseException
public Map.Entry<String,String> parsePrefix() throws ParseException
ParseException
public Map<String,String> parsePrefixes() throws ParseException
ParseException
public NodeSelector<Node> parseSelector(Map<String,String> ctxNamespaces) throws ParseException
ParseException
public NodeTest<Node> parseTest(Map<String,String> ctxNamespaces) throws ParseException
ParseException
public <T> FieldMapping<T,Node> parseRule(Map<String,String> ctxNamespaces) throws ParseException
ParseException
public Node resolveResource(String uri) throws ParseException
ParseException
public Node resolveResource(String prefix, String local) throws ParseException
ParseException
public String resolveNamespace(String prefix) throws ParseException
ParseException
public SelectorFunction<Node> getFunction(String uri) throws ParseException
ParseException
public TestFunction<Node> getTestFunction(String uri) throws ParseException
ParseException
public NodeTransformer<?,Node> getTransformer(URI type) throws ParseException
ParseException
public NodeTransformer<?,Node> getTransformer(Node node) throws ParseException
ParseException
public NodeTransformer<?,Node> getTransformer(String uri) throws ParseException
ParseException
public 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
ParseException
public final Map.Entry<String,String> Namespace() throws ParseException
ParseException
public final Program Program() throws ParseException
ParseException
public final LinkedList<URI> UriList() throws ParseException
ParseException
public final FieldMapping Rule() throws ParseException
ParseException
public final Map<String,String> FieldConfig() throws ParseException
ParseException
public final String ConfVal() throws ParseException
ParseException
public final URI Uri() throws ParseException
ParseException
public final NodeSelector Selector() throws ParseException
ParseException
public final NodeSelector CompoundSelector() throws ParseException
ParseException
public final NodeSelector AtomicOrTestingOrPathSelector() throws ParseException
ParseException
public final NodeSelector AtomicOrTestingSelector() throws ParseException
ParseException
public final NodeSelector AtomicSelector() throws ParseException
ParseException
public final NodeSelector SelfSelector() throws ParseException
ParseException
public final NodeSelector GroupedSelector() throws ParseException
ParseException
public final RecursivePathSelector RecursivePathSelector() throws ParseException
ParseException
public final PathSelector PathSelector() throws ParseException
ParseException
public final IntersectionSelector IntersectionSelector() throws ParseException
ParseException
public final UnionSelector UnionSelector() throws ParseException
ParseException
public final TestingSelector TestingSelector() throws ParseException
ParseException
public final ReversePropertySelector ReversePropertySelector() throws ParseException
ParseException
public final PropertySelector PropertySelector() throws ParseException
ParseException
public final WildcardSelector WildcardSelector() throws ParseException
ParseException
public final FunctionSelector FunctionSelector() throws ParseException
ParseException
public final StringConstantSelector StringConstantSelector() throws ParseException
ParseException
public final NodeTest NodeTest() throws ParseException
ParseException
public final NodeTest GroupedTest() throws ParseException
ParseException
public final NodeTest AtomicNodeTest() throws ParseException
ParseException
public final FunctionTest FunctionTest() throws ParseException
ParseException
public final LiteralLanguageTest LiteralLanguageTest() throws ParseException
ParseException
public final LiteralTypeTest LiteralTypeTest() throws ParseException
ParseException
public final NotTest NotTest() throws ParseException
ParseException
public final IsATest IsATest() throws ParseException
ParseException
public final AndTest AndTest() throws ParseException
ParseException
public final OrTest OrTest() throws ParseException
ParseException
public final PathEqualityTest PathEqualityTest() throws ParseException
ParseException
public final Node Node() throws ParseException
ParseException
public final PathTest PathTest() throws ParseException
ParseException
public 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.