Interface Preparator


public interface Preparator
Strategy interface used by ExtendedCodeFormatter to allow additional code formatting before wrapping.
Author:
Phillip Webb
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static enum 
    The phase where the Preparator should be applied.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    apply(int kind, org.eclipse.jdt.internal.formatter.TokenManager tokenManager, org.eclipse.jdt.core.dom.ASTNode astRoot)
    Apply the preparator.
     
  • Method Details

    • getPhase

      default Preparator.Phase 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 (see CodeFormatter.format(int, String, org.eclipse.jface.text.IRegion[], int, String) for details)
      tokenManager - the token manager
      astRoot - the AST root node