Searched defs:constructor (Results 1 - 22 of 22) sorted by relevance

/openjdk7/jdk/src/share/classes/sun/reflect/
H A DBootstrapConstructorAccessorImpl.java35 private Constructor constructor; field in class:BootstrapConstructorAccessorImpl
38 this.constructor = c;
46 allocateInstance(constructor.getDeclaringClass());
/openjdk7/langtools/test/tools/javac/annotations/pos/
H A DRightTarget.java68 @interface constructor { interface
71 @constructor constructor1() {}
/openjdk7/jdk/src/share/classes/com/sun/beans/finder/
H A DConstructorFinder.java36 * to find a public constructor with specified parameter types
47 * Finds public constructor
50 * @param type the class that can have constructor
51 * @param args parameter types that is used to find constructor
52 * @return object that represents found constructor
53 * @throws NoSuchMethodException if constructor could not be found
72 Constructor<?> constructor = CACHE.get(signature);
73 if (constructor != null) {
74 return constructor;
76 constructor
99 getParameters(Constructor<?> constructor) argument
113 isVarArgs(Constructor<?> constructor) argument
[all...]
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/org/glassfish/gmbal/util/
H A DGenericConstructor.java36 /** Class that allows any class to be instantiated via any accessible constructor.
47 // Use the raw type of the constructor here, because
48 // MethodInfo can only return a raw type for a constructor.
51 private Constructor constructor ; field in class:GenericConstructor
59 * @param className The name of the class to use for a constructor.
60 * @param signature The signature of the desired constructor.
73 if ((type == null) || (constructor == null)) {
76 constructor = AccessController.doPrivileged(
93 /** Create an instance of type T using the constructor that
94 * matches the given arguments if possible. The constructor
[all...]
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/tools/internal/xjc/generator/bean/field/
H A DGenericFieldRenderer.java42 private Constructor constructor; field in class:GenericFieldRenderer
46 constructor = fieldClass.getDeclaredConstructor(new Class[]{ClassOutlineImpl.class,CPropertyInfo.class});
54 return (FieldOutline)constructor.newInstance(new Object[]{context,prop});
/openjdk7/jdk/src/share/classes/javax/management/
H A DMBeanConstructorInfo.java34 * Describes a constructor exposed by an MBean. Instances of this
64 * @param constructor The <CODE>java.lang.reflect.Constructor</CODE>
65 * object describing the MBean constructor.
67 public MBeanConstructorInfo(String description, Constructor<?> constructor) { argument
68 this(constructor.getName(), description,
69 constructorSignature(constructor),
70 Introspector.descriptorForElement(constructor));
76 * @param name The name of the constructor.
78 * describing the parameters(arguments) of the constructor. This
80 * @param description A human readable description of the constructor
[all...]
/openjdk7/jdk/src/share/classes/java/beans/
H A DDefaultPersistenceDelegate.java42 * The key assumptions are that the class has a nullary constructor
48 * to effect persistent storage for classes that have a constructor
61 private String[] constructor; field in class:DefaultPersistenceDelegate
65 * Creates a persistence delegate for a class with a nullary constructor.
75 * constructor whose arguments are the values of the property
77 * The constructor arguments are created by
79 * To use this class to specify a single preferred constructor for use
81 * names of the properties that make up the constructor's
83 * does not define a nullary constructor can be handled
90 * @param constructorPropertyNames The property names for the arguments of this constructor
[all...]
H A DMetaData.java806 * because this class have no public constructor.
1382 for (Constructor<?> constructor : type.getConstructors()) {
1383 String[] value = getAnnotationValue(constructor);
1384 if ((value != null) && (length < value.length) && isValid(constructor, value)) {
1392 private static String[] getAnnotationValue(Constructor<?> constructor) { argument
1393 ConstructorProperties annotation = constructor.getAnnotation(ConstructorProperties.class);
1399 private static boolean isValid(Constructor<?> constructor, String[] names) { argument
1400 Class[] parameters = constructor.getParameterTypes();
/openjdk7/langtools/src/share/classes/com/sun/tools/doclets/internal/toolkit/
H A DConstructorWriter.java32 * The interface for writing constructor output.
46 * Get the constructor details tree header.
50 * @return content tree for the constructor details header
56 * Get the constructor documentation tree header.
58 * @param constructor the constructor being documented
59 * @param constructorDetailsTree the content tree representing constructor details
60 * @return content tree for the constructor documentation header
62 public Content getConstructorDocTreeHeader(ConstructorDoc constructor, argument
66 * Get the signature for the given constructor
71 getSignature(ConstructorDoc constructor) argument
79 addDeprecated(ConstructorDoc constructor, Content constructorDocTree) argument
87 addComments(ConstructorDoc constructor, Content constructorDocTree) argument
95 addTags(ConstructorDoc constructor, Content constructorDocTree) argument
[all...]
/openjdk7/jdk/src/share/instrument/
H A DJavaExceptions.c120 * and message passed to its constructor
127 jmethodID constructor = NULL; local
140 constructor = (*jnienv)->GetMethodID( jnienv,
149 exception = (*jnienv)->NewObject(jnienv, exceptionClass, constructor, message);
271 * Exception when passed a throwable to its constructor
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/bind/v2/runtime/
H A DElementBeanInfoImpl.java76 private final Constructor<? extends JAXBElement> constructor; field in class:ElementBeanInfoImpl
89 constructor = null;
92 constructor = type.getConstructor(expectedType);
94 NoSuchMethodError x = new NoSuchMethodError("Failed to find the constructor for " + type + " with " + expectedType);
102 * The constructor for the sole instanceof {@link JaxBeanInfo} for
114 constructor = null;
292 if(constructor==null)
295 return constructor.newInstance(o);
/openjdk7/langtools/src/share/classes/com/sun/tools/doclets/formats/html/
H A DConstructorWriterImpl.java37 * Writes constructor documentation.
105 public Content getConstructorDocTreeHeader(ConstructorDoc constructor, argument
108 if ((erasureAnchor = getErasureAnchor(constructor)) != null) {
112 writer.getMarkerAnchor(writer.getAnchor(constructor)));
115 heading.addContent(constructor.name());
123 public Content getSignature(ConstructorDoc constructor) { argument
126 writer.addAnnotationInfo(constructor, pre);
127 addModifiers(constructor, pre);
129 Content constructorName = new StringContent(constructor.name());
130 writer.addSrcLink(constructor, constructorNam
153 addDeprecated(ConstructorDoc constructor, Content constructorDocTree) argument
160 addComments(ConstructorDoc constructor, Content constructorDocTree) argument
167 addTags(ConstructorDoc constructor, Content constructorDocTree) argument
[all...]
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/codemodel/internal/
H A DJDefinedClass.java118 * If this is an anonymous class, this constructor shouldn't be used.
180 * JClass constructor
521 * Adds a constructor to this class.
524 * Modifiers for this constructor
526 public JMethod constructor(int mods) { method in class:JDefinedClass
569 // XXX problems caught in M constructor
649 // XXX problems caught in the NC constructor
/openjdk7/jdk/src/share/classes/java/lang/invoke/
H A DDirectMethodHandle.java371 /** This subclass handles constructor references. */
376 private Constructor(MethodType mtype, LambdaForm form, MemberName constructor, argument
378 super(mtype, form, constructor);
H A DBoundMethodHandle.java70 return (BoundMethodHandle) SpeciesData.EMPTY.extendWithType('L').constructor[0].invokeBasic(type, form, x);
72 return (BoundMethodHandle) SpeciesData.EMPTY.extendWithType('I').constructor[0].invokeBasic(type, form, ValueConversions.widenSubword(x));
74 return (BoundMethodHandle) SpeciesData.EMPTY.extendWithType('J').constructor[0].invokeBasic(type, form, (long) x);
76 return (BoundMethodHandle) SpeciesData.EMPTY.extendWithType('F').constructor[0].invokeBasic(type, form, (float) x);
78 return (BoundMethodHandle) SpeciesData.EMPTY.extendWithType('D').constructor[0].invokeBasic(type, form, (double) x);
223 return (BoundMethodHandle) SPECIES_DATA.extendWithIndex(INDEX_L).constructor[0].invokeBasic(mt, lf, argL0, narg);
227 return (BoundMethodHandle) SPECIES_DATA.extendWithIndex(INDEX_I).constructor[0].invokeBasic(mt, lf, argL0, narg);
231 return (BoundMethodHandle) SPECIES_DATA.extendWithIndex(INDEX_J).constructor[0].invokeBasic(mt, lf, argL0, narg);
235 return (BoundMethodHandle) SPECIES_DATA.extendWithIndex(INDEX_F).constructor[0].invokeBasic(mt, lf, argL0, narg);
239 return (BoundMethodHandle) SPECIES_DATA.extendWithIndex(INDEX_D).constructor[
337 final MethodHandle[] constructor; field in class:BoundMethodHandle.SpeciesData
[all...]
/openjdk7/jdk/src/share/classes/com/sun/jmx/mbeanserver/
H A DDefaultMXBeanMappingFactory.java1083 return "does not have a public no-arg constructor";
1133 /** Builder for when the target class has a constructor that is
1159 return "no constructor has @ConstructorProperties annotation";
1173 // For each constructor, remember the correspondence between its
1174 // parameters and the items. The int[] for a constructor says
1177 // CompositeData goes to parameter 2 of the constructor. If an
1178 // element is -1, that item isn't given to the constructor.
1179 // Also remember the set of properties in that constructor
1189 "Number of constructor params does not match " +
1236 "More than one constructor ha
1346 final Constructor<?> constructor; field in class:DefaultMXBeanMappingFactory.CompositeBuilderViaConstructor.Constr
1349 Constr(Constructor<?> constructor, int[] paramIndexes, BitSet presentParams) argument
[all...]
/openjdk7/jdk/src/share/native/sun/security/smartcardio/
H A Dpcsc.c69 jmethodID constructor; local
74 constructor = (*env)->GetMethodID(env, pcscClass, "<init>", "(I)V");
75 assert(constructor != NULL);
76 pcscException = (jthrowable) (*env)->NewObject(env, pcscClass, constructor, (jint)code);
/openjdk7/hotspot/src/share/vm/opto/
H A Dstringopts.cpp441 // Find the constructor call
453 Node* constructor = NULL; local
461 // Matched the constructor.
485 constructor = use;
489 tty->print("unexpected constructor signature: %s", sig->as_utf8());
496 if (constructor == NULL) {
497 // couldn't find constructor
500 tty->print("giving up because couldn't find constructor ");
507 // Walked all the way back and found the constructor call so see
510 sc->add_control(constructor);
[all...]
/openjdk7/langtools/src/share/classes/com/sun/tools/javac/tree/
H A DJCTree.java1355 public Symbol constructor; field in class:JCTree.JCNewClass
/openjdk7/jdk/src/share/classes/javax/swing/
H A DJTable.java749 * is called from the constructor which then caused
750 * configureEnclosingScrollPane() to be called by the constructor which
5447 java.lang.reflect.Constructor constructor; field in class:JTable.GenericEditor
5464 if (constructor.getDeclaringClass() == String.class) {
5471 value = constructor.newInstance(new Object[]{s});
5489 // String constructor for columns which are declared
5494 constructor = type.getConstructor(argTypes);
6589 * AccessibleJTable constructor
/openjdk7/hotspot/src/share/vm/classfile/
H A DclassFileParser.cpp639 "Bad constructor name at constant pool index %u in class file %s",
3888 // Check if this klass has a vanilla default constructor
3890 // java.lang.Object has empty default constructor
3900 methodOop constructor = k->find_method(vmSymbols::object_initializer_name( local
3902 if (constructor != NULL && constructor->is_vanilla_constructor()) {
H A DjavaClasses.cpp697 oop constructor = java_class->obj_field(_resolved_constructor_offset); local
698 assert(constructor == NULL || constructor->is_method(), "should be method");
699 return methodOop(constructor);
703 void java_lang_Class::set_resolved_constructor(oop java_class, methodOop constructor) { argument
704 assert(constructor->is_method(), "should be method");
705 java_class->obj_field_put(_resolved_constructor_offset, constructor);
1354 // constructor for new backtrace
1975 oop java_lang_reflect_Constructor::parameter_types(oop constructor) { argument
1977 return constructor
1980 set_parameter_types(oop constructor, oop value) argument
1985 exception_types(oop constructor) argument
1990 set_exception_types(oop constructor, oop value) argument
2005 modifiers(oop constructor) argument
2010 set_modifiers(oop constructor, int value) argument
2019 signature(oop constructor) argument
2025 set_signature(oop constructor, oop value) argument
2035 annotations(oop constructor) argument
2041 set_annotations(oop constructor, oop value) argument
[all...]

Completed in 228 milliseconds