public SymbolicName getSymbolicNameIfExplicit() { if (nameTest instanceof NameTest) { if (componentKind == StandardNames.XSL_FUNCTION) { return new SymbolicName.F(((NameTest)nameTest).getMatchingNodeName(), arity); } else { return new SymbolicName(componentKind, ((NameTest) nameTest).getMatchingNodeName()); } } else { return null; } }
public SymbolicName getSymbolicNameIfExplicit() { if (nameTest instanceof NameTest) { if (componentKind == StandardNames.XSL_FUNCTION) { return new SymbolicName.F(((NameTest)nameTest).getMatchingNodeName(), arity); } else { return new SymbolicName(componentKind, ((NameTest) nameTest).getMatchingNodeName()); } } else { return null; } }
private static int nameTestRelationship(QNameTest t1, QNameTest t2) { if (t1.equals(t2)) { return SAME_TYPE; } if (t2 instanceof NameTest) { return t1.matches(((NameTest) t2).getMatchingNodeName()) ? SUBSUMES : DISJOINT; } if (t1 instanceof NameTest) { return t2.matches(((NameTest) t1).getMatchingNodeName()) ? SUBSUMED_BY : DISJOINT; } if (t2 instanceof SameNameTest) { return t1.matches(((SameNameTest) t2).getMatchingNodeName()) ? SUBSUMES : DISJOINT; } if (t1 instanceof SameNameTest) { return t2.matches(((SameNameTest) t1).getMatchingNodeName()) ? SUBSUMED_BY : DISJOINT; } if (t1 instanceof NamespaceTest && t2 instanceof NamespaceTest) { return DISJOINT; } if (t1 instanceof LocalNameTest && t2 instanceof LocalNameTest) { return DISJOINT; } return OVERLAPS; }
private static int nameTestRelationship(QNameTest t1, QNameTest t2) { if (t1.equals(t2)) { return SAME_TYPE; } if (t2 instanceof NameTest) { return t1.matches(((NameTest) t2).getMatchingNodeName()) ? SUBSUMES : DISJOINT; } if (t1 instanceof NameTest) { return t2.matches(((NameTest) t1).getMatchingNodeName()) ? SUBSUMED_BY : DISJOINT; } if (t2 instanceof SameNameTest) { return t1.matches(((SameNameTest) t2).getMatchingNodeName()) ? SUBSUMES : DISJOINT; } if (t1 instanceof SameNameTest) { return t2.matches(((SameNameTest) t1).getMatchingNodeName()) ? SUBSUMED_BY : DISJOINT; } if (t1 instanceof NamespaceTest && t2 instanceof NamespaceTest) { return DISJOINT; } if (t1 instanceof LocalNameTest && t2 instanceof LocalNameTest) { return DISJOINT; } return OVERLAPS; }
int kind = test.getComponentKind(); SymbolicName sName = kind == StandardNames.XSL_FUNCTION ? new SymbolicName.F(((NameTest) nameTest).getMatchingNodeName(), test.getArity()) : new SymbolicName(kind, ((NameTest) nameTest).getMatchingNodeName()); Component comp = pack.getComponent(sName); boolean found = false; sName = new SymbolicName.F(((NameTest) nameTest).getMatchingNodeName(), i); comp = pack.getComponent(sName); if (comp != null) {
int kind = test.getComponentKind(); SymbolicName sName = kind == StandardNames.XSL_FUNCTION ? new SymbolicName.F(((NameTest) nameTest).getMatchingNodeName(), test.getArity()) : new SymbolicName(kind, ((NameTest) nameTest).getMatchingNodeName()); Component comp = pack.getComponent(sName); boolean found = false; sName = new SymbolicName.F(((NameTest) nameTest).getMatchingNodeName(), i); comp = pack.getComponent(sName); if (comp != null) {
QNameTest nameTest = test.getQNameTest(); if (nameTest instanceof NameTest) { StructuredQName qName = ((NameTest) nameTest).getMatchingNodeName(); int kind = test.getComponentKind(); SymbolicName sName = kind == StandardNames.XSL_FUNCTION ? new SymbolicName.F(((NameTest) nameTest).getMatchingNodeName(), test.getArity()) : new SymbolicName(kind, ((NameTest) nameTest).getMatchingNodeName()); boolean found = false; switch(kind) { sName = new SymbolicName.F(((NameTest) nameTest).getMatchingNodeName(), i); Component fn = pack.getComponent(sName); if (fn != null) {
QNameTest nameTest = test.getQNameTest(); if (nameTest instanceof NameTest) { StructuredQName qName = ((NameTest) nameTest).getMatchingNodeName(); int kind = test.getComponentKind(); SymbolicName sName = kind == StandardNames.XSL_FUNCTION ? new SymbolicName.F(((NameTest) nameTest).getMatchingNodeName(), test.getArity()) : new SymbolicName(kind, ((NameTest) nameTest).getMatchingNodeName()); boolean found = false; switch(kind) { sName = new SymbolicName.F(((NameTest) nameTest).getMatchingNodeName(), i); Component fn = pack.getComponent(sName); if (fn != null) {