类的使用
com.obermuhlner.scriptengine.java.constructor.DefaultConstructorStrategy
-
com.obermuhlner.scriptengine.java.constructor中DefaultConstructorStrategy的使用
修饰符和类型方法说明static DefaultConstructorStrategyDefaultConstructorStrategy.byArgumentTypes(Class<?>[] argumentTypes, Object... arguments) Creates aDefaultConstructorStrategythat will call the public constructor with the specified argument types and passes the specified argument list.static DefaultConstructorStrategyDefaultConstructorStrategy.byDefaultConstructor()Creates aDefaultConstructorStrategythat will call the public default no-argument constructor.static DefaultConstructorStrategyDefaultConstructorStrategy.byMatchingArguments(Object... arguments) Creates aDefaultConstructorStrategythat will call a public constructor that matches the specified arguments.