public class StaticMethodExpr extends Expr
| Constructor and Description |
|---|
StaticMethodExpr(java.lang.reflect.Method method)
Creates a new method expression.
|
StaticMethodExpr(java.lang.String signature)
Creates a new static method.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o)
Returns true for equal strings.
|
java.lang.Object |
evalMethod(Expr[] args,
ELContext env)
Evaluate the expression as an object.
|
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() |
coerceToType, createField, createField, createMethod, error, evalBigDecimal, evalBigInteger, evalBoolean, evalCharacter, evalDouble, evalLong, evalObject, evalPeriod, evalString, evalStringWithNull, getExpectedType, getExpressionString, getMethodInfo, getType, 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, toStringWithNullgetValueReferencepublic StaticMethodExpr(java.lang.reflect.Method method)
method - - the target methodpublic StaticMethodExpr(java.lang.String signature)
signature - signaturepublic java.lang.Object getValue(ELContext env) throws ELException
getValue in class Exprenv - the variable environmentELExceptionpublic java.lang.Object evalMethod(Expr[] args, ELContext env) throws ELException
env - the variable environmentELExceptionpublic void printCreate(WriteStream os) throws java.io.IOException
printCreate in class Expros - the stream to the *.java pagejava.io.IOExceptionpublic boolean equals(java.lang.Object o)