Package com.db4o.reflect.core
Class ReflectConstructorSpec
- java.lang.Object
-
- com.db4o.reflect.core.ReflectConstructorSpec
-
public class ReflectConstructorSpec extends java.lang.Object
a spec holding a constructor, it's arguments and information, if the constructor can instantiate objects.
-
-
Field Summary
Fields Modifier and Type Field Description static ReflectConstructorSpec
INVALID_CONSTRUCTOR
static ReflectConstructorSpec
UNSPECIFIED_CONSTRUCTOR
-
Constructor Summary
Constructors Constructor Description ReflectConstructorSpec(ReflectConstructor constructor, java.lang.Object[] args)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TernaryBool
canBeInstantiated()
returns true if an instance can be instantiated with the constructor, otherwise false.java.lang.Object
newInstance()
creates a new instance.
-
-
-
Field Detail
-
UNSPECIFIED_CONSTRUCTOR
public static final ReflectConstructorSpec UNSPECIFIED_CONSTRUCTOR
-
INVALID_CONSTRUCTOR
public static final ReflectConstructorSpec INVALID_CONSTRUCTOR
-
-
Constructor Detail
-
ReflectConstructorSpec
public ReflectConstructorSpec(ReflectConstructor constructor, java.lang.Object[] args)
-
-
Method Detail
-
newInstance
public java.lang.Object newInstance()
creates a new instance.- Returns:
- the newly created instance.
-
canBeInstantiated
public TernaryBool canBeInstantiated()
returns true if an instance can be instantiated with the constructor, otherwise false.
-
-