public abstract class Annotated extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Annotated.Type |
| Modifier | Constructor and Description |
|---|---|
protected |
Annotated(String annotation,
String className,
boolean isRuntime,
File file)
Creates a new Annotated instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object) |
String |
getAnnotation()
Returns class name of the annotation referenced.
|
String |
getClassName()
Returns the annotated class name.
|
File |
getFile()
Returns the file containing the annotated class.
|
abstract Annotated.Type |
getType()
Return the class element type.
|
int |
hashCode() |
static boolean |
isClass(Annotated annotated)
Returns true if the annotation is referenced by a class.
|
static boolean |
isField(Annotated annotated)
Returns true if the annotation is referenced by a field.
|
static boolean |
isMethod(Annotated annotated)
Returns true if the annotation is referenced by a method.
|
boolean |
isRuntime()
Returns if this annotation is available at runtime.
|
public static boolean isClass(Annotated annotated)
public static boolean isMethod(Annotated annotated)
public static boolean isField(Annotated annotated)
public abstract Annotated.Type getType()
public String getAnnotation()
public String getClassName()
public boolean isRuntime()
public File getFile()
Copyright © 2025 The Cornutum Project. All rights reserved.