public class PBodyCopier extends AbstractRewriterTraceSource
Modifier and Type | Field and Description |
---|---|
protected PBody |
body
The created body
|
protected java.util.Map<PVariable,PVariable> |
variableMapping
Mapping between the original and the copied variables
|
Constructor and Description |
---|
PBodyCopier(PBody body)
Deprecated.
use
PBodyCopier(PBody, IRewriterTraceCollector) instead |
PBodyCopier(PBody body,
IRewriterTraceCollector traceCollector) |
PBodyCopier(PQuery query) |
Modifier and Type | Method and Description |
---|---|
protected void |
copyAggregatorConstraint(AggregatorConstraint constraint) |
protected void |
copyBinaryTransitiveClosureConstraint(BinaryTransitiveClosure binaryTransitiveClosure) |
protected void |
copyConstantValueConstraint(ConstantValue constantValue) |
protected void |
copyConstraint(PConstraint constraint) |
protected void |
copyEqualityConstraint(Equality equality) |
protected ExportedParameter |
copyExportedParameterConstraint(ExportedParameter exportedParameter) |
protected void |
copyExpressionEvaluationConstraint(ExpressionEvaluation expressionEvaluation) |
protected void |
copyInequalityConstraint(Inequality inequality) |
protected void |
copyNegativePatternCallConstraint(NegativePatternCall negativePatternCall) |
protected void |
copyPatternMatchCounterConstraint(PatternMatchCounter patternMatchCounter) |
protected void |
copyPositivePatternCallConstraint(PositivePatternCall positivePatternCall) |
protected void |
copyTypeConstraint(TypeConstraint typeConstraint) |
protected void |
copyTypeFilterConstraint(TypeFilterConstraint typeConstraint) |
protected void |
copyVariable(PVariable variable,
java.lang.String newName) |
protected PVariable[] |
extractMappedVariables(EnumerablePConstraint enumerablePConstraint)
For positive pattern calls
|
PBody |
getCopiedBody()
Returns the body with the copied variables and constraints.
|
java.util.Map<PVariable,PVariable> |
getVariableMapping() |
void |
mergeBody(PBody sourceBody) |
void |
mergeBody(PBody sourceBody,
IVariableRenamer namingTool,
IConstraintFilter filter)
Merge all variables and constraints from a source body to a target body.
|
addTrace, derivativeRemoved, getTraceCollector, getTraces, setTraceCollector
protected PBody body
@Deprecated public PBodyCopier(PBody body)
PBodyCopier(PBody, IRewriterTraceCollector)
insteadpublic PBodyCopier(PBody body, IRewriterTraceCollector traceCollector)
public PBodyCopier(PQuery query)
public void mergeBody(PBody sourceBody)
public void mergeBody(PBody sourceBody, IVariableRenamer namingTool, IConstraintFilter filter)
sourceBody
- namingTool
- filter
- protected void copyVariable(PVariable variable, java.lang.String newName)
public PBody getCopiedBody()
protected void copyConstraint(PConstraint constraint)
protected ExportedParameter copyExportedParameterConstraint(ExportedParameter exportedParameter)
protected void copyEqualityConstraint(Equality equality)
protected void copyInequalityConstraint(Inequality inequality)
protected void copyTypeConstraint(TypeConstraint typeConstraint)
protected void copyTypeFilterConstraint(TypeFilterConstraint typeConstraint)
protected void copyConstantValueConstraint(ConstantValue constantValue)
protected void copyPositivePatternCallConstraint(PositivePatternCall positivePatternCall)
protected void copyNegativePatternCallConstraint(NegativePatternCall negativePatternCall)
protected void copyBinaryTransitiveClosureConstraint(BinaryTransitiveClosure binaryTransitiveClosure)
protected void copyPatternMatchCounterConstraint(PatternMatchCounter patternMatchCounter)
protected void copyAggregatorConstraint(AggregatorConstraint constraint)
protected void copyExpressionEvaluationConstraint(ExpressionEvaluation expressionEvaluation)
protected PVariable[] extractMappedVariables(EnumerablePConstraint enumerablePConstraint)
positivePatternCall
-