org.netbeans.modules.bpel.model.impl.services
Class ExpressionUpdaterVisitor

java.lang.Object
  extended by org.netbeans.modules.bpel.model.impl.services.ExpressionUpdaterVisitor
All Implemented Interfaces:
org.netbeans.modules.xml.xpath.ext.visitor.XPathVisitor

 class ExpressionUpdaterVisitor
extends java.lang.Object
implements org.netbeans.modules.xml.xpath.ext.visitor.XPathVisitor

This is generic children updater. It is constracted with Map that contains in key old expression, in value - new expression . This visitor will change old expression in parent to new expression and remove key from Map.

Author:
ads

Constructor Summary
ExpressionUpdaterVisitor(java.util.Map<org.netbeans.modules.xml.xpath.ext.XPathExpression,org.netbeans.modules.xml.xpath.ext.XPathExpression> oldNewMap, org.netbeans.modules.xml.xpath.ext.XPathExpression expression)
           
 
Method Summary
(package private)  org.netbeans.modules.xml.xpath.ext.XPathExpression getExpression()
           
 void visit(org.netbeans.modules.xml.xpath.ext.LocationStep locationStep)
           
 void visit(org.netbeans.modules.xml.xpath.ext.XPathCoreFunction coreFunction)
           
 void visit(org.netbeans.modules.xml.xpath.ext.XPathCoreOperation coreOperation)
           
 void visit(org.netbeans.modules.xml.xpath.ext.XPathExpressionPath expressionPath)
           
 void visit(org.netbeans.modules.xml.xpath.ext.XPathExtensionFunction extensionFunction)
           
 void visit(org.netbeans.modules.xml.xpath.ext.XPathLocationPath locationPath)
           
 void visit(org.netbeans.modules.xml.xpath.ext.XPathNumericLiteral numericLiteral)
           
 void visit(org.netbeans.modules.xml.xpath.ext.XPathPredicateExpression predicateExpression)
           
 void visit(org.netbeans.modules.xml.xpath.ext.XPathStringLiteral stringLiteral)
           
 void visit(org.netbeans.modules.xml.xpath.ext.XPathVariableReference variableReference)
           
protected  void visitChildren(org.netbeans.modules.xml.xpath.ext.XPathOperationOrFuntion expr)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpressionUpdaterVisitor

ExpressionUpdaterVisitor(java.util.Map<org.netbeans.modules.xml.xpath.ext.XPathExpression,org.netbeans.modules.xml.xpath.ext.XPathExpression> oldNewMap,
                         org.netbeans.modules.xml.xpath.ext.XPathExpression expression)
Method Detail

visit

public void visit(org.netbeans.modules.xml.xpath.ext.LocationStep locationStep)
Specified by:
visit in interface org.netbeans.modules.xml.xpath.ext.visitor.XPathVisitor

visit

public void visit(org.netbeans.modules.xml.xpath.ext.XPathCoreFunction coreFunction)
Specified by:
visit in interface org.netbeans.modules.xml.xpath.ext.visitor.XPathVisitor

visit

public void visit(org.netbeans.modules.xml.xpath.ext.XPathCoreOperation coreOperation)
Specified by:
visit in interface org.netbeans.modules.xml.xpath.ext.visitor.XPathVisitor

visit

public void visit(org.netbeans.modules.xml.xpath.ext.XPathExpressionPath expressionPath)
Specified by:
visit in interface org.netbeans.modules.xml.xpath.ext.visitor.XPathVisitor

visit

public void visit(org.netbeans.modules.xml.xpath.ext.XPathExtensionFunction extensionFunction)
Specified by:
visit in interface org.netbeans.modules.xml.xpath.ext.visitor.XPathVisitor

visit

public void visit(org.netbeans.modules.xml.xpath.ext.XPathLocationPath locationPath)
Specified by:
visit in interface org.netbeans.modules.xml.xpath.ext.visitor.XPathVisitor

visit

public void visit(org.netbeans.modules.xml.xpath.ext.XPathStringLiteral stringLiteral)
Specified by:
visit in interface org.netbeans.modules.xml.xpath.ext.visitor.XPathVisitor

visit

public void visit(org.netbeans.modules.xml.xpath.ext.XPathNumericLiteral numericLiteral)
Specified by:
visit in interface org.netbeans.modules.xml.xpath.ext.visitor.XPathVisitor

visit

public void visit(org.netbeans.modules.xml.xpath.ext.XPathVariableReference variableReference)
Specified by:
visit in interface org.netbeans.modules.xml.xpath.ext.visitor.XPathVisitor

visit

public void visit(org.netbeans.modules.xml.xpath.ext.XPathPredicateExpression predicateExpression)
Specified by:
visit in interface org.netbeans.modules.xml.xpath.ext.visitor.XPathVisitor

getExpression

org.netbeans.modules.xml.xpath.ext.XPathExpression getExpression()

visitChildren

protected void visitChildren(org.netbeans.modules.xml.xpath.ext.XPathOperationOrFuntion expr)