- firstBreak(String) - Static method in class com.google.googlejavaformat.Newlines
-
Returns the index of the first break in the input, or -1
.
- forcedBreak() - Method in class com.google.googlejavaformat.OpsBuilder
-
- forcedBreak(Indent) - Method in class com.google.googlejavaformat.OpsBuilder
-
- format(String...) - Method in class com.google.googlejavaformat.java.Main
-
The main entry point for the formatter, with some number of file names to format.
- format(SnippetFormatter.SnippetKind, String, List<Range<Integer>>, int, boolean) - Method in class com.google.googlejavaformat.java.SnippetFormatter
-
Runs the Google Java formatter on the given source, with only the given ranges specified.
- FormatFileCallable - Class in com.google.googlejavaformat.java
-
Encapsulates information about a file to be formatted, including which parts of the file to
format.
- FormatFileCallable(CommandLineOptions, String, JavaFormatterOptions) - Constructor for class com.google.googlejavaformat.java.FormatFileCallable
-
- formatJavadoc(String, int, JavaFormatterOptions) - Static method in class com.google.googlejavaformat.java.javadoc.JavadocFormatter
-
Formats the given Javadoc comment, which must start with ∕✱✱ and end with ✱∕.
- formatSource(CharSource, CharSink) - Method in class com.google.googlejavaformat.java.Formatter
-
Format the given input (a Java compilation unit) into the output stream.
- formatSource(String) - Method in class com.google.googlejavaformat.java.Formatter
-
Format an input string (a Java compilation unit) into an output string.
- formatSource(String, Collection<Range<Integer>>) - Method in class com.google.googlejavaformat.java.Formatter
-
Format an input string (a Java compilation unit), for only the specified character ranges.
- Formatter - Class in com.google.googlejavaformat.java
-
This is google-java-format, a new Java formatter that follows the Google Java Style Guide quite
precisely---to the letter and to the spirit.
- Formatter() - Constructor for class com.google.googlejavaformat.java.Formatter
-
A new Formatter instance with default options.
- Formatter(JavaFormatterOptions) - Constructor for class com.google.googlejavaformat.java.Formatter
-
- FormatterDiagnostic - Class in com.google.googlejavaformat
-
An error that prevented formatting from succeeding.
- FormatterException - Exception in com.google.googlejavaformat.java
-
Checked exception class for formatter errors.
- FormatterException(String) - Constructor for exception com.google.googlejavaformat.java.FormatterException
-
- FormatterException(FormatterDiagnostic) - Constructor for exception com.google.googlejavaformat.java.FormatterException
-
- FormatterException(Iterable<FormatterDiagnostic>) - Constructor for exception com.google.googlejavaformat.java.FormatterException
-
- FormattingError - Error in com.google.googlejavaformat
-
An unchecked formatting error.
- FormattingError(FormatterDiagnostic) - Constructor for error com.google.googlejavaformat.FormattingError
-
- FormattingError(Iterable<FormatterDiagnostic>) - Constructor for error com.google.googlejavaformat.FormattingError
-
- FormattingFiler - Class in com.google.googlejavaformat.java.filer
-
A decorating
Filer
implementation which formats Java source files with a
Formatter
.
- FormattingFiler(Filer) - Constructor for class com.google.googlejavaformat.java.filer.FormattingFiler
-
- FormattingFiler(Filer, Messager) - Constructor for class com.google.googlejavaformat.java.filer.FormattingFiler
-
- fromJavacDiagnostics(Iterable<Diagnostic<? extends JavaFileObject>>) - Static method in error com.google.googlejavaformat.FormattingError
-
- valueOf(String) - Static method in enum com.google.googlejavaformat.CloseOp
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.googlejavaformat.Doc.FillMode
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.googlejavaformat.Doc.Token.RealOrImaginary
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.googlejavaformat.java.JavaFormatterOptions.Style
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.googlejavaformat.java.RemoveUnusedImports.JavadocOnlyImports
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.googlejavaformat.java.SnippetFormatter.SnippetKind
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.googlejavaformat.java.TypeNameClassifier.JavaCaseFormat
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum com.google.googlejavaformat.CloseOp
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.google.googlejavaformat.Doc.FillMode
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.google.googlejavaformat.Doc.Token.RealOrImaginary
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.google.googlejavaformat.java.JavaFormatterOptions.Style
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.google.googlejavaformat.java.RemoveUnusedImports.JavadocOnlyImports
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.google.googlejavaformat.java.SnippetFormatter.SnippetKind
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.google.googlejavaformat.java.TypeNameClassifier.JavaCaseFormat
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- VERSION - Static variable in class com.google.googlejavaformat.java.GoogleJavaFormatVersion
-
- visit(Name) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
- visitAnnotatedType(AnnotatedTypeTree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
- visitAnnotation(AnnotationTree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
- visitAnnotationArgument(AssignmentTree) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
- visitAnnotationType(ClassTree) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
- visitArrayAccess(ArrayAccessTree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
- visitArrayInitializer(List<? extends ExpressionTree>) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
- visitArrayType(ArrayTypeTree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
- visitAssert(AssertTree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
- visitAssignment(AssignmentTree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
- visitBinary(BinaryTree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
- visitBlock(BlockTree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
- visitBreak(BreakTree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
- visitCase(CaseTree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
- visitCatch(CatchTree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
- visitClass(ClassTree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
- visitClassDeclaration(ClassTree) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
- visitCompilationUnit(CompilationUnitTree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
- visitCompoundAssignment(CompoundAssignmentTree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
- visitConditionalExpression(ConditionalExpressionTree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
- visitContinue(ContinueTree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
- visitDoWhileLoop(DoWhileLoopTree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
- visitEmptyStatement(EmptyStatementTree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
- visitEnhancedForLoop(EnhancedForLoopTree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
- visitEnumDeclaration(ClassTree) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
- visitExports(ExportsTree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
- visitExpressionStatement(ExpressionStatementTree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
- visitForLoop(ForLoopTree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
- visitIdentifier(IdentifierTree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
- visitIf(IfTree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
- visitImport(ImportTree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
- visitInstanceOf(InstanceOfTree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
- visitIntersectionType(IntersectionTypeTree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
- visitLabeledStatement(LabeledStatementTree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
- visitLambdaExpression(LambdaExpressionTree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
- visitLiteral(LiteralTree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
- visitMemberReference(MemberReferenceTree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
- visitMemberSelect(MemberSelectTree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
- visitMethod(MethodTree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
- visitMethodInvocation(MethodInvocationTree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
- visitModifiers(ModifiersTree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
- visitModule(ModuleTree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
- visitNewArray(NewArrayTree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
- visitNewClass(NewClassTree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
- visitOpens(OpensTree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
- visitParameterizedType(ParameterizedTypeTree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
- visitParenthesized(ParenthesizedTree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
- visitPrimitiveType(PrimitiveTypeTree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
- visitProvides(ProvidesTree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
- visitRequires(RequiresTree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
- visitReturn(ReturnTree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
- visitSwitch(SwitchTree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
- visitSynchronized(SynchronizedTree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
- visitThrow(ThrowTree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
- visitTry(TryTree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
- visitTypeCast(TypeCastTree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
- visitTypeParameter(TypeParameterTree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
- visitUnary(UnaryTree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
- visitUnionType(UnionTypeTree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
- visitUses(UsesTree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
- visitVariable(VariableTree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
- visitWhileLoop(WhileLoopTree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
- visitWildcard(WildcardTree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-