scalariform.formatter

ScalaFormatter

abstract class ScalaFormatter extends HasFormattingPreferences with TypeFormatter with AnnotationFormatter with ExprFormatter with HasHiddenTokenInfo with TemplateFormatter with XmlFormatter with CaseClauseFormatter with CommentFormatter

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ScalaFormatter
  2. CommentFormatter
  3. CaseClauseFormatter
  4. XmlFormatter
  5. TemplateFormatter
  6. HasHiddenTokenInfo
  7. ExprFormatter
  8. AnnotationFormatter
  9. TypeFormatter
  10. HasFormattingPreferences
  11. AnyRef
  12. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ScalaFormatter()

Type Members

  1. implicit class StringBuilderExtra extends AnyRef

Abstract Value Members

  1. abstract val formattingPreferences: IFormattingPreferences

    Definition Classes
    HasFormattingPreferences
  2. abstract def hiddenPredecessors(token: Token): HiddenTokens

    Definition Classes
    HasHiddenTokenInfo
  3. abstract def inferredNewlines(token: Token): HiddenTokens

    Definition Classes
    HasHiddenTokenInfo
  4. abstract def isInferredNewline(token: Token): Boolean

    Definition Classes
    HasHiddenTokenInfo
  5. abstract val newlineSequence: String

Concrete Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def alignArguments(parenArguments: ParenArgumentExprs)(implicit formatterState: FormatterState): FormatResult

    Attributes
    protected
    Definition Classes
    ExprFormatter
  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def calculateEqualsExprIdLength(equalsExpr: EqualsExpr): Int

    Definition Classes
    ExprFormatter
  9. def calculateParamSectionLengths(param: Param, first: Boolean)(implicit formatterState: FormatterState): Option[ParamSectionLengths]

    Attributes
    protected
    Definition Classes
    ExprFormatter
  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def containsNewline(astNode: AstNode): Boolean

    Attributes
    protected
  12. def containsNewline(tokens: List[Token]): Boolean

    Attributes
    protected
  13. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  15. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. def format(compilationUnit: CompilationUnit)(implicit formatterState: FormatterState = FormatterState()): FormatResult

  17. def format(caseClausesAstNode: CaseClauses)(implicit formatterState: FormatterState): FormatResult

    Definition Classes
    CaseClauseFormatter
  18. def format(contents: List[XmlContents])(formatterState: FormatterState, nestedFormatterState: FormatterState): (FormatResult, Boolean)

    returns

    format result and whether the contents span multiple lines

    Definition Classes
    XmlFormatter
  19. def format(xmlNonEmpty: XmlNonEmptyElement)(implicit formatterState: FormatterState): FormatResult

    Definition Classes
    XmlFormatter
  20. def format(xmlAttribute: XmlAttribute)(implicit formatterState: FormatterState): FormatResult

    Definition Classes
    XmlFormatter
  21. def format(xmlEnd: XmlEndTag)(implicit formatterState: FormatterState): FormatResult

    Definition Classes
    XmlFormatter
  22. def format(xmlStart: XmlStartTag)(implicit formatterState: FormatterState): FormatResult

    Definition Classes
    XmlFormatter
  23. def format(xmlEmpty: XmlEmptyElement)(implicit formatterState: FormatterState): FormatResult

    Definition Classes
    XmlFormatter
  24. def format(xmlContent: XmlContents)(implicit formatterState: FormatterState): FormatResult

    Definition Classes
    XmlFormatter
  25. def format(xmlExpr: XmlExpr)(implicit formatterState: FormatterState): FormatResult

    Definition Classes
    XmlFormatter
  26. def format(template: Template)(implicit formatterState: FormatterState): FormatResult

    Definition Classes
    TemplateFormatter
  27. def format(tmplDef: TmplDef)(implicit formatterState: FormatterState): FormatResult

    Definition Classes
    TemplateFormatter
  28. def format(import_: ImportClause)(implicit formatterState: FormatterState): FormatResult

    Attributes
    protected
    Definition Classes
    ExprFormatter
  29. def format(funDefOrDcl: FunDefOrDcl)(implicit formatterState: FormatterState): FormatResult

    Definition Classes
    ExprFormatter
  30. def format(fullDefOrDcl: FullDefOrDcl)(implicit formatterState: FormatterState): FormatResult

    Definition Classes
    ExprFormatter
  31. def format(packageBlock: PackageBlock)(implicit formatterState: FormatterState): FormatResult

    Definition Classes
    ExprFormatter
  32. def format(statSeq: StatSeq)(implicit formatterState: FormatterState): FormatResult

    Definition Classes
    ExprFormatter
  33. def format(blockExpr: BlockExpr, indent: Boolean)(implicit formatterState: FormatterState): FormatResult

    Definition Classes
    ExprFormatter
  34. def format(guard: Guard)(implicit formatterState: FormatterState): FormatResult

    Definition Classes
    ExprFormatter
  35. def format(argumentExprs: ArgumentExprs)(implicit formatterState: FormatterState): (FormatResult, FormatterState)

    Definition Classes
    ExprFormatter
  36. def format(anonymousFunction: AnonymousFunction)(implicit formatterState: FormatterState): FormatResult

    Definition Classes
    ExprFormatter
  37. def format(expr: Expr)(implicit formatterState: FormatterState): FormatResult

    Definition Classes
    ExprFormatter
  38. def format(annotation: Annotation)(implicit formatterState: FormatterState): FormatResult

    Definition Classes
    AnnotationFormatter
  39. def format(typeElements: List[TypeElement])(implicit formatterState: FormatterState): FormatResult

    Definition Classes
    TypeFormatter
  40. def format(type_: Type)(implicit formatterState: FormatterState): FormatResult

    Definition Classes
    TypeFormatter
  41. def formatComment(comment: HiddenToken, indentLevel: Int): String

    Definition Classes
    CommentFormatter
  42. def formatParamClauses(paramClauses: ParamClauses, doubleIndentParams: Boolean = false)(implicit formatterState: FormatterState): FormatResult

    Definition Classes
    ExprFormatter
  43. def formattedAstNode(ast: AstNode)(astFormatResult: ⇒ FormatResult): String

    Converts an AstNode into what it should look like in text after Scalariform has run.

    Converts an AstNode into what it should look like in text after Scalariform has run. Useful for calculating the actual length of an scalariform.parser.AstNode after formatting.

    ast

    The AST to format and render as a string

    astFormatResult

    Should run formatting actions for 'ast'

    returns

    Formatted string representation of what the AstNode should look like after Scalariform has run

    Attributes
    protected
  44. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  45. def getSource(astNode: AstNode): String

  46. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  47. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  48. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  49. def newlineBefore(node: AstNode): Boolean

    Definition Classes
    HasHiddenTokenInfo
  50. def newlineBefore(token: Token): Boolean

    Definition Classes
    HasHiddenTokenInfo
  51. final def notify(): Unit

    Definition Classes
    AnyRef
  52. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  53. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  54. def toString(): String

    Definition Classes
    AnyRef → Any
  55. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  56. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  57. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  58. def writeTokens(s: String, tokens: List[Token], formatResult: FormatResult, offset: Int = 0): List[TextEdit]

Inherited from CommentFormatter

Inherited from CaseClauseFormatter

Inherited from XmlFormatter

Inherited from TemplateFormatter

Inherited from HasHiddenTokenInfo

Inherited from ExprFormatter

Inherited from AnnotationFormatter

Inherited from TypeFormatter

Inherited from HasFormattingPreferences

Inherited from AnyRef

Inherited from Any

Ungrouped