org.drools.lang.descr
Class TypeFieldDescr
java.lang.Object
org.drools.lang.descr.BaseDescr
org.drools.lang.descr.AnnotatedBaseDescr
org.drools.lang.descr.TypeFieldDescr
- All Implemented Interfaces:
- Externalizable, Serializable, Comparable<TypeFieldDescr>
public class TypeFieldDescr
- extends AnnotatedBaseDescr
- implements Comparable<TypeFieldDescr>
- See Also:
- Serialized Form
Methods inherited from class org.drools.lang.descr.BaseDescr |
getColumn, getEndCharacter, getEndColumn, getEndLine, getLine, getStartCharacter, getText, setEndCharacter, setEndLocation, setLocation, 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)
buildInheritedFromDefinition
public static TypeFieldDescr buildInheritedFromDefinition(org.drools.definition.type.FactField fld)
cloneAsInherited
public TypeFieldDescr cloneAsInherited()
Copyright © 2001-2013 JBoss Inc.. All Rights Reserved.