new1"
From Documentation
(Created page with '{{ZUMLReferencePageHeader}} <source lang="java"> Object new1(Object cls, Object arg); </source> :i.e., <javadoc method="new_(java.lang.Object, java.lang.Object)">org.zkoss.xel.…') |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 9: | Line 9: | ||
Instantiates the given class with an argument. It assumes the given class has a proper constructor. | Instantiates the given class with an argument. It assumes the given class has a proper constructor. | ||
− | ''' | + | '''Parameters''' |
* cls - the class. It could be an instance of either String or Class. | * cls - the class. It could be an instance of either String or Class. | ||
* arg - the argument to be passed to the constructor. | * arg - the argument to be passed to the constructor. | ||
+ | |||
+ | = Usage = | ||
+ | <code>${c:new1('java.lang.Integer', 2)}</code> | ||
=Version History= | =Version History= | ||
− | + | {{LastUpdated}} | |
{| border='1px' | width="100%" | {| border='1px' | width="100%" | ||
! Version !! Date !! Content | ! Version !! Date !! Content |
Latest revision as of 03:15, 27 October 2021
Object new1(Object cls, Object arg);
Instantiates the given class with an argument. It assumes the given class has a proper constructor.
Parameters
- cls - the class. It could be an instance of either String or Class.
- arg - the argument to be passed to the constructor.
Usage
${c:new1('java.lang.Integer', 2)}
Version History
Version | Date | Content |
---|---|---|