|
Drools :: Compiler 6.2.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.drools.compiler.lang.descr.BaseDescr
org.drools.compiler.lang.descr.AnnotatedBaseDescr
public class AnnotatedBaseDescr
This is the super type for all pattern AST nodes.
| Constructor Summary | |
|---|---|
AnnotatedBaseDescr()
|
|
| Method Summary | ||
|---|---|---|
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()
|
|
|
getTypedAnnotation(Class<A> annotationClass)
|
|
boolean |
hasAnnotation(Class<? extends Annotation> annotationClass)
|
|
void |
indexByFQN(boolean isStrict)
|
|
void |
readExternal(ObjectInput in)
|
|
void |
writeExternal(ObjectOutput out)
|
|
| Methods inherited from class org.drools.compiler.lang.descr.BaseDescr |
|---|
copyLocation, getColumn, getEndCharacter, getEndColumn, getEndLine, getLine, getNamespace, getResource, getStartCharacter, getText, positionAsString, setEndCharacter, setEndLocation, setLocation, setNamespace, setResource, setStartCharacter, setText |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AnnotatedBaseDescr()
| Method Detail |
|---|
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class BaseDescrIOException
ClassNotFoundException
public 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)
public boolean hasAnnotation(Class<? extends Annotation> annotationClass)
public Set<String> getAnnotationNames()
public Collection<AnnotationDescr> getAnnotations()
public void indexByFQN(boolean isStrict)
|
Drools :: Compiler 6.2.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||