|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--antlr.BaseAST
|
+--antlr.CommonAST
|
+--org.omegahat.Environment.Parser.Parse.BasicExpression
|
+--org.omegahat.Environment.Parser.Parse.ElementAccess
|
+--org.omegahat.Environment.Parser.Parse.FieldAccess
|
+--org.omegahat.Environment.Parser.Parse.DynamicFieldAccess
Provides the regular field access for an object
and additional facilities for probing objects which
implement the DynamicFieldAccessInt
for entries that are not officially fields - e.g. a named entry in a
Hashtable.
| Fields inherited from class org.omegahat.Environment.Parser.Parse.ElementAccess |
elementName, isGlobal, isSuper, qualifier |
| Fields inherited from class org.omegahat.Environment.Parser.Parse.BasicExpression |
children, comments, isActive, parent, POST, PRE |
| Fields inherited from class antlr.BaseAST |
down, right |
| Constructor Summary | |
DynamicFieldAccess(ExpressionInt qualifier,
java.lang.String id)
|
|
DynamicFieldAccess(Name n)
|
|
DynamicFieldAccess(java.lang.String n)
Version that has no qualifier and just identifies the field name, used when constructing incomplete specifications for example in loops |
|
| Method Summary | |
java.lang.Object |
getFieldValue(java.lang.Object src,
java.lang.Class cl,
Evaluator evaluator)
|
| Methods inherited from class org.omegahat.Environment.Parser.Parse.FieldAccess |
eval, fieldName, fieldName, findMethod, getField, getFieldValue, getReferencedVariables, getTargetObject, toString |
| Methods inherited from class org.omegahat.Environment.Parser.Parse.ElementAccess |
elementName, elementName, getFirstChild, isGlobal, isGlobal, isSuper, isSuper, qualifier, qualifier, qualifierEval |
| Methods inherited from class org.omegahat.Environment.Parser.Parse.BasicExpression |
addChild, addComment, apply, apply, apply, children, children, comment, comment, depth, error, eval, evalInit, evaluationFrame, evaluator, getReferencedVariables, getReferencedVariables, getReferencedVariables, isActive, isActive, parent, parent, postComment, postComment, preComment, preComment, render, replaceChild, resolve, run, setParent, setParent, setParent, setParent, showComments, showComments, subset, substitute, substitute |
| Methods inherited from class antlr.CommonAST |
getText, getType, initialize, initialize, initialize, setText, setType |
| Methods inherited from class antlr.BaseAST |
addChild, equals, equalsList, equalsListPartial, equalsTree, equalsTreePartial, findAll, findAllPartial, getNextSibling, removeChildren, setFirstChild, setNextSibling, setVerboseStringConversion, toStringList, toStringTree |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.omegahat.Environment.Parser.Parse.ExpressionInt |
error, resolve, substitute |
| Methods inherited from interface org.omegahat.Environment.Parser.Parse.TreeNodeInt |
addChild, children, depth, parent, parent, replaceChild |
| Methods inherited from interface org.omegahat.Environment.Language.Evaluable |
eval |
| Constructor Detail |
public DynamicFieldAccess(ExpressionInt qualifier,
java.lang.String id)
public DynamicFieldAccess(Name n)
public DynamicFieldAccess(java.lang.String n)
| Method Detail |
public java.lang.Object getFieldValue(java.lang.Object src,
java.lang.Class cl,
Evaluator evaluator)
throws java.lang.Throwable
getFieldValue in class FieldAccess
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||