Searched refs:getter (Results 1 - 25 of 99) sorted by relevance

1234

/openjdk9/nashorn/test/script/basic/
H A DNASHORN-426.js33 function getter() { function
43 get: getter,
H A DNASHORN-416.js25 * NASHORN-416 : Setting setter method using defineProperty erases old getter method
33 function getter() { return 32; }
36 { get: getter, configurable: true });
45 if (desc.get !== getter) {
46 fail("desc.get !== getter");
/openjdk9/langtools/test/tools/javac/lambda/
H A DMostSpecific10.java44 void m(GetInt getter) {} argument
45 void m(GetInteger getter) { argument
46 throw new AssertionError("Less-specific method invocation: " + getter.getClass());
H A DMethodReference01.java56 void sortBy(List<T> s, final Getter<U, T> getter) { argument
59 return getter.get(t1).compareTo(getter.get(t2));
/openjdk9/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/client/sei/
H A DMessageFiller.java76 protected final ValueGetter getter; field in class:MessageFiller.AttachmentFiller
80 protected AttachmentFiller(ParameterImpl param, ValueGetter getter) { argument
83 this.getter = getter;
97 * @param getter
101 public static MessageFiller createAttachmentFiller(ParameterImpl param, ValueGetter getter) { argument
104 return new DataHandlerFiller(param, getter);
106 return new ByteArrayFiller(param, getter);
108 return new JAXBFiller(param, getter);
110 return new DataHandlerFiller(param, getter);
120 ByteArrayFiller(ParameterImpl param, ValueGetter getter) argument
132 DataHandlerFiller(ParameterImpl param, ValueGetter getter) argument
145 JAXBFiller(ParameterImpl param, ValueGetter getter) argument
161 private final ValueGetter getter; field in class:MessageFiller.Header
163 Header(int methodPos, XMLBridge bridge, ValueGetter getter) argument
[all...]
H A DBodyBuilder.java107 private final ValueGetter getter; field in class:BodyBuilder.Bare
112 Bare(ParameterImpl p, SOAPVersion soapVersion, ValueGetter getter) { argument
115 this.getter = getter;
122 return getter.get(methodArgs[methodPos]);
154 protected Wrapped(WrapperParameter wp, SOAPVersion soapVersion, ValueGetterFactory getter) { argument
162 getters[i] = getter.get(p);
212 DocLit(WrapperParameter wp, SOAPVersion soapVersion, ValueGetterFactory getter) { argument
213 super(wp, soapVersion, getter);
284 RpcLit(WrapperParameter wp, SOAPVersion soapVersion, ValueGetterFactory getter) { argument
[all...]
/openjdk9/nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/ir/
H A DPropertyNode.java44 /** Property getter. */
45 private final FunctionNode getter; field in class:PropertyNode
47 /** Property getter. */
63 * @param getter getter function body
68 public PropertyNode(final long token, final int finish, final Expression key, final Expression value, final FunctionNode getter, final FunctionNode setter, final boolean isStatic, final boolean computed) { argument
72 this.getter = getter;
78 private PropertyNode(final PropertyNode propertyNode, final Expression key, final Expression value, final FunctionNode getter, final FunctionNode setter, final boolean isStatic, final boolean computed) { argument
82 this.getter
145 setGetter(final FunctionNode getter) argument
[all...]
/openjdk9/jaxws/src/java.xml.bind/share/classes/com/sun/xml/internal/bind/v2/model/impl/
H A DGetterSetterPropertySeed.java36 * {@link PropertyInfo} implementation backed by a getter and a setter.
38 * We allow the getter or setter to be null, in which case the bean
44 protected final MethodT getter; field in class:GetterSetterPropertySeed
48 GetterSetterPropertySeed(ClassInfoImpl<TypeT,ClassDeclT,FieldT,MethodT> parent, MethodT getter, MethodT setter) { argument
50 this.getter = getter;
53 if(getter==null && setter==null)
58 if(getter!=null)
59 return parent.nav().getReturnType(getter);
65 return parent.reader().getMethodAnnotation(annotation, getter,sette
[all...]
/openjdk9/jaxws/src/java.xml.bind/share/classes/com/sun/xml/internal/bind/v2/model/annotation/
H A DAbstractInlineAnnotationReaderImpl.java60 public final <A extends Annotation> A getMethodAnnotation(Class<A> annotation, M getter, M setter, Locatable srcPos) { argument
61 A a1 = getter==null?null:getMethodAnnotation(annotation,getter,srcPos);
76 annotation.getName(), fullName(getter),fullName(setter)),
84 public boolean hasMethodAnnotation(Class<? extends Annotation> annotation, String propertyName, M getter, M setter, Locatable srcPos) { argument
85 boolean x = ( getter != null && hasMethodAnnotation(annotation, getter) );
90 getMethodAnnotation(annotation,getter,setter,srcPos);
/openjdk9/jdk/src/java.management/share/classes/javax/management/
H A DMBeanAttributeInfo.java100 * @param isReadable True if the attribute has a getter method, false otherwise.
102 * @param isIs True if this attribute has an "is" getter, false otherwise.
126 * @param isReadable True if the attribute has a getter method, false otherwise.
128 * @param isIs True if this attribute has an "is" getter, false otherwise.
153 throw new IllegalArgumentException("Cannot have an \"is\" getter " +
158 throw new IllegalArgumentException("Cannot have an \"is\" getter " +
173 * @param getter The method used for reading the attribute value.
182 Method getter,
185 attributeType(getter, setter),
187 (getter !
180 MBeanAttributeInfo(String name, String description, Method getter, Method setter) argument
308 isIs(Method getter) argument
318 attributeType(Method getter, Method setter) argument
[all...]
/openjdk9/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/server/sei/
H A DMessageFiller.java75 protected final ValueGetter getter; field in class:MessageFiller.AttachmentFiller
79 protected AttachmentFiller(ParameterImpl param, ValueGetter getter) { argument
82 this.getter = getter;
96 * @param getter
100 public static MessageFiller createAttachmentFiller(ParameterImpl param, ValueGetter getter) { argument
103 return new DataHandlerFiller(param, getter);
105 return new ByteArrayFiller(param, getter);
107 return new JAXBFiller(param, getter);
109 return new DataHandlerFiller(param, getter);
119 ByteArrayFiller(ParameterImpl param, ValueGetter getter) argument
134 DataHandlerFiller(ParameterImpl param, ValueGetter getter) argument
148 JAXBFiller(ParameterImpl param, ValueGetter getter) argument
165 private final ValueGetter getter; field in class:MessageFiller.Header
167 Header(int methodPos, XMLBridge bridge, ValueGetter getter) argument
[all...]
/openjdk9/hotspot/test/compiler/oracle/
H A DGetMethodOptionTest.java58 BiFunction<Executable, String, Object> getter = WB::getMethodOption;
62 Asserts.assertEQ(expected, getter.apply(test, name),
63 testCase + ": universal getter returns wrong value");
64 Asserts.assertEQ(expected, testCase.getter.apply(test, name),
65 testCase + ": specific getter returns wrong value");
66 Asserts.assertEQ(null, getter.apply(test2, name),
67 testCase + ": universal getter returns value for unused method");
68 Asserts.assertEQ(null, testCase.getter.apply(test2, name),
69 testCase + ": type specific getter returns value for unused method");
91 public final BiFunction<Executable, String, Object> getter; field in class:GetMethodOptionTest.TestCase
92 TestCase(Object value, BiFunction<Executable, String, Object> getter) argument
[all...]
/openjdk9/nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/api/tree/
H A DPropertyTreeImpl.java33 private final FunctionExpressionTree getter; field in class:PropertyTreeImpl
40 final FunctionExpressionTree getter,
45 this.getter = getter;
68 return getter;
37 PropertyTreeImpl(final PropertyNode node, final ExpressionTree key, final ExpressionTree value, final FunctionExpressionTree getter, final FunctionExpressionTree setter) argument
/openjdk9/nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/linker/
H A DInvokeByName.java63 private final MethodHandle getter; field in class:InvokeByName
67 * Creates a getter and invoker for a function of the given name that takes no arguments and has a return type of
77 * Creates a getter and invoker for a function of the given name with given parameter types and a given return type
86 getter = Bootstrap.createDynamicInvoker(name, NashornCallSiteDescriptor.GET_METHOD_PROPERTY, Object.class, targetClass);
110 * Returns the property getter that can be invoked on an object to retrieve the function object that will be
112 * @return the property getter method handle for the function.
115 return getter;
120 * the getter retrieved with {@link #getGetter()} on the target object.
/openjdk9/jdk/src/java.desktop/unix/classes/sun/awt/X11/
H A DXAtom.java370 WindowPropertyGetter getter =
374 int status = getter.execute();
375 if (status != XConstants.Success || getter.getData() == 0) {
378 if (getter.getActualType() != property_type || getter.getActualFormat() != 32) {
381 return Native.getCard32(getter.getData());
383 getter.dispose();
432 WindowPropertyGetter getter =
436 int status = getter.execute();
437 if (status != XConstants.Success || getter
[all...]
H A DXAWTXSettings.java136 WindowPropertyGetter getter =
140 int status = getter.execute(XErrorHandler.IgnoreBadWindowHandler.getInstance());
142 if (status != XConstants.Success || getter.getData() == 0) {
144 log.fine("OH OH : getter failed status = " + status );
149 long ptr = getter.getData();
152 log.fine("noItems = " + getter.getNumberOfItems());
154 byte array[] = Native.toBytes(ptr,getter.getNumberOfItems());
159 getter.dispose();
/openjdk9/jaxws/src/java.xml.bind/share/classes/com/sun/xml/internal/bind/
H A DAccessorFactoryImpl.java77 * @param getter the getter method to be accessed. The value can be null.
81 public Accessor createPropertyAccessor(Class bean, Method getter, Method setter) { argument
82 if (getter == null) {
86 return new Accessor.GetterOnlyReflection(getter);
88 return new Accessor.GetterSetterReflection(getter, setter);
H A DAccessorFactory.java56 * @param getter the getter method to be accessed. The value can be null.
62 Accessor createPropertyAccessor(Class bean, Method getter, Method setter) throws JAXBException; argument
/openjdk9/nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/
H A DFindProperty.java75 * Ask for a getter that returns the given type. The type has nothing to do with the
80 * @param type type of getter, e.g. int.class if we want a function with {@code get()I} signature
84 * @return method handle for the getter
87 MethodHandle getter;
89 getter = property.getOptimisticGetter(type, programPoint);
91 getter = property.getGetter(type);
94 getter = MH.insertArguments(getter, 1, UserAccessorProperty.getINVOKE_UA_GETTER(type, programPoint));
96 getter = MH.insertArguments(getter,
[all...]
H A DUserAccessorProperty.java42 * Property with user defined getters/setters. Actual getter and setter
51 Object getter; field in class:UserAccessorProperty.Accessors
54 Accessors(final Object getter, final Object setter) { argument
55 set(getter, setter);
58 final void set(final Object getter, final Object setter) { argument
59 this.getter = getter;
65 return "[getter=" + getter + " setter=" + setter + ']';
146 //invoke the getter an
[all...]
/openjdk9/jaxws/src/java.xml.bind/share/classes/com/sun/xml/internal/bind/v2/runtime/reflect/opt/
H A DOptimizedAccessorFactory.java62 * Gets the optimized {@link Accessor} that accesses the given getter/setter.
67 public static final <B,V> Accessor<B,V> get(Method getter, Method setter) { argument
69 if(getter.getParameterTypes().length!=0)
74 if(sparams[0]!=getter.getReturnType())
78 if(getter.getDeclaringClass()!=setter.getDeclaringClass())
80 if(Modifier.isPrivate(getter.getModifiers()) || Modifier.isPrivate(setter.getModifiers()))
96 String newClassName = toVMClassName(getter.getDeclaringClass())+"$JaxbAccessorM_"+getter.getName()+'_'+setter.getName()+'_'+typeName;
100 opt = AccessorInjector.prepare( getter.getDeclaringClass(),
104 toVMClassName(getter
[all...]
/openjdk9/jdk/src/java.base/share/classes/sun/util/locale/provider/
H A DHostLocaleProviderAdapter.java52 Method getter = HostLocaleProviderAdapterImpl.class.getMethod(
54 return (P)getter.invoke(null, (Object[]) null);
/openjdk9/jdk/test/java/beans/Introspector/
H A DTest6707231.java29 * @summary Tests the boolean getter
74 Class<?> getter = pd.getReadMethod().getDeclaringClass();
76 if ((getter != expected) || (setter != expected)) {
/openjdk9/jdk/test/com/sun/management/OperatingSystemMXBean/
H A DMemoryStatusOverflow.java53 Method getter = OperatingSystemMXBean.class.getMethod(getterName);
54 long value = (Long) getter.invoke(bean);
/openjdk9/jdk/src/jdk.rmic/share/classes/sun/tools/tree/
H A DFieldUpdater.java35 * reference to the object to which the field belongs is associated with getter and
60 // Expression denoting the object to which the getter and setter are applied.
66 // The getter and setter methods, generated by 'getAccessMember' and 'getUpdateMember'.
67 private MemberDefinition getter; field in class:FieldUpdater
79 Expression base, MemberDefinition getter, MemberDefinition setter) {
83 this.getter = getter;
106 return new FieldUpdater(where, field, base.copyInline(ctx), getter, setter);
111 int cost = needGet ? 7 : 3; // getter needs extra invokestatic + dup
172 if (!(getter
78 FieldUpdater(long where, MemberDefinition field, Expression base, MemberDefinition getter, MemberDefinition setter) argument
[all...]

Completed in 588 milliseconds

1234