S - self boundpublic abstract class MemberSignature<S extends MemberSignature<S>> extends java.lang.Object implements AnnotatedSignature<S>
| Modifier | Constructor and Description |
|---|---|
protected |
MemberSignature(java.lang.String name) |
protected |
MemberSignature(java.lang.String name,
java.util.Set<java.lang.annotation.Annotation> annotations,
Modifiers modifiers) |
| Modifier and Type | Method and Description |
|---|---|
S |
annotated(java.util.Collection<? extends java.lang.annotation.Annotation> annotations)
Derive a version of this declaration with the given annotations.
|
java.util.stream.Stream<? extends java.lang.annotation.Annotation> |
getAnnotations() |
Modifiers |
getModifiers() |
java.lang.String |
getName() |
protected abstract S |
withMemberSignatureData(java.lang.String name,
java.util.Set<java.lang.annotation.Annotation> annotations,
Modifiers modifiers) |
protected S |
withModifiers(Modifiers modifiers) |
S |
withVisibility(Visibility visibility) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitannotatedprotected MemberSignature(java.lang.String name)
name - the name of the declared type parameterprotected MemberSignature(java.lang.String name,
java.util.Set<java.lang.annotation.Annotation> annotations,
Modifiers modifiers)
protected abstract S withMemberSignatureData(java.lang.String name, java.util.Set<java.lang.annotation.Annotation> annotations, Modifiers modifiers)
public java.util.stream.Stream<? extends java.lang.annotation.Annotation> getAnnotations()
getAnnotations in interface AnnotatedSignature<S extends MemberSignature<S>>public S annotated(java.util.Collection<? extends java.lang.annotation.Annotation> annotations)
AnnotatedSignatureTarget, as there is no validation of
applicability.
Annotations already present on the receiving declaration will be replaced rather than appended.
annotated in interface AnnotatedSignature<S extends MemberSignature<S>>annotations - the annotations with which to annotate this declarationpublic java.lang.String getName()
public Modifiers getModifiers()
public S withVisibility(Visibility visibility)