Interface Preparator
public interface Preparator
Strategy interface used by
ExtendedCodeFormatter to allow additional code
formatting before wrapping.- Author:
- Phillip Webb
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumThe phase where thePreparatorshould be applied. -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(int kind, org.eclipse.jdt.internal.formatter.TokenManager tokenManager, org.eclipse.jdt.core.dom.ASTNode astRoot) Apply the preparator.default Preparator.PhasegetPhase()
-
Method Details
-
getPhase
-
apply
void apply(int kind, org.eclipse.jdt.internal.formatter.TokenManager tokenManager, org.eclipse.jdt.core.dom.ASTNode astRoot) Apply the preparator.- Parameters:
kind- the format kind (seeCodeFormatter.format(int, String, org.eclipse.jface.text.IRegion[], int, String)for details)tokenManager- the token managerastRoot- the AST root node
-