public static CtField addField(CtClass fieldType, String fieldName, CtClass declaringClass) throws CannotCompileException {
    """
	Adds a field of the desired type to the declaring class.
	
	@param fieldType
	@param fieldName
	@param declaringClass
	@return
	@throws CannotCompileException
    """
    return addField( fieldType, fieldName, declaringClass, Modifier.PRIVATE );
  }
public static CtField addField(CtClass fieldType, String fieldName, CtClass declaringClass) throws CannotCompileException
  {
    return addField( fieldType, fieldName, declaringClass, Modifier.PRIVATE );
  }
public static CtField addField ( CtClass fieldType , String fieldName , CtClass declaringClass ) throws CannotCompileException { return addField ( fieldType , fieldName , declaringClass , Modifier . PRIVATE ) ; }
Adds a field of the desired type to the declaring class.

@param fieldType
@param fieldName
@param declaringClass
@return
@throws CannotCompileException
Adds a field of the desired type to the declaring class .