public class ReadMethod extends java.lang.Object implements Attribute.AttributeReader
v2.1.1 Gordio - SERVICE PACK 1
project Ardulink http://www.ardulink.org/Constructor and Description |
---|
ReadMethod(java.lang.Object bean,
java.lang.String name,
java.lang.reflect.Method readMethod) |
Modifier and Type | Method and Description |
---|---|
void |
addAnnotations(java.util.Collection<java.lang.annotation.Annotation> annotations) |
java.lang.String |
getName() |
java.lang.Class<?> |
getType() |
java.lang.Object |
getValue() |
static boolean |
isReadMethod(java.lang.reflect.Method method) |
public ReadMethod(java.lang.Object bean, java.lang.String name, java.lang.reflect.Method readMethod)
public java.lang.Object getValue() throws java.lang.IllegalArgumentException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
getValue
in interface Attribute.AttributeReader
java.lang.IllegalArgumentException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
public java.lang.Class<?> getType()
getType
in interface Attribute.TypedAttributeProvider
public java.lang.String getName()
getName
in interface Attribute.TypedAttributeProvider
public void addAnnotations(java.util.Collection<java.lang.annotation.Annotation> annotations)
addAnnotations
in interface Attribute.AttributeReader
public static boolean isReadMethod(java.lang.reflect.Method method)
Copyright © 2019. All rights reserved.