Package org.drools.drl.ast.descr
Class TypeFieldDescr
java.lang.Object
org.drools.drl.ast.descr.BaseDescr
org.drools.drl.ast.descr.AnnotatedBaseDescr
org.drools.drl.ast.descr.TypeFieldDescr
- All Implemented Interfaces:
Externalizable,Serializable,Comparable<TypeFieldDescr>,Namespaceable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTypeFieldDescr(String fieldName) TypeFieldDescr(String fieldName, PatternDescr pat) -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(TypeFieldDescr other) intgetIndex()booleanbooleanbooleanvoidvoidsetFieldName(String fieldName) voidsetIndex(int index) voidsetInherited(boolean inherited) voidsetInitExpr(String initExpr) voidsetOverriding(TypeFieldDescr overriding) voidsetPattern(PatternDescr pattern) voidsetRecursive(boolean recursive) toString()voidMethods 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
-
Constructor Details
-
TypeFieldDescr
public TypeFieldDescr() -
TypeFieldDescr
-
TypeFieldDescr
-
-
Method Details
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classAnnotatedBaseDescr- Throws:
IOExceptionClassNotFoundException
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classAnnotatedBaseDescr- Throws:
IOException
-
getFieldName
- Returns:
- the identifier
-
setFieldName
- Parameters:
fieldName- the identifier to set
-
getInitExpr
- Returns:
- the initExpr
-
setInitExpr
- Parameters:
initExpr- the initExpr to set
-
getPattern
- Returns:
- the pattern
-
setPattern
- Parameters:
pattern- the pattern to set
-
toString
-
compareTo
- Specified by:
compareToin interfaceComparable<TypeFieldDescr>
-
getIndex
public int getIndex() -
setIndex
public void setIndex(int index) -
isInherited
public boolean isInherited() -
setInherited
public void setInherited(boolean inherited) -
isRecursive
public boolean isRecursive() -
setRecursive
public void setRecursive(boolean recursive) -
hasOverride
public boolean hasOverride() -
getOverriding
-
setOverriding
-