bee.task
AnnotationValidator
<A
>
A
>kiss.Extensible
AnnotationValidator
()
validate
(A
annotation
)
void
A
annotation
)A annotation |
An target annotation to validate. |
Validate an annotation value.
getClassName
()
String
String |
Returns the fully qualified class name of the annotated element.
isSubClassOf
(Class
type
)
boolean
Class
type
)Class type |
|
boolean |
Detecte the root element is sub class of the specified class or not.
getSourceFile
()
Path
Path |
A path to source file. |
Compute source file path.
getDocument
()
String
String |
A documentation comment of the source code, or empty string if there is none |
Returns the text of the documentation ("Javadoc") comment of an element.
A documentation comment of an element is a comment that begins with "/**" , ends with a separate "* /", and immediately precedes the element, ignoring white space. Therefore, a documentation comment contains at least three"*" characters. The text returned for the documentation comment is a processed form of the comment as it appears in source code. The leading "/**" and trailing "* /" are removed. For lines of the comment starting after the initial "/**", leading white space characters are discarded as are any consecutive "*" characters appearing after the white space or starting the line. The processed lines are then concatenated together (including line terminators) and returned.
notice
(Object
messages
)
void
Object
messages
)Object messages |
Your message. |
Talk to user.
warn
(Object
messages
)
void
Object
messages
)Object messages |
Your warning message. |
Warn to user.
error
(Object
messages
)
void
Object
messages
)Object messages |
Your emergency message. |
Declare a state of emergency.