org.drools.compiler.lang.descr
Class TypeFieldDescr
java.lang.Object
org.drools.compiler.lang.descr.BaseDescr
org.drools.compiler.lang.descr.AnnotatedBaseDescr
org.drools.compiler.lang.descr.TypeFieldDescr
- All Implemented Interfaces:
- Externalizable, Serializable, Comparable<TypeFieldDescr>, org.drools.core.rule.Namespaceable
public class TypeFieldDescr
- extends AnnotatedBaseDescr
- implements Comparable<TypeFieldDescr>
- See Also:
- Serialized Form
| Methods inherited from class org.drools.compiler.lang.descr.AnnotatedBaseDescr |
addAnnotation, addAnnotation, addAnnotation, addQualifiedAnnotation, getAnnotation, getAnnotation, getAnnotationNames, getAnnotations, getTypedAnnotation, hasAnnotation, indexByFQN |
| 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 |
TypeFieldDescr
public TypeFieldDescr()
TypeFieldDescr
public TypeFieldDescr(String fieldName)
TypeFieldDescr
public TypeFieldDescr(String fieldName,
PatternDescr pat)
readExternal
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
- Specified by:
readExternal in interface Externalizable- Overrides:
readExternal in class AnnotatedBaseDescr
- Throws:
IOException
ClassNotFoundException
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
- Specified by:
writeExternal in interface Externalizable- Overrides:
writeExternal in class AnnotatedBaseDescr
- Throws:
IOException
getFieldName
public String getFieldName()
- Returns:
- the identifier
setFieldName
public void setFieldName(String fieldName)
- Parameters:
fieldName - the identifier to set
getInitExpr
public String getInitExpr()
- Returns:
- the initExpr
setInitExpr
public void setInitExpr(String initExpr)
- Parameters:
initExpr - the initExpr to set
getPattern
public PatternDescr getPattern()
- Returns:
- the pattern
setPattern
public void setPattern(PatternDescr pattern)
- Parameters:
pattern - the pattern to set
toString
public String toString()
- Overrides:
toString in class Object
compareTo
public int compareTo(TypeFieldDescr other)
- Specified by:
compareTo in interface Comparable<TypeFieldDescr>
getIndex
public int getIndex()
setIndex
public void setIndex(int index)
isInherited
public boolean isInherited()
setInherited
public void setInherited(boolean inherited)
cloneAsInherited
public TypeFieldDescr cloneAsInherited()
isRecursive
public boolean isRecursive()
setRecursive
public void setRecursive(boolean recursive)
Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.