public class AnnotatedBaseDescr extends BaseDescr implements org.drools.core.rule.Annotated, Externalizable
| Constructor and Description |
|---|
AnnotatedBaseDescr() |
| Modifier and Type | Method and Description |
|---|---|
AnnotationDescr |
addAnnotation(AnnotationDescr annotation)
Assigns a new annotation to this type
|
protected AnnotationDescr |
addAnnotation(String name,
AnnotationDescr annotation) |
AnnotationDescr |
addAnnotation(String name,
String value)
Assigns a new annotation to this type with the respective name and value
|
AnnotationDescr |
addQualifiedAnnotation(AnnotationDescr annotation) |
AnnotationDescr |
getAnnotation(Class<? extends Annotation> annotationClass) |
AnnotationDescr |
getAnnotation(String name)
Returns the annotation with the given name
|
Set<String> |
getAnnotationNames()
Returns the set of annotation names for this type
|
Collection<AnnotationDescr> |
getAnnotations() |
<A extends Annotation> |
getTypedAnnotation(Class<A> annotationClass) |
boolean |
hasAnnotation(Class<? extends Annotation> annotationClass) |
void |
indexByFQN(boolean isStrict) |
void |
readExternal(ObjectInput in) |
void |
writeExternal(ObjectOutput out) |
accept, copyLocation, getColumn, getEndCharacter, getEndColumn, getEndLine, getLine, getNamespace, getResource, getStartCharacter, getText, isNegated, negate, positionAsString, replaceVariable, setEndCharacter, setEndLocation, setLocation, setNamespace, setResource, setStartCharacter, setTextpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class BaseDescrIOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class BaseDescrIOExceptionpublic AnnotationDescr addAnnotation(AnnotationDescr annotation)
annotation - public AnnotationDescr addQualifiedAnnotation(AnnotationDescr annotation)
protected AnnotationDescr addAnnotation(String name, AnnotationDescr annotation)
public AnnotationDescr addAnnotation(String name, String value)
name - value - public AnnotationDescr getAnnotation(String name)
name - public AnnotationDescr getAnnotation(Class<? extends Annotation> annotationClass)
public <A extends Annotation> A getTypedAnnotation(Class<A> annotationClass)
getTypedAnnotation in interface org.drools.core.rule.Annotatedpublic boolean hasAnnotation(Class<? extends Annotation> annotationClass)
hasAnnotation in interface org.drools.core.rule.Annotatedpublic Set<String> getAnnotationNames()
public Collection<AnnotationDescr> getAnnotations()
public void indexByFQN(boolean isStrict)
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.