org.simantics.databoard.binding.reflection
Class BindingRequest
java.lang.Object
org.simantics.databoard.binding.reflection.BindingRequest
public class BindingRequest
- extends java.lang.Object
Field Summary |
java.lang.annotation.Annotation[] |
annotations
Annotations |
java.lang.Class<?> |
clazz
Requested class |
java.lang.annotation.Annotation[] |
NO_ANNOTATIONS
|
Constructor Summary |
BindingRequest(java.lang.Class<?> clazz,
java.lang.annotation.Annotation... annotations)
|
Method Summary |
java.lang.annotation.Annotation[] |
dropAnnotations(int argumentsToDrop,
java.lang.annotation.Annotation... annotationsToDrop)
Return a version of annotations list, where given set of annotations and
a number of class arguments were dropped. |
boolean |
equals(java.lang.Object obj)
|
<A extends java.lang.annotation.Annotation>
A |
|
getAnnotation(java.lang.Class<A> annotationClass)
|
boolean |
hasAnnotation(java.lang.Class<?> annotationClass)
|
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
clazz
public final java.lang.Class<?> clazz
- Requested class
annotations
public final java.lang.annotation.Annotation[] annotations
- Annotations
NO_ANNOTATIONS
public final java.lang.annotation.Annotation[] NO_ANNOTATIONS
BindingRequest
public BindingRequest(java.lang.Class<?> clazz,
java.lang.annotation.Annotation... annotations)
hasAnnotation
public boolean hasAnnotation(java.lang.Class<?> annotationClass)
getAnnotation
public <A extends java.lang.annotation.Annotation> A getAnnotation(java.lang.Class<A> annotationClass)
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
dropAnnotations
public java.lang.annotation.Annotation[] dropAnnotations(int argumentsToDrop,
java.lang.annotation.Annotation... annotationsToDrop)
- Return a version of annotations list, where given set of annotations and
a number of class arguments were dropped.
- Parameters:
argumentsToDrop
- the number of class arguments to dropannotationsToDrop
- annotation to drop
- Returns:
- request without argument annotation
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object