Operator
Implementation of the ClassNewInstance operator. Returns
an newly constructed object by invoking a specified constructor.
Input 1: A Class object (or expression that evaluates to a Class) that
defines the Class that should be created.
Input 2: A Class[] (or expression that evaluates to a Class[]) that
defines the signature of the constructor that should be invoked. If
input 2 is null the operator will attempt to deduce the constructor
to call from the arguments (input 3).
Input 3: A Object[] (or expression that evaluates to a Object[]) that
contains the arguments that should be passed to the constructor.
Returns: A new instance of the class, instantiated with the
constructor of the provided signature using the supplied arguments..
Object
ComplexExpressionImpl
Operator
ClassNewInstance
Cloneable
, Expression
, Serializable
Constructor Summary |
|
|
Method Summary |
public |
|
Methods from com.bea.p13n.expression.operator. |
|
Methods from com.bea.p13n.expression.internal. |
addListener, addSubExpression, clearCache, clone, createProxyExpression, equals, getCachedValue, getParent, getSource, getSubExpression, getSubExpressionCount, getUserData, hashCode, isCached, isCacheEnabled, isEqualitySubExpression, notifyListeners, removeAllSubExpressions, removeListener, removeSubExpression, removeSubExpression, setCachedValue, setCacheEnabled, setParent, setSource, setSubExpression, setUserData, toString, write |
Methods from class java.lang. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods from interface com.bea.p13n.expression. |
|
Constructor Detail |
public ClassNewInstance()
public ClassNewInstance(Object
clazz,Object
constructorSignature,Object
args)
clazz
, constructorSignatureargs
parameters.
Method Detail |
public Class
[] getParameterSignature()
Description copied from Expression.getParameterSignature()
Expression
.
Because the sub-expressions within the Expression
are
typically arguments or operands, some type validation is performed
by examining the class types of the sub-expressions against the
Expression
's parameter signature.