Package org.jostraca.tree.path

Source Code of org.jostraca.tree.path.ParentStep

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();
  }
}
TOP

Related Classes of org.jostraca.tree.path.ParentStep

TOP
Copyright © 2018 www.massapi.com. 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.