|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.teatrove.tea.parsetree.Node
org.teatrove.tea.parsetree.Expression
org.teatrove.tea.parsetree.Lookup
public class Lookup
A Lookup can access properties on objects. A Bean Introspector is used to get the available properties from an object. Arrays, Lists and Strings also have a built-in property named "length". For arrays, the length field is retrieved, for Lists, the size() method is called, and for Strings, the length() method is called.
Introspector,
Serialized Form| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.teatrove.tea.parsetree.Expression |
|---|
Expression.Conversion |
| Constructor Summary | |
|---|---|
Lookup(SourceInfo info,
Expression expr,
Token dot,
Name lookupName)
|
|
| Method Summary | |
|---|---|
Object |
accept(NodeVisitor visitor)
Every subclass of Node must override this method with the following: return visitor.visit(this). |
Object |
clone()
Returns a clone of this Node and all its children. |
Token |
getDot()
|
Expression |
getExpression()
|
Name |
getLookupName()
|
Method |
getReadMethod()
Returns the method to invoke in order to perform the lookup. |
Field |
getReadProperty()
Returns the field to use in order to perform the lookup. |
boolean |
isExceptionPossible()
Returns true if an exception can be thrown while executing this Expression. |
boolean |
isNullSafe()
|
void |
setExpression(Expression expr)
|
void |
setNullSafe(boolean nullSafe)
|
void |
setReadMethod(Method m)
|
void |
setReadProperty(Field f)
|
| Methods inherited from class org.teatrove.tea.parsetree.Expression |
|---|
convertTo, convertTo, forceConversion, getConversionChain, getInitialType, getType, getValue, isValueKnown, setInitialType, setType |
| Methods inherited from class org.teatrove.tea.parsetree.Node |
|---|
getSourceInfo, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Lookup(SourceInfo info,
Expression expr,
Token dot,
Name lookupName)
| Method Detail |
|---|
public Object accept(NodeVisitor visitor)
Nodereturn visitor.visit(this).
accept in class Expressionvisitor - A visitor of this Node
NodeVisitorpublic Object clone()
Node
clone in class Expressionpublic boolean isExceptionPossible()
Expression
isExceptionPossible in class Expressionpublic Expression getExpression()
public Token getDot()
public Name getLookupName()
public void setExpression(Expression expr)
public Method getReadMethod()
public void setReadMethod(Method m)
public Field getReadProperty()
public void setReadProperty(Field f)
public boolean isNullSafe()
isNullSafe in interface NullSafepublic void setNullSafe(boolean nullSafe)
setNullSafe in interface NullSafe
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||