public class ProgramReplaceVisitor extends CreatingASTVisitor
CreatingASTVisitor.DefaultAction| Modifier and Type | Field and Description | 
|---|---|
private ProgramElement | 
result  | 
private SVInstantiations | 
svinsts  | 
CHANGED, preservesPositionInfo, stackservices| Constructor and Description | 
|---|
ProgramReplaceVisitor(ProgramElement root,
                     Services services,
                     SVInstantiations svi)
create the ProgramReplaceVisitor 
 | 
| Modifier and Type | Method and Description | 
|---|---|
protected void | 
doAction(ProgramElement node)
the action that is performed just before leaving the node the last time 
 | 
protected void | 
doDefaultAction(SourceElement x)
the implemented default action is called if a program element is, and if
 it has children all its children too are left unchanged 
 | 
void | 
performActionOnAbstractProgramElement(AbstractProgramElement x)  | 
void | 
performActionOnProgramMetaConstruct(ProgramTransformer x)  | 
void | 
performActionOnSchemaVariable(SchemaVariable sv)  | 
ProgramElement | 
result()  | 
void | 
start()
starts the walker 
 | 
java.lang.String | 
toString()  | 
addChild, addChildren, addToTopOfStack, changed, getPosition, performActionOnAllFields, performActionOnArrayInitializer, performActionOnArrayLengthReference, performActionOnArrayReference, performActionOnAssert, performActionOnBinaryAnd, performActionOnBinaryAndAssignment, performActionOnBinaryNot, performActionOnBinaryOr, performActionOnBinaryOrAssignment, performActionOnBinaryXOr, performActionOnBinaryXOrAssignment, performActionOnBreak, performActionOnCase, performActionOnCatch, performActionOnClassInitializer, performActionOnConditional, performActionOnContinue, performActionOnCopyAssignment, performActionOnDefault, performActionOnDivide, performActionOnDivideAssignment, performActionOnDLEmbeddedExpression, performActionOnDo, performActionOnElse, performActionOnEmptyStatement, performActionOnEnhancedFor, performActionOnEquals, performActionOnExecutionContext, performActionOnFieldReference, performActionOnFinally, performActionOnFor, performActionOnForUpdates, performActionOnGreaterOrEquals, performActionOnGreaterThan, performActionOnGuard, performActionOnIf, performActionOnInstanceof, performActionOnIntersect, performActionOnLabeledStatement, performActionOnLessOrEquals, performActionOnLessThan, performActionOnLocalVariableDeclaration, performActionOnLogicalAnd, performActionOnLogicalNot, performActionOnLogicalOr, performActionOnLoopInit, performActionOnLoopInvariant, performActionOnLoopScopeBlock, performActionOnMergeContract, performActionOnMergePointStatement, performActionOnMetaClassReference, performActionOnMethodBodyStatement, performActionOnMethodFrame, performActionOnMethodReference, performActionOnMinus, performActionOnMinusAssignment, performActionOnModulo, performActionOnModuloAssignment, performActionOnNegative, performActionOnNew, performActionOnNewArray, performActionOnNotEquals, performActionOnPackageReference, performActionOnPackageSpecification, performActionOnParameterDeclaration, performActionOnParenthesizedExpression, performActionOnPassiveExpression, performActionOnPlus, performActionOnPlusAssignment, performActionOnPositive, performActionOnPostDecrement, performActionOnPostIncrement, performActionOnPreDecrement, performActionOnPreIncrement, performActionOnReturn, performActionOnSchematicFieldReference, performActionOnSeqConcat, performActionOnSeqLength, performActionOnSeqReverse, performActionOnSeqSingleton, performActionOnSeqSub, performActionOnSetMinus, performActionOnSetUnion, performActionOnShiftLeft, performActionOnShiftLeftAssignment, performActionOnShiftRight, performActionOnShiftRightAssignment, performActionOnSingleton, performActionOnStatementBlock, performActionOnSuperConstructorReference, performActionOnSuperReference, performActionOnSwitch, performActionOnSynchronizedBlock, performActionOnThen, performActionOnThisConstructorReference, performActionOnThisReference, performActionOnThrow, performActionOnTimes, performActionOnTimesAssignment, performActionOnTry, performActionOnTypeCast, performActionOnTypeReference, performActionOnUnsignedShiftRight, performActionOnUnsignedShiftRightAssignment, performActionOnVariableSpecification, performActionOnWhile, preservesPositionInfo, walkperformActionOnAllObjects, performActionOnArrayDeclaration, performActionOnBlockContract, performActionOnBlockContract, performActionOnBooleanLiteral, performActionOnCatchAllStatement, performActionOnCharLiteral, performActionOnClassDeclaration, performActionOnComment, performActionOnCompilationUnit, performActionOnConstructorDeclaration, performActionOnContextStatementBlock, performActionOnDoubleLiteral, performActionOnEmptyMapLiteral, performActionOnEmptySeqLiteral, performActionOnEmptySetLiteral, performActionOnExactInstanceof, performActionOnExtends, performActionOnFieldDeclaration, performActionOnFieldSpecification, performActionOnFloatLiteral, performActionOnImplements, performActionOnImplicitFieldSpecification, performActionOnImport, performActionOnInterfaceDeclaration, performActionOnIntLiteral, performActionOnIProgramVariable, performActionOnLocationVariable, performActionOnLongLiteral, performActionOnLoopContract, performActionOnLoopContract, performActionOnLoopContract, performActionOnLoopInvariant, performActionOnMergeContract, performActionOnMethod, performActionOnMethodDeclaration, performActionOnModifier, performActionOnNullLiteral, performActionOnProgramConstant, performActionOnProgramElementName, performActionOnProgramMethod, performActionOnProgramVariable, performActionOnSeqGet, performActionOnSeqIndexOf, performActionOnStringLiteral, performActionOnSuperArrayDeclaration, performActionOnThrows, performActionOnTransactionStatement, performActionOnVariableDeclaration, performActionOnVariableReferencedepth, rootprivate ProgramElement result
private final SVInstantiations svinsts
public ProgramReplaceVisitor(ProgramElement root, Services services, SVInstantiations svi)
root - the ProgramElement where to beginservices - The Services object.svi - Schema Variable Instantiationsprotected void doAction(ProgramElement node)
doAction in class JavaASTVisitorpublic void start()
start in class JavaASTWalkerpublic ProgramElement result()
public java.lang.String toString()
toString in class CreatingASTVisitorprotected void doDefaultAction(SourceElement x)
doDefaultAction in class CreatingASTVisitorx - The SourceElement.public void performActionOnSchemaVariable(SchemaVariable sv)
performActionOnSchemaVariable in interface VisitorperformActionOnSchemaVariable in class JavaASTVisitorpublic void performActionOnProgramMetaConstruct(ProgramTransformer x)
performActionOnProgramMetaConstruct in interface VisitorperformActionOnProgramMetaConstruct in class JavaASTVisitorpublic void performActionOnAbstractProgramElement(AbstractProgramElement x)
performActionOnAbstractProgramElement in interface VisitorperformActionOnAbstractProgramElement in class JavaASTVisitor