1 19 20 package org.netbeans.modules.xml.xpath.impl; 21 22 import org.netbeans.modules.xml.xpath.LocationStep; 23 import org.netbeans.modules.xml.xpath.XPathLocationPath; 24 import org.netbeans.modules.xml.xpath.visitor.XPathVisitable; 25 import org.netbeans.modules.xml.xpath.visitor.XPathVisitor; 26 27 28 34 public class XPathLocationPathImpl 35 extends XPathExpressionImpl 36 implements XPathLocationPath { 37 38 39 LocationStep[] mSteps; 40 41 42 boolean mAbsolute; 43 44 47 private boolean mIsSimplePath; 48 49 53 public XPathLocationPathImpl(LocationStep[] steps) { 54 this(steps, false, true); 55 } 56 57 58 64 public XPathLocationPathImpl(LocationStep[] steps, boolean absolute 65 , boolean isSimplePath) { 66 super(); 67 setSteps(steps); 68 setAbsolute(absolute); 69 mIsSimplePath = isSimplePath; 70 } 71 72 73 77 public boolean getAbsolute() { 78 return mAbsolute; 79 } 80 81 82 86 public void setAbsolute(boolean absolute) { 87 mAbsolute = absolute; 88 } 89 90 91 95 public LocationStep[] getSteps() { 96 return mSteps; 97 } 98 99 100 104 public void setSteps(LocationStep[] steps) { 105 mSteps = steps; 106 } 107 108 113 public boolean isSimplePath() { 114 return mIsSimplePath; 115 } 116 117 122 public void setSimplePath(boolean isSimplePath) { 123 mIsSimplePath = isSimplePath; 124 } 125 126 130 public void accept(XPathVisitor visitor) { 131 visitor.visit(this); 132 } 133 } 134 | Popular Tags |