Enum Axis

    • Method Detail

      • values

        public static Axis[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Axis c : Axis.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Axis valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getKeywordIndex

        public int getKeywordIndex()
        The ANTLR keyword for this axis type.
        Returns:
        the keyword
      • execute

        @NonNull
        public Stream<? extends INodeItemexecute​(@NonNull
                                                   INodeItem focus)
        Execute the axis operation on the provided focus.
        Parameters:
        focus - the node to operate on
        Returns:
        the result of the axis operation
      • accept

        public <RESULT,​CONTEXT> RESULT accept​(gov.nist.secauto.metaschema.core.metapath.IExpressionVisitor<RESULT,​CONTEXT> visitor,
                                                    CONTEXT context)
        Description copied from interface: IExpression
        Provides a double dispatch callback for visitor handling.
        Specified by:
        accept in interface IExpression
        Type Parameters:
        RESULT - the type of the evaluation result
        CONTEXT - the type of the visitor context
        Parameters:
        visitor - the visitor calling this method
        context - the visitor context
        Returns:
        the result of evaluation
      • accept

        public ISequence<? extends INodeItemaccept​(DynamicContext dynamicContext,
                                                     ISequence<?> outerFocus)
        Description copied from interface: IExpression
        Provides a double dispatch callback for visitor handling.
        Specified by:
        accept in interface IExpression
        Parameters:
        dynamicContext - the dynamic evaluation context
        outerFocus - the outer focus of the expression
        Returns:
        the result of evaluation