|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.drools.lang.descr.BaseDescr
org.drools.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 |
AnnotationDescr |
addAnnotation(String name,
String value)
Assigns a new annotation to this type with the respective name and value |
AnnotationDescr |
getAnnotation(String name)
Returns the annotation with the given name |
Set<String> |
getAnnotationNames()
Returns the set of annotation names for this type |
Map<String,AnnotationDescr> |
getAnnotations()
|
void |
readExternal(ObjectInput in)
|
void |
writeExternal(ObjectOutput out)
|
Methods inherited from class org.drools.lang.descr.BaseDescr |
---|
getColumn, getEndCharacter, getEndColumn, getEndLine, getLine, getStartCharacter, getText, setEndCharacter, setEndLocation, setLocation, 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 Externalizable
readExternal
in class BaseDescr
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class BaseDescr
IOException
public AnnotationDescr addAnnotation(AnnotationDescr annotation)
annotation
-
public AnnotationDescr addAnnotation(String name, String value)
name
- value
-
public AnnotationDescr getAnnotation(String name)
name
- public Set<String> getAnnotationNames()
public Map<String,AnnotationDescr> getAnnotations()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |