org.drools.lang.descr
Class BaseDescr
java.lang.Object
org.drools.lang.descr.BaseDescr
- All Implemented Interfaces:
- Externalizable, Serializable, Namespaceable
- Direct Known Subclasses:
- ActionDescr, AnnotatedBaseDescr, AnnotationDescr, AtomicExprDescr, AttributeDescr, BehaviorDescr, BindingDescr, ConditionalBranchDescr, DeclarativeInvokerDescr, EvalDescr, ExprConstraintDescr, FactTemplateDescr, FieldConstraintDescr, FieldTemplateDescr, ForallDescr, ForFunctionDescr, FunctionDescr, GlobalDescr, ImportDescr, LiteralDescr, NamedConsequenceDescr, OperatorDescr, PackageDescr, PatternSourceDescr, ProcessDescr, RelationalExprDescr, Restriction, RestrictionDescr, ReturnValueDescr, VariableDescr
public class BaseDescr
- extends Object
- implements Externalizable, Namespaceable
This is the super type for all pattern AST nodes.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseDescr
public BaseDescr()
readExternal
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
- Specified by:
readExternal
in interface Externalizable
- Throws:
IOException
ClassNotFoundException
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
- Specified by:
writeExternal
in interface Externalizable
- Throws:
IOException
getResource
public org.drools.io.Resource getResource()
setResource
public void setResource(org.drools.io.Resource resource)
setNamespace
public void setNamespace(String namespace)
- Specified by:
setNamespace
in interface Namespaceable
getNamespace
public final String getNamespace()
- Specified by:
getNamespace
in interface Namespaceable
getText
public String getText()
setText
public void setText(String text)
setLocation
public void setLocation(int line,
int column)
setEndLocation
public void setEndLocation(int line,
int column)
getLine
public int getLine()
getColumn
public int getColumn()
getEndLine
public int getEndLine()
getEndColumn
public int getEndColumn()
getEndCharacter
public int getEndCharacter()
- Returns:
- the endCharacter
setEndCharacter
public void setEndCharacter(int endCharacter)
- Parameters:
endCharacter
- the endCharacter to set
getStartCharacter
public int getStartCharacter()
- Returns:
- the startCharacter
setStartCharacter
public void setStartCharacter(int startCharacter)
- Parameters:
startCharacter
- the startCharacter to set
copyLocation
public void copyLocation(BaseDescr d)
positionAsString
public String positionAsString()
Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.