Copyright 2002 by aragost

com.aragost.araspect
Class Path

java.lang.Object
  |
  +--com.aragost.araspect.Path

public class Path
extends java.lang.Object


Constructor Summary
Path()
           
 
Method Summary
 Path append(PathElement elm)
          Return a new path that is the specified element appended to the receiver
protected  Path clonePath()
           
protected  ObjectRef createDynamicObjectRef(Evaluator evaluator, ObjectRef prev, PathElement elm)
           
static Path fromUrlString(java.lang.String s, java.lang.Object root)
           
 java.util.Iterator getElementIterator()
           
 java.lang.String getHandlerId()
           
 java.lang.Object getSafeValue()
           
 java.lang.Object getValue()
          return the value this Path evaluates to
 java.lang.Class getValueClass()
          return the value this Path evaluates to
protected  ObjectRef getValueRef()
           
 Path parentPath()
          Return the same path without the last PathElement
protected  Path shallowClone()
           
 java.lang.String toString()
           
 java.lang.String toUrlString()
           
 Path upTo(PathElement last)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Path

public Path()
Method Detail

parentPath

public Path parentPath()
Return the same path without the last PathElement


getValue

public java.lang.Object getValue()
                          throws EvaluationException
return the value this Path evaluates to

EvaluationException

getValueRef

protected ObjectRef getValueRef()
                         throws EvaluationException
EvaluationException

createDynamicObjectRef

protected ObjectRef createDynamicObjectRef(Evaluator evaluator,
                                           ObjectRef prev,
                                           PathElement elm)

getSafeValue

public java.lang.Object getSafeValue()

getValueClass

public java.lang.Class getValueClass()
return the value this Path evaluates to


getElementIterator

public java.util.Iterator getElementIterator()

upTo

public Path upTo(PathElement last)

getHandlerId

public java.lang.String getHandlerId()

shallowClone

protected Path shallowClone()

clonePath

protected Path clonePath()

append

public Path append(PathElement elm)
Return a new path that is the specified element appended to the receiver


toUrlString

public java.lang.String toUrlString()

fromUrlString

public static Path fromUrlString(java.lang.String s,
                                 java.lang.Object root)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Copyright 2002 by aragost