final public Step NameOrWildcard(Axis a) throws ParseException { UName un; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case NCNAME: un = QName(); {if (true) return new Step.Named(a,un);} break; case 45: jj_consume_token(45); {if (true) return new Step.Any(a);} break; default: jj_la1[17] = jj_gen; jj_consume_token(-1); throw new ParseException(); } throw new Error("Missing return statement in function"); }
public void ReInit(java.io.InputStream stream) { ReInit(stream, null); } public void ReInit(java.io.InputStream stream, String encoding) {
final private Token jj_consume_token(int kind) throws ParseException { Token oldToken; if ((oldToken = token).next != null) token = token.next; else token = token.next = token_source.getNextToken(); jj_ntk = -1; if (token.kind == kind) { jj_gen++; return token; } token = oldToken; jj_kind = kind; throw generateParseException(); }
final public Step Step() throws ParseException { Step s; String p; Token n; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 18: case 19: switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 18: jj_consume_token(18); break; case 19: jj_consume_token(19); break; default: jj_la1[6] = jj_gen; jj_consume_token(-1); throw new ParseException(); s = NameOrWildcard(Axis.ATTRIBUTE); break; case NCNAME: case 20: case 45: switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 20: jj_consume_token(20); break; default: s = NameOrWildcard(Axis.ELEMENT); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
final public List RelativeSchemaComponentPath() throws ParseException { List steps = new ArrayList(); Step s; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 16: case 17: switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 16: jj_consume_token(16); steps.add(new Step.Any(Axis.ROOT)); break; case 17: jj_consume_token(17); steps.add(new Step.Any(Axis.DESCENDANTS)); break; default: jj_la1[2] = jj_gen; jj_consume_token(-1); throw new ParseException(); s = Step(); steps.add(s); label_1: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 16: case 17: switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 16:
/** * Parses the string representation of SCD. * * <p> * This method involves parsing the path expression and preparing the in-memory * structure, so this is useful when you plan to use the same SCD against * different context node multiple times. * * <p> * If you want to evaluate SCD just once, use {@link XSComponent#select} methods. * * @param path * the string representation of SCD, such as "/foo/bar". * @param nsContext * Its {@link NamespaceContext#getNamespaceURI(String)} is used * to resolve prefixes in the SCD to the namespace URI. */ public static SCD create(String path, NamespaceContext nsContext) throws java.text.ParseException { try { SCDParser p = new SCDParser(path,nsContext); List<?> list = p.RelativeSchemaComponentPath(); return new SCDImpl(path,list.toArray(new Step[list.size()])); } catch (TokenMgrError e) { throw setCause(new java.text.ParseException(e.getMessage(), -1 ),e); } catch (ParseException e) { throw setCause(new java.text.ParseException(e.getMessage(), e.currentToken.beginColumn ),e); } }
final public Step Step() throws ParseException { Step s; String p; Token n; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 18: case 19: switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 18: jj_consume_token(18); break; case 19: jj_consume_token(19); break; default: jj_la1[6] = jj_gen; jj_consume_token(-1); throw new ParseException(); s = NameOrWildcard(Axis.ATTRIBUTE); break; case NCNAME: case 20: case 45: switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 20: jj_consume_token(20); break; default: s = NameOrWildcard(Axis.ELEMENT); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
final public List RelativeSchemaComponentPath() throws ParseException { List steps = new ArrayList(); Step s; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 16: case 17: switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 16: jj_consume_token(16); steps.add(new Step.Any(Axis.ROOT)); break; case 17: jj_consume_token(17); steps.add(new Step.Any(Axis.DESCENDANTS)); break; default: jj_la1[2] = jj_gen; jj_consume_token(-1); throw new ParseException(); s = Step(); steps.add(s); label_1: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 16: case 17: switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 16:
/** * Parses the string representation of SCD. * * <p> * This method involves parsing the path expression and preparing the in-memory * structure, so this is useful when you plan to use the same SCD against * different context node multiple times. * * <p> * If you want to evaluate SCD just once, use {@link XSComponent#select} methods. * * @param path * the string representation of SCD, such as "/foo/bar". * @param nsContext * Its {@link NamespaceContext#getNamespaceURI(String)} is used * to resolve prefixes in the SCD to the namespace URI. */ public static SCD create(String path, NamespaceContext nsContext) throws java.text.ParseException { try { SCDParser p = new SCDParser(path,nsContext); List<?> list = p.RelativeSchemaComponentPath(); return new SCDImpl(path,list.toArray(new Step[list.size()])); } catch (TokenMgrError e) { throw setCause(new java.text.ParseException(e.getMessage(), -1 ),e); } catch (ParseException e) { throw setCause(new java.text.ParseException(e.getMessage(), e.currentToken.beginColumn ),e); } }
final public Step Step() throws ParseException { Step s; String p; Token n; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 18: case 19: switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 18: jj_consume_token(18); break; case 19: jj_consume_token(19); break; default: jj_la1[6] = jj_gen; jj_consume_token(-1); throw new ParseException(); s = NameOrWildcard(Axis.ATTRIBUTE); break; case NCNAME: case 20: case 45: switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 20: jj_consume_token(20); break; default: s = NameOrWildcard(Axis.ELEMENT); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
final public Step NameOrWildcard(Axis a) throws ParseException { UName un; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case NCNAME: un = QName(); {if (true) return new Step.Named(a,un);} break; case 45: jj_consume_token(45); {if (true) return new Step.Any(a);} break; default: jj_la1[17] = jj_gen; jj_consume_token(-1); throw new ParseException(); } throw new Error("Missing return statement in function"); }
final public List RelativeSchemaComponentPath() throws ParseException { List steps = new ArrayList(); Step s; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 16: case 17: switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 16: jj_consume_token(16); steps.add(new Step.Any(Axis.ROOT)); break; case 17: jj_consume_token(17); steps.add(new Step.Any(Axis.DESCENDANTS)); break; default: jj_la1[2] = jj_gen; jj_consume_token(-1); throw new ParseException(); s = Step(); steps.add(s); label_1: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 16: case 17: switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 16:
/** * Parses the string representation of SCD. * * <p> * This method involves parsing the path expression and preparing the in-memory * structure, so this is useful when you plan to use the same SCD against * different context node multiple times. * * <p> * If you want to evaluate SCD just once, use {@link XSComponent#select} methods. * * @param path * the string representation of SCD, such as "/foo/bar". * @param nsContext * Its {@link NamespaceContext#getNamespaceURI(String)} is used * to resolve prefixes in the SCD to the namespace URI. */ public static SCD create(String path, NamespaceContext nsContext) throws java.text.ParseException { try { SCDParser p = new SCDParser(path,nsContext); List<?> list = p.RelativeSchemaComponentPath(); return new SCDImpl(path,list.toArray(new Step[list.size()])); } catch (TokenMgrError e) { throw setCause(new java.text.ParseException(e.getMessage(), -1 ),e); } catch (ParseException e) { throw setCause(new java.text.ParseException(e.getMessage(), e.currentToken.beginColumn ),e); } }
final private Token jj_consume_token(int kind) throws ParseException { Token oldToken; if ((oldToken = token).next != null) token = token.next; else token = token.next = token_source.getNextToken(); jj_ntk = -1; if (token.kind == kind) { jj_gen++; return token; } token = oldToken; jj_kind = kind; throw generateParseException(); }
public void ReInit(java.io.InputStream stream) { ReInit(stream, null); } public void ReInit(java.io.InputStream stream, String encoding) {
final public Step Step() throws ParseException { Step s; String p; Token n; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 18: case 19: switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 18: jj_consume_token(18); break; case 19: jj_consume_token(19); break; default: jj_la1[6] = jj_gen; jj_consume_token(-1); throw new ParseException(); s = NameOrWildcard(Axis.ATTRIBUTE); break; case NCNAME: case 20: case 45: switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 20: jj_consume_token(20); break; default: s = NameOrWildcard(Axis.ELEMENT); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
final public Step NameOrWildcard(Axis a) throws ParseException { UName un; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case NCNAME: un = QName(); {if (true) return new Step.Named(a,un);} break; case 45: jj_consume_token(45); {if (true) return new Step.Any(a);} break; default: jj_la1[17] = jj_gen; jj_consume_token(-1); throw new ParseException(); } throw new Error("Missing return statement in function"); }
final public List RelativeSchemaComponentPath() throws ParseException { List steps = new ArrayList(); Step s; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 16: case 17: switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 16: jj_consume_token(16); steps.add(new Step.Any(Axis.ROOT)); break; case 17: jj_consume_token(17); steps.add(new Step.Any(Axis.DESCENDANTS)); break; default: jj_la1[2] = jj_gen; jj_consume_token(-1); throw new ParseException(); s = Step(); steps.add(s); label_1: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 16: case 17: switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 16:
/** * Parses the string representation of SCD. * * <p> * This method involves parsing the path expression and preparing the in-memory * structure, so this is useful when you plan to use the same SCD against * different context node multiple times. * * <p> * If you want to evaluate SCD just once, use {@link XSComponent#select} methods. * * @param path * the string representation of SCD, such as "/foo/bar". * @param nsContext * Its {@link NamespaceContext#getNamespaceURI(String)} is used * to resolve prefixes in the SCD to the namespace URI. */ public static SCD create(String path, NamespaceContext nsContext) throws java.text.ParseException { try { SCDParser p = new SCDParser(path,nsContext); List<?> list = p.RelativeSchemaComponentPath(); return new SCDImpl(path,list.toArray(new Step[list.size()])); } catch (TokenMgrError e) { throw setCause(new java.text.ParseException(e.getMessage(), -1 ),e); } catch (ParseException e) { throw setCause(new java.text.ParseException(e.getMessage(), e.currentToken.beginColumn ),e); } }
final private Token jj_consume_token(int kind) throws ParseException { Token oldToken; if ((oldToken = token).next != null) token = token.next; else token = token.next = token_source.getNextToken(); jj_ntk = -1; if (token.kind == kind) { jj_gen++; return token; } token = oldToken; jj_kind = kind; throw generateParseException(); }