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
           
 
Fields inherited from class net.sourceforge.jparam.conversion.creators.AbstractCreator
parameterTypes, returnType
 
Constructor Summary
ConstructorCreator(java.lang.reflect.Constructor c)
           
 
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 net.sourceforge.jparam.conversion.creators.AbstractCreator
canCreate, create, equals, getParameterTypes, getReturnClass, toString
 
Methods inherited from class java.lang.Object
, clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

canArgBeNull

boolean[] canArgBeNull

c

java.lang.reflect.Constructor c
Constructor Detail

ConstructorCreator

public ConstructorCreator(java.lang.reflect.Constructor c)
Method Detail

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.