Top Description Fields Constructors Methods
com.google.auto.value.processor

pack-priv Class Reformatter

extends Object
Class Inheritance
Imports
com.google.common.base.CharMatcher

Postprocessor that runs over the output of the template engine in order to make it look nicer. Mostly, this involves removing surplus horizontal and vertical space.
Author
[email protected] (Éamonn McManus)

Field Summary

Modifier and TypeField and Description
private static final CharMatcher
OPERATORS

Characters that might start a continuation line.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

OPERATORSback to summary
private static final CharMatcher OPERATORS

Characters that might start a continuation line. Since Google Style requires splitting before operators, we expect that a continuation line will begin with one of these (or be inside parentheses). We've omitted / from this list for now since none of our templates splits before one, and otherwise we'd have to handle // and /*.

Constructor Detail

Reformatterback to summary
private Reformatter()

Method Detail

fixupback to summary
pack-priv static String fixup(String s)