public class MethodExpr extends Expr
Constructor and Description |
---|
MethodExpr(Expr expr,
java.lang.String methodName,
Expr[] args)
Creates a new method expression.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Returns true for equal strings.
|
java.lang.Object |
getValue(ELContext env)
Evaluate the expression as an object.
|
java.lang.Object |
invoke(ELContext env,
java.lang.Class<?>[] argTypes,
java.lang.Object[] args)
Evaluates the expression, returning an object.
|
void |
printCreate(WriteStream os)
Prints the code to create an LongLiteral.
|
java.lang.String |
toString()
Returns the printed version.
|
coerceToType, createField, createField, createMethod, error, evalBigDecimal, evalBigInteger, evalBoolean, evalCharacter, evalDouble, evalLong, evalObject, evalPeriod, evalString, evalStringWithNull, getExpectedType, getExpressionString, getMethodInfo, getType, hashCode, invocationError, 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 java.lang.Object getValue(ELContext env) throws ELException
getValue
in class Expr
env
- the variable environmentELException
public java.lang.Object invoke(ELContext env, java.lang.Class<?>[] argTypes, java.lang.Object[] args) throws ELException
invoke
in class Expr
env
- the variable environmentELException
public void printCreate(WriteStream os) throws java.io.IOException
printCreate
in class Expr
os
- the stream to the *.java pagejava.io.IOException
public boolean equals(java.lang.Object o)