org.deft.extension.tools.astlayouter
Class ASTLayouterInvoker
java.lang.Object
org.deft.extension.tools.astlayouter.ASTLayouterInvoker
- All Implemented Interfaces:
- Invoker
public class ASTLayouterInvoker
- extends java.lang.Object
- implements Invoker
Handles a invoker call from a Persistence object and applies a layout change
to a XPath.
Parameter
method - insertSpacesBefore, insertSpacesAfter, insertLinesBefore,
insertLinesAfter, insertLineBreakBefore, insert- LineBreakAfter,
removeLineBreakAfter, removeLineBreakBefore, trim, trimLeft, trimRight,
trimLinesBefore, trimLinesAfter or indentRelative
offset - int; necessary with insertSpacesBefore, insertSpacesAfter,
insertLinesBefore, insertLinesAfter and indentRelative
location - XPath; necessary with all but indentRelative
startlocation - XPath; necessary with all but indentRelative
endlocation - XPath; necessary with indentRelative
- Author:
- Martin Heinzerling
Method Summary |
void |
invoke(org.deft.repository.ast.TreeNode ast,
java.util.Map<java.lang.String,java.lang.String> params)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ASTLayouterInvoker
public ASTLayouterInvoker()
invoke
public void invoke(org.deft.repository.ast.TreeNode ast,
java.util.Map<java.lang.String,java.lang.String> params)
- Specified by:
invoke
in interface Invoker
- Parameters:
ast
- root treenodeparams
- parameter map with the concrete modification