/** * Adds a member value pair to this annotation * @param name * The simple name for this annotation * * @param value * The JEnumConstant which is member value for this annotation * @return * The JAnnotationUse. More member value pairs can * be added to it using the same or the overloaded methods. * */ public JAnnotationUse param(String name, JEnumConstant value){ addValue(name, new JAnnotationStringValue(value)); return this; }
/** * Adds a member value pair to this annotation. * @param name * The simple name for this annotation * * @param value * The JExpression which provides the contant value for this annotation * @return * The JAnnotationUse. More member value pairs can * be added to it using the same or the overloaded methods. * */ public JAnnotationUse param(String name, JExpression value){ addValue(name, new JAnnotationStringValue(value)); return this; }
/** * Adds a member value pair which is of type array to this annotation * @param name * The simple name for this annotation * * @return * The JAnnotationArrayMember. For adding array values * @see JAnnotationArrayMember * */ public JAnnotationArrayMember paramArray(String name){ JAnnotationArrayMember arrayMember = new JAnnotationArrayMember(owner()); addValue(name, arrayMember); return arrayMember; }
/** * Adds a member value pair which is of type array to this annotation * @param name * The simple name for this annotation * * @return * The JAnnotationArrayMember. For adding array values * @see JAnnotationArrayMember * */ public JAnnotationArrayMember paramArray(String name){ JAnnotationArrayMember arrayMember = new JAnnotationArrayMember(owner()); addValue(name, arrayMember); return arrayMember; }
/** * Adds a member value pair which is of type array to this annotation * @param name * The simple name for this annotation * * @return * The JAnnotationArrayMember. For adding array values * @see JAnnotationArrayMember * */ public JAnnotationArrayMember paramArray(String name){ JAnnotationArrayMember arrayMember = new JAnnotationArrayMember(owner()); addValue(name, arrayMember); return arrayMember; }
/** * Adds a member value pair which is of type array to this annotation * @param name * The simple name for this annotation * * @return * The JAnnotationArrayMember. For adding array values * @see JAnnotationArrayMember * */ public JAnnotationArrayMember paramArray(String name){ JAnnotationArrayMember arrayMember = new JAnnotationArrayMember(owner()); addValue(name, arrayMember); return arrayMember; }
/** * Adds a member value pair which is of type array to this annotation * @param name * The simple name for this annotation * * @return * The JAnnotationArrayMember. For adding array values * @see JAnnotationArrayMember * */ public JAnnotationArrayMember paramArray(String name){ JAnnotationArrayMember arrayMember = new JAnnotationArrayMember(owner()); addValue(name, arrayMember); return arrayMember; }
/** * Adds a member value pair to this annotation * @param name * The simple name for this annotation * * @param value * The float member value for this annotation * @return * The JAnnotationUse. More member value pairs can * be added to it using the same or the overloaded methods. * */ public JAnnotationUse param(String name, float value){ addValue(name, new JAnnotationStringValue(JExpr.lit(value))); return this; }
/** * Adds a member value pair to this annotation * @param name * The simple name for this annotation * * @param value * The double member value for this annotation * @return * The JAnnotationUse. More member value pairs can * be added to it using the same or the overloaded methods. * */ public JAnnotationUse param(String name, double value){ addValue(name, new JAnnotationStringValue(JExpr.lit(value))); return this; }
/** * Adds a member value pair to this annotation * @param name * The simple name for this annotation * * @param value * The long member value for this annotation * @return * The JAnnotationUse. More member value pairs can * be added to it using the same or the overloaded methods. * */ public JAnnotationUse param(String name, long value){ addValue(name, new JAnnotationStringValue(JExpr.lit(value))); return this; }
/** * Adds a member value pair to this annotation * @param name * The simple name for this annotation * * @param value * The double member value for this annotation * @return * The JAnnotationUse. More member value pairs can * be added to it using the same or the overloaded methods. * */ public JAnnotationUse param(String name, double value){ addValue(name, new JAnnotationStringValue(JExpr.lit(value))); return this; }
/** * Adds a member value pair to this annotation * @param name * The simple name for this annotation * * @param value * The long member value for this annotation * @return * The JAnnotationUse. More member value pairs can * be added to it using the same or the overloaded methods. * */ public JAnnotationUse param(String name, long value){ addValue(name, new JAnnotationStringValue(JExpr.lit(value))); return this; }
/** * Adds a member value pair to this annotation * @param name * The simple name for this annotation * * @param value * The short member value for this annotation * @return * The JAnnotationUse. More member value pairs can * be added to it using the same or the overloaded methods. * */ public JAnnotationUse param(String name, short value){ addValue(name, new JAnnotationStringValue(JExpr.lit(value))); return this; }
/** * Adds a member value pair to this annotation * @param name * The simple name for this annotation * * @param value * The long member value for this annotation * @return * The JAnnotationUse. More member value pairs can * be added to it using the same or the overloaded methods. * */ public JAnnotationUse param(String name, long value){ addValue(name, new JAnnotationStringValue(JExpr.lit(value))); return this; }
/** * Adds a member value pair to this annotation * @param name * The simple name for this annotation * * @param value * The int member value for this annotation * @return * The JAnnotationUse. More member value pairs can * be added to it using the same or the overloaded methods. * */ public JAnnotationUse param(String name, int value){ addValue(name, new JAnnotationStringValue(JExpr.lit(value))); return this; }
/** * Adds a member value pair to this annotation based on the * type represented by the given JType * * @param name The simple name for this annotation param * @param type the JType representing the actual type * @return The JAnnotationUse. More member value pairs can * be added to it using the same or the overloaded methods. */ public JAnnotationUse param(String name, JType type){ JClass c = type.boxify(); addValue(name, new JAnnotationStringValue ( c.dotclass() )); return this; }
/** * Adds a member value pair to this annotation based on the * type represented by the given JType * * @param name The simple name for this annotation param * @param type the JType representing the actual type * @return The JAnnotationUse. More member value pairs can * be added to it using the same or the overloaded methods. */ public JAnnotationUse param(String name, JType type){ JClass c = type.boxify(); addValue(name, new JAnnotationStringValue ( c.dotclass() )); return this; }
/** * Adds a member value pair to this annotation based on the * type represented by the given JType * * @param name The simple name for this annotation param * @param type the JType representing the actual type * @return The JAnnotationUse. More member value pairs can * be added to it using the same or the overloaded methods. */ public JAnnotationUse param(String name, JType type){ JClass clazz = type.boxify(); addValue(name, new JAnnotationStringValue ( clazz.dotclass() )); return this; }
/** * Adds a member value pair to this annotation based on the * type represented by the given JType * * @param name The simple name for this annotation param * @param type the JType representing the actual type * @return The JAnnotationUse. More member value pairs can * be added to it using the same or the overloaded methods. */ public JAnnotationUse param(String name, JType type){ JClass c = type.boxify(); addValue(name, new JAnnotationStringValue ( c.dotclass() )); return this; }
/** * Adds a member value pair to this annotation based on the * type represented by the given JType * * @param name The simple name for this annotation param * @param type the JType representing the actual type * @return The JAnnotationUse. More member value pairs can * be added to it using the same or the overloaded methods. */ public JAnnotationUse param(String name, JType type){ JClass c = type.boxify(); addValue(name, new JAnnotationStringValue ( c.dotclass() )); return this; }