325N/A * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved. 325N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 325N/A * This code is free software; you can redistribute it and/or modify it 325N/A * under the terms of the GNU General Public License version 2 only, as 325N/A * published by the Free Software Foundation. Oracle designates this 325N/A * particular file as subject to the "Classpath" exception as provided 325N/A * by Oracle in the LICENSE file that accompanied this code. 325N/A * This code is distributed in the hope that it will be useful, but WITHOUT 325N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 325N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 325N/A * version 2 for more details (a copy is included in the LICENSE file that 325N/A * accompanied this code). 325N/A * You should have received a copy of the GNU General Public License version 325N/A * 2 along with this work; if not, write to the Free Software Foundation, 325N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 325N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 325N/A * or visit www.oracle.com if you need additional information or have any 325N/A * Represents an annotation on a program element. 325N/A * How to add enums to the annotations 325N/A * Bhakti Mehta (bhakti.mehta@sun.com) 325N/A * The {@link Annotation} class 325N/A * Map of member values. 325N/A // Use ordered map to keep the code generation the same on any JVM. 325N/A * Adds a member value pair to this annotation 325N/A * The simple name for this annotation 325N/A * The boolean value for this annotation 325N/A * The JAnnotationUse. More member value pairs can 325N/A * be added to it using the same or the overloaded methods. 325N/A * Adds a member value pair to this annotation 325N/A * The simple name for this annotation 325N/A * The byte member value for this annotation 325N/A * The JAnnotationUse. More member value pairs can 325N/A * be added to it using the same or the overloaded methods. 325N/A * Adds a member value pair to this annotation 325N/A * The simple name for this annotation 325N/A * The char member value for this annotation 325N/A * The JAnnotationUse. More member value pairs can 325N/A * be added to it using the same or the overloaded methods. 325N/A * Adds a member value pair to this annotation 325N/A * The simple name for this annotation 325N/A * The double member value for this annotation 325N/A * The JAnnotationUse. More member value pairs can 325N/A * be added to it using the same or the overloaded methods. 325N/A * Adds a member value pair to this annotation 325N/A * The simple name for this annotation 325N/A * The float member value for this annotation 325N/A * The JAnnotationUse. More member value pairs can 325N/A * be added to it using the same or the overloaded methods. 325N/A * Adds a member value pair to this annotation 325N/A * The simple name for this annotation 325N/A * The long member value for this annotation 325N/A * The JAnnotationUse. More member value pairs can 325N/A * be added to it using the same or the overloaded methods. 325N/A * Adds a member value pair to this annotation 325N/A * The simple name for this annotation 325N/A * The short member value for this annotation 325N/A * The JAnnotationUse. More member value pairs can 325N/A * be added to it using the same or the overloaded methods. 325N/A * Adds a member value pair to this annotation 325N/A * The simple name for this annotation 325N/A * The int member value for this annotation 325N/A * The JAnnotationUse. More member value pairs can 325N/A * be added to it using the same or the overloaded methods. 325N/A * Adds a member value pair to this annotation 325N/A * The simple name for this annotation 325N/A * The String member value for this annotation 325N/A * The JAnnotationUse. More member value pairs can 325N/A * be added to it using the same or the overloaded methods. 325N/A //Escape string values with quotes so that they can 325N/A //be generated accordingly 325N/A * Adds a member value pair to this annotation 325N/A * For adding class values as param 325N/A * @see #param(String, Class) 325N/A * The simple name for this annotation 325N/A * The annotation class which is member value for this annotation 325N/A * The JAnnotationUse. More member value pairs can 325N/A * be added to it using the same or the overloaded methods. 325N/A * Adds a member value pair to this annotation 325N/A * The simple name for this annotation 325N/A * The enum class which is member value for this annotation 325N/A * The JAnnotationUse. More member value pairs can 325N/A * be added to it using the same or the overloaded methods. 325N/A * Adds a member value pair to this annotation 325N/A * The simple name for this annotation 325N/A * The JEnumConstant which is member value for this annotation 325N/A * The JAnnotationUse. More member value pairs can 325N/A * be added to it using the same or the overloaded methods. 325N/A * Adds a member value pair to this annotation 325N/A * This can be used for e.g to specify 325N/A * @XmlCollectionItem(type=Integer.class); 325N/A * For adding a value of Class<? extends Annotation> 325N/A * #annotationParam(java.lang.String, java.lang.Class<? extends java.lang.annotation.Annotation>) 325N/A * The simple name for this annotation param 325N/A * The class type of the param 325N/A * The JAnnotationUse. More member value pairs can 325N/A * be added to it using the same or the overloaded methods. 325N/A * Adds a member value pair to this annotation based on the 325N/A * type represented by the given JType 325N/A * @param name The simple name for this annotation param 325N/A * @param type the JType representing the actual type 325N/A * @return The JAnnotationUse. More member value pairs can 325N/A * be added to it using the same or the overloaded methods. 325N/A * Adds a member value pair to this annotation. 325N/A * The simple name for this annotation 325N/A * The JExpression which provides the contant value for this annotation 325N/A * The JAnnotationUse. More member value pairs can 325N/A * be added to it using the same or the overloaded methods. 325N/A * Adds a member value pair which is of type array to this annotation 325N/A * The simple name for this annotation 325N/A * The JAnnotationArrayMember. For adding array values 325N/A * @see JAnnotationArrayMember 325N/A// * This can be used to add annotations inside annotations 325N/A// * for e.g @XmlCollection(values= @XmlCollectionItem(type=Foo.class)) 325N/A// * The classname of the annotation to be included 325N/A// * The JAnnotationUse that can be used as a member within this JAnnotationUse 325N/A// * use {@link JAnnotationArrayMember#annotate} 325N/A// public JAnnotationUse annotate(String className) { 325N/A// JAnnotationUse annotationUse = new JAnnotationUse(owner().ref(className)); 325N/A// return annotationUse; 325N/A * This can be used to add annotations inside annotations 325N/A * for e.g @XmlCollection(values= @XmlCollectionItem(type=Foo.class)) 325N/A * The annotation class to be included 325N/A * The JAnnotationUse that can be used as a member within this JAnnotationUse 325N/A * use {@link JAnnotationArrayMember#annotate}