Class RelativePath


  • public class RelativePath
    extends Path

    Represents a relative SPath expression.

    Author:
    Shawn Bayern
    • Constructor Detail

      • RelativePath

        public RelativePath​(Step step,
                            RelativePath next)
        Constructs a new RelativePath object, based on a Step and another (possibly null) RelativePath. If 'all' is true, then the path matches all instances of 'next' underneath 'step'; otherwise; 'next' must be an immediate child of 'step'.
    • Method Detail

      • getSteps

        public List<Step> getSteps()
        Description copied from class: Path
        Retrieves an ordered list of Step objects representing this expression. The result is safely modifiable by the caller and must support List.add(Object) and List.add(int, Object).
        Specified by:
        getSteps in class Path