Package org.drools.drl.ast.descr
Class AnnotatedBaseDescr
java.lang.Object
org.drools.drl.ast.descr.BaseDescr
org.drools.drl.ast.descr.AnnotatedBaseDescr
- All Implemented Interfaces:
Externalizable,Serializable,Namespaceable
- Direct Known Subclasses:
AbstractClassTypeDeclarationDescr,AndDescr,AnnotationDescr,ConstraintConnectiveDescr,EntryPointDeclarationDescr,EnumLiteralDescr,ExistsDescr,NotDescr,OrDescr,PatternDescr,RuleDescr,TypeFieldDescr,WindowDeclarationDescr
This is the super type for all pattern AST nodes.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAnnotation(String name, String value) Assigns a new annotation to this type with the respective name and valueprotected AnnotationDescraddAnnotation(String name, AnnotationDescr annotation) addAnnotation(AnnotationDescr annotation) Assigns a new annotation to this typeaddQualifiedAnnotation(AnnotationDescr annotation) getAnnotation(Class<? extends Annotation> annotationClass) getAnnotation(String name) Returns the annotation with the given nameReturns the set of annotation names for this typebooleanhasAnnotation(Class<? extends Annotation> annotationClass) booleanhasAnnotation(String name) voidindexByFQN(boolean isStrict) voidvoidMethods inherited from class org.drools.drl.ast.descr.BaseDescr
accept, copyLocation, getColumn, getEndCharacter, getEndColumn, getEndLine, getLine, getNamespace, getResource, getStartCharacter, getText, isNegated, negate, positionAsString, replaceVariable, setEndCharacter, setEndLocation, setLocation, setNamespace, setResource, setStartCharacter, setText
-
Constructor Details
-
AnnotatedBaseDescr
public AnnotatedBaseDescr()
-
-
Method Details
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classBaseDescr- Throws:
IOExceptionClassNotFoundException
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classBaseDescr- Throws:
IOException
-
addAnnotation
Assigns a new annotation to this type- Parameters:
annotation-- Returns:
- returns the previous value of this annotation
-
addQualifiedAnnotation
-
addAnnotation
-
addAnnotation
Assigns a new annotation to this type with the respective name and value- Parameters:
name-value-- Returns:
- returns the previous value of this annotation
-
getAnnotation
Returns the annotation with the given name- Parameters:
name-
-
getAnnotation
-
hasAnnotation
-
hasAnnotation
-
getAnnotationNames
Returns the set of annotation names for this type- Returns:
-
getAnnotations
-
indexByFQN
public void indexByFQN(boolean isStrict)
-