|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.christopherschultz.evaluator.StandardFunction net.christopherschultz.evaluator.function.NewObjectFunction
public class NewObjectFunction
Creates a new object of a class and calls the appropriate constructor.
Here's an example of how this works. If you expression is
create("java.lang.StringBuffer", "buffered string")
Then by using the NewObjectFunction, a new object of type StrinfBuffer will be created, and StringBuffer.<init> will be called with the remaining arguments ("buffered string").
Constructor Summary | |
---|---|
NewObjectFunction()
Creates a new IJWInvocation object. |
Method Summary | |
---|---|
Object |
call(EvaluationContext ec,
String functionName,
Object[] arguments)
Calls this function with standard argument evaluation semantics. |
Methods inherited from class net.christopherschultz.evaluator.StandardFunction |
---|
call, getExpressionValue, getExpressionValueArray, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NewObjectFunction()
Method Detail |
---|
public Object call(EvaluationContext ec, String functionName, Object[] arguments) throws EvaluationException
StandardFunction
call
in class StandardFunction
ec
- The EvaluationContext in which this function is being called.functionName
- The name of the function being invoked.arguments
- The argument values to pass to this function.
EvaluationException
- If there is an error during function
execution.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |