|
|||||||||
| 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.LocalVariable
Declaration of a local variable - e.g. local x - with optional additional modifiers
and type information.
| Field Summary | |
static java.lang.String |
LocalDeclarator
|
protected Modifier |
modifiers
|
protected List |
names
|
protected Name |
type
|
| 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 | |
LocalVariable(antlr.collections.AST tr)
|
|
LocalVariable(java.lang.Object type,
java.lang.Object names)
|
|
LocalVariable(java.lang.Object type,
java.lang.Object names,
boolean isFinal)
|
|
LocalVariable(java.lang.Object type,
java.lang.Object names,
Modifier modifiers)
|
|
| Method Summary | |
Database |
database(Database db)
|
List |
elements()
|
List |
elements(List n)
|
java.lang.Object |
eval(Evaluator evaluator)
Evaluate this expression, defining the types of the different variables being declared and their initial values if supplied, or null otherwise. |
antlr.collections.AST |
getFirstChild()
|
java.lang.Class |
getTypeClass(Evaluator evaluator)
|
Modifier |
modifiers()
|
Modifier |
modifiers(Modifier m)
|
java.lang.String |
toString()
|
Name |
type()
|
Name |
type(Name t)
|
| 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 |
| Field Detail |
public static java.lang.String LocalDeclarator
protected Name type
protected List names
protected Modifier modifiers
| Constructor Detail |
public LocalVariable(java.lang.Object type,
java.lang.Object names)
public LocalVariable(java.lang.Object type,
java.lang.Object names,
boolean isFinal)
public LocalVariable(java.lang.Object type,
java.lang.Object names,
Modifier modifiers)
public LocalVariable(antlr.collections.AST tr)
| Method Detail |
public Modifier modifiers()
public Modifier modifiers(Modifier m)
public Name type(Name t)
public Name type()
public List elements()
public List elements(List n)
public java.lang.Object eval(Evaluator evaluator)
throws java.lang.Throwable
null otherwise.eval in interface Evaluableeval in class BasicExpression
public java.lang.Class getTypeClass(Evaluator evaluator)
throws java.lang.ClassNotFoundException
public java.lang.String toString()
toString in class BasicExpressionpublic Database database(Database db)
public antlr.collections.AST getFirstChild()
getFirstChild in class antlr.BaseAST
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||