MCPcopy Create free account
hub / github.com/apache/ant / newInstance

Method newInstance

src/main/org/apache/tools/ant/util/ReflectUtil.java:52–62  ·  view source on GitHub ↗

Create an instance of a class using the constructor matching the given arguments. @param desired type @param ofClass Class<T> @param argTypes Class<?>[] @param args Object[] @return class instance @since Ant 1.8.0

(Class<T> ofClass,
                                     Class<?>[] argTypes,
                                     Object[] args)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 15

newJarFileMethod · 0.95
registerMethod · 0.45
createExtraFieldMethod · 0.45
createSubProjectMethod · 0.45
getExecutorMethod · 0.45
getHelpersMethod · 0.45
getDocumentBuilderMethod · 0.45
getProcessorMethod · 0.45
initializeClassMethod · 0.45
toTargetTypeMethod · 0.45
createMethod · 0.45
innerCreateAndSetMethod · 0.45

Calls 1

throwBuildExceptionMethod · 0.95

Tested by 8

runMethod · 0.36
parseXMLMethod · 0.36
testJUnit4SkipMethod · 0.36