Package org.drools.drl.ast.descr
Class BaseDescr
java.lang.Object
org.drools.drl.ast.descr.BaseDescr
- All Implemented Interfaces:
Externalizable,Serializable,Namespaceable
- Direct Known Subclasses:
ActionDescr,AnnotatedBaseDescr,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,UnitDescr
This is the super type for all pattern AST nodes.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(DescrVisitor visitor) voidintintintintintgetLine()final StringintgetText()booleannegate()voidreplaceVariable(String oldVar, String newVar) voidsetEndCharacter(int endCharacter) voidsetEndLocation(int line, int column) voidsetLocation(int line, int column) voidsetNamespace(String namespace) voidsetResource(Resource resource) voidsetStartCharacter(int startCharacter) voidvoid
-
Constructor Details
-
BaseDescr
public BaseDescr()
-
-
Method Details
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
getResource
-
setResource
-
setNamespace
- Specified by:
setNamespacein interfaceNamespaceable
-
getNamespace
- Specified by:
getNamespacein interfaceNamespaceable
-
getText
-
setText
-
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
-
positionAsString
-
replaceVariable
-
accept
-
negate
-
isNegated
public boolean isNegated()
-