|
|||||||||
| 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.List
|
+--org.omegahat.Environment.Parser.Parse.Name
|
+--org.omegahat.Models.Formulae.Expressions.FormulaName
|
+--org.omegahat.Models.Formulae.Expressions.IndexedFormulaName
Represents a "variable" name in a formula term indexed by one or more subscripts. The subscripts are interpreted in a formula-specific manner.
| Field Summary | |
protected List |
subscripts
A list of subscript terms that can be simple names or expressions. |
| Fields inherited from class org.omegahat.Environment.Parser.Parse.List |
elements, separator |
| 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 | |
IndexedFormulaName()
Empty constructor for degenerate initialization and later parameterization via the field accessors, and derived classes. |
|
IndexedFormulaName(java.lang.String name)
Regular constructor identifying the variable of interest with no subscripts. |
|
IndexedFormulaName(java.lang.String name,
List indeces)
Create the object with the variable and a collection of subscript terms. |
|
| Method Summary | |
java.lang.String |
asString()
|
List |
subscripts()
Accessor for the collection of subscripting terms. |
List |
subscripts(List els)
Accessor to set the collection of subscripting terms. |
java.lang.String |
toString()
|
| Methods inherited from class org.omegahat.Environment.Parser.Parse.Name |
addElements, append, asClass, asClass, asObject, collapse, collapse, element, equals, eval, getReferencedVariables, hashCode, subset, substitute |
| Methods inherited from class org.omegahat.Environment.Parser.Parse.List |
addElement, addElements, addElements, addResult, asString, asString, clear, clone, contains, copyElements, elementAt, elements, elementToString, eval, evalElement, evalElement, evalResult, getFirstChild, lastElement, parent, separator, separator, setElementAt, size, size, subset, subset, subset, toArray, toString |
| 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, isActive, isActive, parent, postComment, postComment, preComment, preComment, render, replaceChild, resolve, run, setParent, setParent, setParent, setParent, showComments, showComments, 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 |
finalize, getClass, 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 |
| Field Detail |
protected List subscripts
| Constructor Detail |
public IndexedFormulaName(java.lang.String name)
public IndexedFormulaName(java.lang.String name,
List indeces)
public IndexedFormulaName()
| Method Detail |
public List subscripts()
public List subscripts(List els)
public java.lang.String toString()
toString in class Namepublic java.lang.String asString()
asString in class Name
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||