Package org.apache.commons.jxpath.ri.axes

Examples of org.apache.commons.jxpath.ri.axes.ChildContext


            case Compiler.AXIS_ANCESTOR_OR_SELF :
                return new AncestorContext(context, true, nodeTest);
            case Compiler.AXIS_ATTRIBUTE :
                return new AttributeContext(context, nodeTest);
            case Compiler.AXIS_CHILD :
                return new ChildContext(context, nodeTest, false, false);
            case Compiler.AXIS_DESCENDANT :
                return new DescendantContext(context, false, nodeTest);
            case Compiler.AXIS_DESCENDANT_OR_SELF :
                return new DescendantContext(context, true, nodeTest);
            case Compiler.AXIS_FOLLOWING :
                return new PrecedingOrFollowingContext(
                    context,
                    nodeTest,
                    false);
            case Compiler.AXIS_FOLLOWING_SIBLING :
                return new ChildContext(context, nodeTest, true, false);
            case Compiler.AXIS_NAMESPACE :
                return new NamespaceContext(context, nodeTest);
            case Compiler.AXIS_PARENT :
                return new ParentContext(context, nodeTest);
            case Compiler.AXIS_PRECEDING :
                return new PrecedingOrFollowingContext(context, nodeTest, true);
            case Compiler.AXIS_PRECEDING_SIBLING :
                return new ChildContext(context, nodeTest, true, true);
            case Compiler.AXIS_SELF :
                return new SelfContext(context, nodeTest);
        }
        return null; // Never happens
    }
View Full Code Here


        case Compiler.AXIS_ANCESTOR_OR_SELF :
            return new AncestorContext(context, true, nodeTest);
        case Compiler.AXIS_ATTRIBUTE :
            return new AttributeContext(context, nodeTest);
        case Compiler.AXIS_CHILD :
            return new ChildContext(context, nodeTest, false, false);
        case Compiler.AXIS_DESCENDANT :
            return new DescendantContext(context, false, nodeTest);
        case Compiler.AXIS_DESCENDANT_OR_SELF :
            return new DescendantContext(context, true, nodeTest);
        case Compiler.AXIS_FOLLOWING :
            return new PrecedingOrFollowingContext(context, nodeTest, false);
        case Compiler.AXIS_FOLLOWING_SIBLING :
            return new ChildContext(context, nodeTest, true, false);
        case Compiler.AXIS_NAMESPACE :
            return new NamespaceContext(context, nodeTest);
        case Compiler.AXIS_PARENT :
            return new ParentContext(context, nodeTest);
        case Compiler.AXIS_PRECEDING :
            return new PrecedingOrFollowingContext(context, nodeTest, true);
        case Compiler.AXIS_PRECEDING_SIBLING :
            return new ChildContext(context, nodeTest, true, true);
        case Compiler.AXIS_SELF :
            return new SelfContext(context, nodeTest);
        default:
            return null; // Never happens
        }
View Full Code Here

        case Compiler.AXIS_ANCESTOR_OR_SELF :
            return new AncestorContext(context, true, nodeTest);
        case Compiler.AXIS_ATTRIBUTE :
            return new AttributeContext(context, nodeTest);
        case Compiler.AXIS_CHILD :
            return new ChildContext(context, nodeTest, false, false);
        case Compiler.AXIS_DESCENDANT :
            return new DescendantContext(context, false, nodeTest);
        case Compiler.AXIS_DESCENDANT_OR_SELF :
            return new DescendantContext(context, true, nodeTest);
        case Compiler.AXIS_FOLLOWING :
            return new PrecedingOrFollowingContext(context, nodeTest, false);
        case Compiler.AXIS_FOLLOWING_SIBLING :
            return new ChildContext(context, nodeTest, true, false);
        case Compiler.AXIS_NAMESPACE :
            return new NamespaceContext(context, nodeTest);
        case Compiler.AXIS_PARENT :
            return new ParentContext(context, nodeTest);
        case Compiler.AXIS_PRECEDING :
            return new PrecedingOrFollowingContext(context, nodeTest, true);
        case Compiler.AXIS_PRECEDING_SIBLING :
            return new ChildContext(context, nodeTest, true, true);
        case Compiler.AXIS_SELF :
            return new SelfContext(context, nodeTest);
        }
        return null; // Never happens
    }
View Full Code Here

TOP

Related Classes of org.apache.commons.jxpath.ri.axes.ChildContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.