package org.jostraca.tree.path;
import org.jostraca.tree.Node;
public class ParentStep extends Step {
@Override
public void perform(Node pNode) {
Node p = pNode.getParent();
mNext.perform(p);
}
@Override
public String getAxis() {
return "parent";
}
public String toString() {
StringBuffer sb = new StringBuffer("..");
sb.append( null == mPredicate ? "" : mPredicate );
return sb.toString();
}
}