RelativePathpublic class RelativePath extends Path Represents a relative SPath expression. |
Fields Summary |
---|
private RelativePath | next | private Step | step |
Constructors Summary |
---|
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'.
if (step == null)
throw new IllegalArgumentException("non-null step required");
this.step = step;
this.next = next;
|
Methods Summary |
---|
public java.util.List | getSteps()
// simply merge our 'step' with our 'next'
List l;
if (next != null)
l = next.getSteps();
else
l = new Vector();
l.add(0, step);
return l;
|
|