|
|||||||||
| 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.MethodCall
|
+--org.omegahat.Environment.Parser.Parse.ConstructorExpression
|
+--org.omegahat.Environment.Parser.Parse.ArrayConstructorExpression
Expression for instantiating and optionally initializing an
array of the form
new int[][]{1::10, 1::5}, etc.
| Field Summary | |
protected ArrayDimensionExpression |
dimensions
|
protected List |
initialization
|
| Fields inherited from class org.omegahat.Environment.Parser.Parse.MethodCall |
args, evalArgs, evaluatorMethod, foundStaticMethod, identifier, methodLocator, QuoteMethodName |
| 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 | |
ArrayConstructorExpression(Name type,
ArrayDimensionExpression dims)
|
|
ArrayConstructorExpression(Name type,
ArrayDimensionExpression dims,
java.lang.Object d)
|
|
ArrayConstructorExpression(java.lang.String type,
ArrayDimensionExpression dims)
|
|
ArrayConstructorExpression(java.lang.String type,
ArrayDimensionExpression dims,
java.lang.Object d)
|
|
| Method Summary | |
java.lang.Object |
eval(Evaluator evaluator)
|
List |
initializer()
|
List |
initializer(java.lang.Object i)
|
java.lang.Object |
toArray(java.lang.Object el,
java.lang.Class cl,
int numDims,
int[] declaredDims,
Evaluator evaluator)
|
java.lang.String |
toString()
|
| Methods inherited from class org.omegahat.Environment.Parser.Parse.ConstructorExpression |
eval, matchConstructor, searchConstructors |
| Methods inherited from class org.omegahat.Environment.Parser.Parse.MethodCall |
argList, args, args, args, argumentClasses, children, elementName, evalArgs, evalArgs, evalFunction, evalFunction, evaluatorMethod, evaluatorMethod, findEvalMethod, findEvalMethod, findEvalMethod, findEvalMethod, fullName, getFirstChild, implicitNew, implicitNew, isStatic, isStatic, isStatic, methodInvoke, methodLocator, methodLocator, methodName, methodName, methodName, Quote, replaceChild, resolveMethod, returnsVoid, setAccessible, substitute, transformArguments, transformArguments, unqualifiedCall |
| Methods inherited from class org.omegahat.Environment.Parser.Parse.ElementAccess |
elementName, isGlobal, isGlobal, isSuper, isSuper, qualifier, qualifier, qualifierEval |
| Methods inherited from class org.omegahat.Environment.Parser.Parse.BasicExpression |
addChild, addComment, apply, apply, apply, children, comment, comment, depth, error, eval, evalInit, evaluationFrame, evaluator, getReferencedVariables, getReferencedVariables, getReferencedVariables, isActive, isActive, parent, parent, postComment, postComment, preComment, preComment, render, resolve, run, setParent, setParent, setParent, setParent, showComments, showComments, subset, 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, depth, parent, parent |
| Methods inherited from interface org.omegahat.Environment.Language.Evaluable |
eval |
| Field Detail |
protected List initialization
protected ArrayDimensionExpression dimensions
| Constructor Detail |
public ArrayConstructorExpression(java.lang.String type,
ArrayDimensionExpression dims,
java.lang.Object d)
public ArrayConstructorExpression(Name type,
ArrayDimensionExpression dims,
java.lang.Object d)
public ArrayConstructorExpression(java.lang.String type,
ArrayDimensionExpression dims)
public ArrayConstructorExpression(Name type,
ArrayDimensionExpression dims)
| Method Detail |
public java.lang.Object eval(Evaluator evaluator)
throws java.lang.Throwable
eval in class ConstructorExpressionpublic List initializer()
public List initializer(java.lang.Object i)
public java.lang.Object toArray(java.lang.Object el,
java.lang.Class cl,
int numDims,
int[] declaredDims,
Evaluator evaluator)
public java.lang.String toString()
toString in class MethodCall
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||