|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.navel.beans.PropertyExpression
public final class PropertyExpression
Individual properties that make up the parse tree. All instances that compose and expression are linked together and maintain a reference to the total expression.
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
expressionToLeaf()
|
java.lang.String |
expressionToRoot()
|
PropertyExpression |
getChild()
|
java.lang.String |
getExpression()
|
DotNotationExpression |
getFullExpression()
|
int |
getIndex()
|
PropertyExpression |
getParent()
|
java.lang.String |
getPropertyName()
|
int |
hashCode()
|
boolean |
hasIndex()
|
boolean |
isIndexed()
|
boolean |
isLeaf()
|
boolean |
isRoot()
|
java.lang.String |
toString()
|
void |
validateArray(java.lang.Object value)
When performing an indexed access based on this expression, if the target value is not an array, throw an exception. |
void |
validateArrayBounds(int length)
When performing an indexed access based on this expression, if the index value is invalid for the length, throw an exception. |
void |
validateIndex()
When performing an indexed access based on this expression, if the index value is invalid, throw an exception. |
void |
validateInterimForIndexed(java.lang.Object interimValue)
When performing an indexed access based on this expression, if the target value is null and the expression is indexed, throw an exception. |
void |
validateListBounds(int size)
When performing an indexed access based on this expression, if the index value is invalid for the size, throw an exception. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public DotNotationExpression getFullExpression()
public java.lang.String getExpression()
public boolean isRoot()
public PropertyExpression getParent()
isRoot()
returns true, otherwise, the parent
property that needs to be de-referenced to get to this instance.public boolean isLeaf()
public PropertyExpression getChild()
#isChild()
returns true, otherwise, the child
property that can be de-reference from this one.public java.lang.String getPropertyName()
getExpression()
is that the other method
preserves the optional bracket operator and this will strip it.public boolean isIndexed()
getExpression()
contains a bracket operator.public boolean hasIndex()
public int getIndex()
isIndexed()
or hasIndex()
returns false
or the bracket operator is empty, otherwise the number value in
the bracket operator.public java.lang.String expressionToLeaf()
public java.lang.String expressionToRoot()
public void validateIndex()
public void validateListBounds(int size)
public void validateArray(java.lang.Object value)
public void validateArrayBounds(int length)
public void validateInterimForIndexed(java.lang.Object interimValue)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |