public abstract class BaseTrait extends Object implements Trait
Handles construction, and returning names.
Modifier and Type | Method and Description |
---|---|
String |
getName() |
boolean |
isAnnotationPresent(Class<? extends Annotation> annotation)
Returns true if an annotation for the specified type is present on this element, else false.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAnnotation
public BaseTrait(String name)
public boolean isAnnotationPresent(Class<? extends Annotation> annotation)
Trait
Note: for subclasses, whether true is returned for annotations defined by the superclass is
decided by the java.lang.annotation.Inherited
annotation.
isAnnotationPresent
in interface Trait
Copyright © 2015. All Rights Reserved.