Package org.drools.drl.ast.descr
Class AnnotationDescr
java.lang.Object
org.drools.drl.ast.descr.BaseDescr
org.drools.drl.ast.descr.AnnotatedBaseDescr
org.drools.drl.ast.descr.AnnotationDescr
- All Implemented Interfaces:
Externalizable,Serializable,Supplier<Map<String,,Object>> Namespaceable
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanget()getName()getValue()Returns the metadata value as a single object or a MapgetValueAsString(String key) inthashCode()booleanhasValue()booleanbooleanisStrict()voidvoidvoidsetFullyQualifiedName(String fullyQualifiedName) voidsetKeyValue(String key, Object value) voidsetStrict(boolean strict) voidstatic StringvoidMethods inherited from class org.drools.drl.ast.descr.AnnotatedBaseDescr
addAnnotation, addAnnotation, addAnnotation, addQualifiedAnnotation, getAnnotation, getAnnotation, getAnnotationNames, getAnnotations, hasAnnotation, hasAnnotation, indexByFQNMethods 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
-
Field Details
-
VALUE
- See Also:
-
-
Constructor Details
-
AnnotationDescr
public AnnotationDescr() -
AnnotationDescr
-
AnnotationDescr
-
-
Method Details
-
unquote
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classAnnotatedBaseDescr- Throws:
IOExceptionClassNotFoundException
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classAnnotatedBaseDescr- Throws:
IOException
-
getName
-
getFullyQualifiedName
-
setFullyQualifiedName
-
hasValue
public boolean hasValue() -
setValue
-
setKeyValue
-
getValue
-
get
-
getValue
Returns the metadata value as a single object or a Map- Returns:
-
getValueMap
-
getSingleValue
-
getSingleValueStripped
-
hashCode
public int hashCode() -
equals
-
getSingleValueAsString
-
getValueAsString
-
isDuplicated
public boolean isDuplicated() -
setDuplicated
public void setDuplicated() -
isStrict
public boolean isStrict() -
setStrict
public void setStrict(boolean strict)
-