Lines Matching refs:getter
100 * @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 != null),
189 isIs(getter),
190 ImmutableDescriptor.union(Introspector.descriptorForElement(getter),
241 * Indicates if this attribute has an "is" getter.
243 * @return true if this attribute has an "is" getter.
308 private static boolean isIs(Method getter) {
309 return (getter != null &&
310 getter.getName().startsWith("is") &&
311 (getter.getReturnType().equals(Boolean.TYPE) ||
312 getter.getReturnType().equals(Boolean.class)));
318 private static String attributeType(Method getter, Method setter)
322 if (getter != null) {
323 if (getter.getParameterTypes().length != 0) {
324 throw new IntrospectionException("bad getter arg count");
326 type = getter.getReturnType();
328 throw new IntrospectionException("getter " + getter.getName() +
342 "getter and setter");
347 throw new IntrospectionException("getter and setter cannot " +