public class ArrayExpr extends Expr
a[b]
Constructor and Description |
---|
ArrayExpr(Expr left,
Expr right)
Creates a new array expression.
|
Modifier and Type | Method and Description |
---|---|
Expr |
createMethod(Expr[] args)
Creates a method for constant arrays.
|
boolean |
equals(java.lang.Object o)
Returns true for equal strings.
|
Expr |
getExpr()
Returns the base expression.
|
Expr |
getIndex()
Returns the index expression.
|
java.lang.Class<?> |
getType(ELContext env)
Evaluates the expression as applicable to the provided context, and returns
the most general type that can be accepted by the setValue(javax.el.ELContext,
java.lang.Object) method.
|
java.lang.Object |
getValue(ELContext env)
Evaluate the expression as an object.
|
void |
printCreate(WriteStream os)
Prints the code to create an LongLiteral.
|
java.lang.String |
toString()
Returns a readable representation of the expr.
|
coerceToType, createField, createField, error, evalBigDecimal, evalBigInteger, evalBoolean, evalCharacter, evalDouble, evalLong, evalObject, evalPeriod, evalString, evalStringWithNull, getExpectedType, getExpressionString, getMethodInfo, hashCode, invocationError, invoke, isConstant, isDouble, isDoubleString, isLiteralText, isReadOnly, print, print, printEscaped, printEscapedString, setProperty, setValue, toBigDecimal, toBigInteger, toBoolean, toCharacter, toClass, toDouble, toEnum, toLong, toStream, toStream, toStream, toStreamEscaped, toStreamEscaped, toStreamEscaped, toString, toString, toString, toString, toString, toStringWithNull
getValueReference
public Expr getExpr()
public Expr getIndex()
public Expr createMethod(Expr[] args)
createMethod
in class Expr
args
- the arguments for the methodpublic java.lang.Class<?> getType(ELContext env)
getType
in class Expr
env
- PropertyNotFoundException
ELException
public java.lang.Object getValue(ELContext env) throws ELException
getValue
in class Expr
env
- the variable environmentELException
public void printCreate(WriteStream os) throws java.io.IOException
printCreate
in class Expr
os
- stream to the generated *.java codejava.io.IOException
public boolean equals(java.lang.Object o)