net.sourceforge.jparam.conversion.creators
Class ConstructorCreator
java.lang.Object
|
+--net.sourceforge.jparam.conversion.creators.AbstractCreator
|
+--net.sourceforge.jparam.conversion.creators.ConstructorCreator
- All Implemented Interfaces:
- ICreator
- public class ConstructorCreator
- extends AbstractCreator
Field Summary |
(package private) java.lang.reflect.Constructor |
c
|
(package private) boolean[] |
canArgBeNull
|
Method Summary |
boolean |
canBeNull(int index)
Tests if the given argument index can be null, if the argument type is a
primitive one, it should be converted to its wrapper class, but it will
not support null as a value |
protected boolean |
creatorEquals(ICreator o)
|
protected java.lang.Object |
internalCreate(java.lang.Object[] parameters)
|
Methods inherited from class java.lang.Object |
, clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
canArgBeNull
boolean[] canArgBeNull
c
java.lang.reflect.Constructor c
ConstructorCreator
public ConstructorCreator(java.lang.reflect.Constructor c)
internalCreate
protected java.lang.Object internalCreate(java.lang.Object[] parameters)
throws java.lang.Exception
- Overrides:
internalCreate
in class AbstractCreator
creatorEquals
protected boolean creatorEquals(ICreator o)
- Overrides:
creatorEquals
in class AbstractCreator
canBeNull
public boolean canBeNull(int index)
- Description copied from interface:
ICreator
- Tests if the given argument index can be null, if the argument type is a
primitive one, it should be converted to its wrapper class, but it will
not support null as a value
- Following copied from interface:
net.sourceforge.jparam.conversion.creators.ICreator
- Parameters:
index
- The index of the argument to be tested- Returns:
- false if the argument represents a primitive type false otherwise
Copyright © 2004 SourceForge. All Rights Reserved.