@Immutable public class SourcePosition extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
SourcePosition(@Nonnull Element element,
@Nullable AnnotationMirror annotationMirror,
@Nullable AnnotationValue annotationValue) |
| Modifier and Type | Method and Description |
|---|---|
@Nullable AnnotationMirror |
getAnnotationMirror()
Returns the annotation mirror of this position.
|
@Nullable AnnotationValue |
getAnnotationValue()
Returns the annotation value of this position.
|
@Nonnull Element |
getElement()
Returns the element of this position.
|
static @Nonnull SourcePosition |
of(@Nonnull Element element)
Returns a source position with the given element.
|
static @Nonnull SourcePosition |
of(@Nonnull Element element,
@Nonnull AnnotationMirror annotationMirror)
Returns a source position with the given arguments.
|
static @Nonnull SourcePosition |
of(@Nonnull Element element,
@Nonnull AnnotationMirror annotationMirror,
@Nonnull AnnotationValue annotationValue)
Returns a source position with the given arguments.
|
@Nonnull String |
toString() |
protected SourcePosition(@Nonnull @Nonnull Element element, @Nullable @Nullable AnnotationMirror annotationMirror, @Nullable @Nullable AnnotationValue annotationValue)
@Pure @Nonnull public @Nonnull Element getElement()
@Pure @Nullable public @Nullable AnnotationMirror getAnnotationMirror()
@Pure @Nullable public @Nullable AnnotationValue getAnnotationValue()
@Pure @Nonnull public static @Nonnull SourcePosition of(@Nonnull @Nonnull Element element, @Nonnull @Nonnull AnnotationMirror annotationMirror, @Nonnull @Nonnull AnnotationValue annotationValue)
@Pure @Nonnull public static @Nonnull SourcePosition of(@Nonnull @Nonnull Element element, @Nonnull @Nonnull AnnotationMirror annotationMirror)
@Pure @Nonnull public static @Nonnull SourcePosition of(@Nonnull @Nonnull Element element)
Copyright © 2017. All rights reserved.