A B C D E F G H I J K L M N O P R S T U V W Y Z
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- AccessibleScanner(ScannerFactory, JavaTokenizer) - Constructor for class com.google.googlejavaformat.java.JavacTokens.AccessibleScanner
- actualColumn(ExpressionTree) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
- actualSize(int, int) - Method in class com.google.googlejavaformat.OpsBuilder
- actualStartColumn(int) - Method in class com.google.googlejavaformat.OpsBuilder
- add(Doc) - Method in class com.google.googlejavaformat.Doc.Level
-
Add a
Docto theLevel. - add(Doc) - Method in class com.google.googlejavaformat.DocBuilder
- add(DocBuilder) - Method in enum com.google.googlejavaformat.CloseOp
- add(DocBuilder) - Method in class com.google.googlejavaformat.Doc.Break
- add(DocBuilder) - Method in class com.google.googlejavaformat.Doc.Space
- add(DocBuilder) - Method in class com.google.googlejavaformat.Doc.Tok
- add(DocBuilder) - Method in class com.google.googlejavaformat.Doc.Token
- add(DocBuilder) - Method in interface com.google.googlejavaformat.Op
-
Add an
Opto aDocBuilder. - add(DocBuilder) - Method in class com.google.googlejavaformat.OpenOp
- add(Op) - Method in class com.google.googlejavaformat.OpsBuilder
-
Add an
Op, and record open/close ops for later validation of unclosed levels. - addAll(List<Op>) - Method in class com.google.googlejavaformat.OpsBuilder
-
Add a list of
Ops. - addArguments(List<? extends ExpressionTree>, Indent) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
Add arguments to a method invocation, etc.
- addBodyDeclarations(List<? extends Tree>, JavaInputAstVisitor.BracesOrNot, JavaInputAstVisitor.FirstDeclarationsOrNot) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
Add a list of declarations.
- ADDITIONAL_USAGE - Static variable in exception com.google.googlejavaformat.java.UsageException
- addLength(Integer) - Method in class com.google.googlejavaformat.java.CommandLineOptions.Builder
- addOffset(Integer) - Method in class com.google.googlejavaformat.java.CommandLineOptions.Builder
- addToRanges(List<Range<Integer>>, int, int) - Static method in class com.google.googlejavaformat.InputOutput
- addTrivia(StringBuilder, ImmutableList<? extends Input.Tok>) - Static method in class com.google.googlejavaformat.java.ModifierOrderer
- addTypeArguments(List<? extends Tree>, Indent) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
Helper methods for method invocations.
- advance() - Method in class com.google.googlejavaformat.Newlines.LineIterator
- advance() - Method in class com.google.googlejavaformat.Newlines.LineOffsetIterator
- AllowLeadingBlankLine() - Constructor for enum com.google.googlejavaformat.java.JavaInputAstVisitor.AllowLeadingBlankLine
- AllowTrailingBlankLine() - Constructor for enum com.google.googlejavaformat.java.JavaInputAstVisitor.AllowTrailingBlankLine
- AMBIGUOUS - com.google.googlejavaformat.java.TypeNameClassifier.TyParseState
-
An ambiguous type prefix.
- ambiguousUnaryOperator(UnaryTree, String) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
- annotation - Variable in class com.google.googlejavaformat.java.AutoOneOf_JavaInputAstVisitor_AnnotationOrModifier.Impl_annotation
- annotation() - Method in class com.google.googlejavaformat.java.AutoOneOf_JavaInputAstVisitor_AnnotationOrModifier.Impl_annotation
- annotation() - Method in class com.google.googlejavaformat.java.AutoOneOf_JavaInputAstVisitor_AnnotationOrModifier.Parent_
- annotation() - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor.AnnotationOrModifier
- annotation(AnnotationTree) - Static method in class com.google.googlejavaformat.java.AutoOneOf_JavaInputAstVisitor_AnnotationOrModifier
- ANNOTATION - com.google.googlejavaformat.java.JavaInputAstVisitor.AnnotationOrModifier.Kind
- AnnotationOrModifier() - Constructor for class com.google.googlejavaformat.java.JavaInputAstVisitor.AnnotationOrModifier
- aosp - Variable in class com.google.googlejavaformat.java.CommandLineOptions
- aosp - Variable in class com.google.googlejavaformat.java.CommandLineOptions.Builder
- aosp() - Method in class com.google.googlejavaformat.java.CommandLineOptions
-
Use AOSP style instead of Google Style (4-space indentation).
- aosp(boolean) - Method in class com.google.googlejavaformat.java.CommandLineOptions.Builder
- AOSP - com.google.googlejavaformat.java.JavaFormatterOptions.Style
-
The AOSP-compliant configuration.
- AOSP_IMPORT_COMPARATOR - Static variable in class com.google.googlejavaformat.java.ImportOrderer
-
A
Comparatorthat ordersImportOrderer.Imports by AOSP Style, defined at https://source.android.com/setup/contribute/code-style#order-import-statements and implemented in IntelliJ at https://android.googlesource.com/platform/development/+/master/ide/intellij/codestyles/AndroidStyle.xml. - append(String) - Method in class com.google.googlejavaformat.java.SnippetFormatter.SnippetWrapper
- append(String, Range<Integer>) - Method in class com.google.googlejavaformat.java.JavaOutput
- append(String, Range<Integer>) - Method in class com.google.googlejavaformat.Output
-
Output a string.
- appendLevel - Variable in class com.google.googlejavaformat.DocBuilder
-
A possibly earlier
Doc.Levelfor appending text, à la Philip Wadler. - appendLine(StringBuilder, String) - Static method in exception com.google.googlejavaformat.java.UsageException
- appendLines(StringBuilder, String[]) - Static method in exception com.google.googlejavaformat.java.UsageException
- appendSource(String) - Method in class com.google.googlejavaformat.java.SnippetFormatter.SnippetWrapper
- appendSpaces(int) - Method in class com.google.googlejavaformat.java.javadoc.JavadocWriter
- applyReplacements(JavaInput, TreeRangeMap<Integer, String>) - Static method in class com.google.googlejavaformat.java.ModifierOrderer
-
Applies replacements to the given string.
- applyReplacements(String, RangeMap<Integer, String>) - Static method in class com.google.googlejavaformat.java.RemoveUnusedImports
-
Applies the replacements to the given source, and re-format any edited javadoc.
- applyReplacements(String, TreeRangeMap<Integer, String>) - Static method in class com.google.googlejavaformat.java.StringWrapper
-
Applies replacements to the given string.
- applyReplacements(String, List<Replacement>) - Static method in class com.google.googlejavaformat.java.JavaOutput
- ARG_SPLITTER - Static variable in class com.google.googlejavaformat.java.CommandLineOptionsParser
- argList(List<? extends ExpressionTree>) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
- argumentsAreTabular(List<? extends ExpressionTree>) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
Returns the number of columns if the arguments arg laid out in a grid, or else
-1. - asModifier(ImmutableList<Input.Token>) - Static method in class com.google.googlejavaformat.java.ModifierOrderer
- asModifier(Input.Token) - Static method in class com.google.googlejavaformat.java.ModifierOrderer
-
Returns the given token as a
Modifier, ornullif it is not a modifier. - assumeFilename - Variable in class com.google.googlejavaformat.java.CommandLineOptions
- assumeFilename - Variable in class com.google.googlejavaformat.java.CommandLineOptions.Builder
- assumeFilename() - Method in class com.google.googlejavaformat.java.CommandLineOptions
-
Return the name to use for diagnostics when formatting standard input.
- assumeFilename(String) - Method in class com.google.googlejavaformat.java.CommandLineOptions.Builder
- atStartOfLine - Variable in class com.google.googlejavaformat.java.javadoc.JavadocWriter
- AUTO_INDENT - com.google.googlejavaformat.java.javadoc.JavadocWriter.AutoIndent
- AutoIndent() - Constructor for enum com.google.googlejavaformat.java.javadoc.JavadocWriter.AutoIndent
- AutoOneOf_JavaInputAstVisitor_AnnotationOrModifier - Class in com.google.googlejavaformat.java
- AutoOneOf_JavaInputAstVisitor_AnnotationOrModifier() - Constructor for class com.google.googlejavaformat.java.AutoOneOf_JavaInputAstVisitor_AnnotationOrModifier
- AutoOneOf_JavaInputAstVisitor_AnnotationOrModifier.Impl_annotation - Class in com.google.googlejavaformat.java
- AutoOneOf_JavaInputAstVisitor_AnnotationOrModifier.Impl_modifier - Class in com.google.googlejavaformat.java
- AutoOneOf_JavaInputAstVisitor_AnnotationOrModifier.Parent_ - Class in com.google.googlejavaformat.java
- AutoValue_FormatFileCallable_Result - Class in com.google.googlejavaformat.java
- AutoValue_FormatFileCallable_Result(Path, String, String, FormatterException) - Constructor for class com.google.googlejavaformat.java.AutoValue_FormatFileCallable_Result
- AutoValue_JavaFormatterOptions - Class in com.google.googlejavaformat.java
- AutoValue_JavaFormatterOptions(boolean, boolean, JavaFormatterOptions.Style) - Constructor for class com.google.googlejavaformat.java.AutoValue_JavaFormatterOptions
- AutoValue_JavaFormatterOptions.Builder - Class in com.google.googlejavaformat.java
- AutoValue_JavaInputAstVisitor_DeclarationModifiersAndTypeAnnotations - Class in com.google.googlejavaformat.java
- AutoValue_JavaInputAstVisitor_DeclarationModifiersAndTypeAnnotations(ImmutableList<JavaInputAstVisitor.AnnotationOrModifier>, ImmutableList<AnnotationTree>) - Constructor for class com.google.googlejavaformat.java.AutoValue_JavaInputAstVisitor_DeclarationModifiersAndTypeAnnotations
B
- base - Variable in class com.google.googlejavaformat.DocBuilder
- basePos - Variable in class com.google.googlejavaformat.java.RemoveUnusedImports.UnusedImportScanner.DocTreeScanner.ReferenceScanner
- BEGIN_JAVADOC - com.google.googlejavaformat.java.javadoc.Token.Type
-
∕✱✱
- BLANK_LINE - com.google.googlejavaformat.java.javadoc.JavadocWriter.RequestedWhitespace
- blankLine(int, OpsBuilder.BlankLineWanted) - Method in class com.google.googlejavaformat.java.JavaOutput
- blankLine(int, OpsBuilder.BlankLineWanted) - Method in class com.google.googlejavaformat.Output
-
A blank line is or is not wanted here.
- blankLines - Variable in class com.google.googlejavaformat.java.JavaOutput
- blankLineWanted(OpsBuilder.BlankLineWanted) - Method in class com.google.googlejavaformat.OpsBuilder
-
Force or suppress a blank line here in the output.
- BlankLineWanted() - Constructor for class com.google.googlejavaformat.OpsBuilder.BlankLineWanted
- blockIndent - Variable in class com.google.googlejavaformat.java.javadoc.JavadocWriter
- BLOCKQUOTE_CLOSE_PATTERN - Static variable in class com.google.googlejavaformat.java.javadoc.JavadocLexer
- BLOCKQUOTE_CLOSE_TAG - com.google.googlejavaformat.java.javadoc.Token.Type
- BLOCKQUOTE_OPEN_PATTERN - Static variable in class com.google.googlejavaformat.java.javadoc.JavadocLexer
- BLOCKQUOTE_OPEN_TAG - com.google.googlejavaformat.java.javadoc.Token.Type
- BR_PATTERN - Static variable in class com.google.googlejavaformat.java.javadoc.JavadocLexer
- BR_TAG - com.google.googlejavaformat.java.javadoc.Token.Type
- braceDepth - Variable in class com.google.googlejavaformat.java.javadoc.JavadocLexer
- BracesOrNot() - Constructor for enum com.google.googlejavaformat.java.JavaInputAstVisitor.BracesOrNot
- Break(Doc.FillMode, String, Indent, Optional<Output.BreakTag>) - Constructor for class com.google.googlejavaformat.Doc.Break
- breakAndIndentTrailingComment - Variable in class com.google.googlejavaformat.Doc.Token
- breakAndIndentTrailingComment() - Method in class com.google.googlejavaformat.Doc.Token
-
Force a line break and indent trailing javadoc or block comments.
- breakDoc(Doc.Break) - Method in class com.google.googlejavaformat.DocBuilder
- breakFillList(Optional<Output.BreakTag>) - Static method in class com.google.googlejavaformat.java.JavaInputAstVisitor
- breakList(Optional<Output.BreakTag>) - Static method in class com.google.googlejavaformat.java.JavaInputAstVisitor
- breakOp() - Method in class com.google.googlejavaformat.OpsBuilder
-
Emit a
Doc.Break. - breakOp(Doc.FillMode, String, Indent) - Method in class com.google.googlejavaformat.OpsBuilder
-
Emit a generic
Doc.Break. - breakOp(Doc.FillMode, String, Indent, Optional<Output.BreakTag>) - Method in class com.google.googlejavaformat.OpsBuilder
-
Emit a generic
Doc.Break. - breakOp(Indent) - Method in class com.google.googlejavaformat.OpsBuilder
-
Emit a
Doc.Break. - breakOp(String) - Method in class com.google.googlejavaformat.OpsBuilder
- BreakOrNot() - Constructor for enum com.google.googlejavaformat.java.JavaInputAstVisitor.BreakOrNot
- breaks - Variable in class com.google.googlejavaformat.Doc.Level
- BREAKS - Static variable in class com.google.googlejavaformat.Newlines
- BreakTag() - Constructor for class com.google.googlejavaformat.Output.BreakTag
- breakToFill() - Method in class com.google.googlejavaformat.OpsBuilder
-
Emit a filled
Doc.Break. - breakToFill(String) - Method in class com.google.googlejavaformat.OpsBuilder
- broken - Variable in class com.google.googlejavaformat.Doc.Break
-
Was this break taken?
- build() - Method in class com.google.googlejavaformat.DocBuilder
-
Return the
Doc. - build() - Method in class com.google.googlejavaformat.java.AutoValue_JavaFormatterOptions.Builder
- build() - Method in class com.google.googlejavaformat.java.CommandLineOptions.Builder
- build() - Method in class com.google.googlejavaformat.java.JavaFormatterOptions.Builder
- build() - Method in class com.google.googlejavaformat.OpsBuilder
-
Build a list of
Ops from theOpsBuilder. - builder - Variable in class com.google.googlejavaformat.java.JavaInputAstVisitor
- builder() - Static method in class com.google.googlejavaformat.java.CommandLineOptions
- builder() - Static method in class com.google.googlejavaformat.java.JavaFormatterOptions
-
Returns a builder for
JavaFormatterOptions. - Builder() - Constructor for class com.google.googlejavaformat.java.AutoValue_JavaFormatterOptions.Builder
- Builder() - Constructor for class com.google.googlejavaformat.java.CommandLineOptions.Builder
- Builder() - Constructor for class com.google.googlejavaformat.java.JavaFormatterOptions.Builder
- buildMessage(String) - Static method in exception com.google.googlejavaformat.java.UsageException
- buildReplacements(String, JCTree.JCCompilationUnit, Set<String>, Multimap<String, Range<Integer>>) - Static method in class com.google.googlejavaformat.java.RemoveUnusedImports
-
Construct replacements to fix unused imports.
- buildTokens(List<JavaInput.Tok>) - Static method in class com.google.googlejavaformat.java.JavaInput
- buildToks(String) - Method in class com.google.googlejavaformat.java.JavaInput
-
Lex the input and build the list of toks.
- buildToks(String, ImmutableSet<Tokens.TokenKind>) - Static method in class com.google.googlejavaformat.java.JavaInput
-
Lex the input and build the list of toks.
C
- call() - Method in class com.google.googlejavaformat.java.FormatFileCallable
- canLocalHaveHorizontalAnnotations(ModifiersTree) - Static method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
Can a local with a set of modifiers be declared with horizontal annotations? This is currently true if there is at most one parameterless annotation, and no others.
- CASE_TREE_GET_LABELS - Static variable in class com.google.googlejavaformat.java.RemoveUnusedImports.UnusedImportScanner
- caseTreeGetLabels() - Static method in class com.google.googlejavaformat.java.RemoveUnusedImports.UnusedImportScanner
- changed() - Method in class com.google.googlejavaformat.java.FormatFileCallable.Result
- characterRanges(String) - Method in class com.google.googlejavaformat.java.FormatFileCallable
- characterRangesToTokenRanges(Collection<Range<Integer>>) - Method in class com.google.googlejavaformat.java.JavaInput
- characterRangeToTokenRange(Range<Integer>) - Method in class com.google.googlejavaformat.java.JavaInput
-
Convert from a character range to a token range.
- CharStream - Class in com.google.googlejavaformat.java.javadoc
-
String reader designed for use from the lexer.
- CharStream(String) - Constructor for class com.google.googlejavaformat.java.javadoc.CharStream
- checkClosed(int) - Method in class com.google.googlejavaformat.OpsBuilder
-
Checks that all open ops in the op stream have matching close ops.
- checkForTypeAnnotation(ImportTree) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
- checkMatchingTags() - Method in class com.google.googlejavaformat.java.javadoc.JavadocLexer
- CLASS_BODY_DECLARATIONS - com.google.googlejavaformat.java.SnippetFormatter.SnippetKind
- CLASS_START - Static variable in class com.google.googlejavaformat.java.ImportOrderer
-
Tokens.TokenKinds that indicate the start of a type definition. - classDeclarationTypeList(String, List<? extends Tree>) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
- close() - Method in class com.google.googlejavaformat.DocBuilder
-
Close the current
Doc.Level. - close() - Method in class com.google.googlejavaformat.OpsBuilder
-
Close the current level, by emitting a
CloseOp. - CLOSE - com.google.googlejavaformat.CloseOp
- closeBraces(int) - Method in class com.google.googlejavaformat.java.SnippetFormatter.SnippetWrapper
- CloseOp - Enum in com.google.googlejavaformat
-
A
CloseOpcloses a level. - CloseOp() - Constructor for enum com.google.googlejavaformat.CloseOp
- closeTagPattern(String) - Static method in class com.google.googlejavaformat.java.javadoc.JavadocLexer
- CODE_CLOSE_PATTERN - Static variable in class com.google.googlejavaformat.java.javadoc.JavadocLexer
- CODE_CLOSE_TAG - com.google.googlejavaformat.java.javadoc.Token.Type
- CODE_OPEN_PATTERN - Static variable in class com.google.googlejavaformat.java.javadoc.JavadocLexer
- CODE_OPEN_TAG - com.google.googlejavaformat.java.javadoc.Token.Type
- codeDepth - Variable in class com.google.googlejavaformat.java.javadoc.JavadocLexer
- CollapseEmptyOrNot() - Constructor for enum com.google.googlejavaformat.java.JavaInputAstVisitor.CollapseEmptyOrNot
- COLON_SPLITTER - Static variable in class com.google.googlejavaformat.java.CommandLineOptionsParser
- column - Variable in class com.google.googlejavaformat.Doc.State
- column - Variable in class com.google.googlejavaformat.FormatterDiagnostic
- column() - Method in class com.google.googlejavaformat.FormatterDiagnostic
-
Returns the 0-indexed column number on which the error occurred, or
-1if the error does not have a column. - columnI - Variable in class com.google.googlejavaformat.java.JavaInput.Tok
- columnLimit - Variable in class com.google.googlejavaformat.java.StringWrapper.Reflower
- com.google.googlejavaformat - package com.google.googlejavaformat
- com.google.googlejavaformat.java - package com.google.googlejavaformat.java
- com.google.googlejavaformat.java.filer - package com.google.googlejavaformat.java.filer
- com.google.googlejavaformat.java.javadoc - package com.google.googlejavaformat.java.javadoc
- COMMA_SPLITTER - Static variable in class com.google.googlejavaformat.java.CommandLineOptionsParser
- CommandLineOptions - Class in com.google.googlejavaformat.java
-
Command line options for google-java-format.
- CommandLineOptions(ImmutableList<String>, boolean, ImmutableRangeSet<Integer>, ImmutableList<Integer>, ImmutableList<Integer>, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, Optional<String>, boolean, boolean) - Constructor for class com.google.googlejavaformat.java.CommandLineOptions
- CommandLineOptions.Builder - Class in com.google.googlejavaformat.java
- CommandLineOptionsParser - Class in com.google.googlejavaformat.java
-
A parser for
CommandLineOptions. - CommandLineOptionsParser() - Constructor for class com.google.googlejavaformat.java.CommandLineOptionsParser
- comments - Variable in class com.google.googlejavaformat.java.JavacTokens.CommentSavingTokenizer
- comments() - Method in class com.google.googlejavaformat.java.JavacTokens.CommentSavingTokenizer
- CommentSavingTokenizer(ScannerFactory, char[], int) - Constructor for class com.google.googlejavaformat.java.JavacTokens.CommentSavingTokenizer
- commentsHelper - Variable in class com.google.googlejavaformat.java.JavaOutput
- CommentsHelper - Interface in com.google.googlejavaformat
-
Rewrite comments.
- CommentWithTextAndPosition(int, int, String) - Constructor for class com.google.googlejavaformat.java.JavacTokens.CommentWithTextAndPosition
- COMPACT_RECORD_CONSTRUCTOR - Static variable in class com.google.googlejavaformat.java.JavaInputAstVisitor
- COMPARATOR - Static variable in class com.google.googlejavaformat.java.JavaInputAstVisitor.AnnotationOrModifier
- compareTo(JavaInputAstVisitor.AnnotationOrModifier) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor.AnnotationOrModifier
- compareTo(ModifierOrderer.ModifierTokens) - Method in class com.google.googlejavaformat.java.ModifierOrderer.ModifierTokens
- COMPILATION_UNIT - com.google.googlejavaformat.java.SnippetFormatter.SnippetKind
- computeBreakAndSplit(CommentsHelper, int, Doc.State, Optional<Doc.Break>, List<Doc>) - Static method in class com.google.googlejavaformat.Doc.Level
-
Lay out a Break-separated group of Docs in the current Level.
- computeBreaks(CommentsHelper, int, Doc.State) - Method in class com.google.googlejavaformat.Doc.Break
- computeBreaks(CommentsHelper, int, Doc.State) - Method in class com.google.googlejavaformat.Doc
-
Make breaking decisions for a
Doc. - computeBreaks(CommentsHelper, int, Doc.State) - Method in class com.google.googlejavaformat.Doc.Level
- computeBreaks(CommentsHelper, int, Doc.State) - Method in class com.google.googlejavaformat.Doc.Space
- computeBreaks(CommentsHelper, int, Doc.State) - Method in class com.google.googlejavaformat.Doc.Tok
- computeBreaks(CommentsHelper, int, Doc.State) - Method in class com.google.googlejavaformat.Doc.Token
- computeBreaks(Doc.State, int, boolean) - Method in class com.google.googlejavaformat.Doc.Break
- computeBroken(CommentsHelper, int, Doc.State) - Method in class com.google.googlejavaformat.Doc.Level
-
Compute breaks for a
Doc.Levelthat spans multiple lines. - computeFlat() - Method in class com.google.googlejavaformat.Doc.Break
- computeFlat() - Method in class com.google.googlejavaformat.Doc
-
Compute the
Doc's flat value. - computeFlat() - Method in class com.google.googlejavaformat.Doc.Level
- computeFlat() - Method in class com.google.googlejavaformat.Doc.Space
- computeFlat() - Method in class com.google.googlejavaformat.Doc.Tok
- computeFlat() - Method in class com.google.googlejavaformat.Doc.Token
- computeRange() - Method in class com.google.googlejavaformat.Doc.Break
- computeRange() - Method in class com.google.googlejavaformat.Doc
- computeRange() - Method in class com.google.googlejavaformat.Doc.Level
- computeRange() - Method in class com.google.googlejavaformat.Doc.Space
- computeRange() - Method in class com.google.googlejavaformat.Doc.Tok
- computeRange() - Method in class com.google.googlejavaformat.Doc.Token
- computeRanges(List<? extends Input.Tok>) - Method in class com.google.googlejavaformat.InputOutput
- computeSplit(CommentsHelper, int, List<Doc>, Doc.State) - Static method in class com.google.googlejavaformat.Doc.Level
- computeWidth() - Method in class com.google.googlejavaformat.Doc.Break
- computeWidth() - Method in class com.google.googlejavaformat.Doc
-
Compute the
Doc's width. - computeWidth() - Method in class com.google.googlejavaformat.Doc.Level
- computeWidth() - Method in class com.google.googlejavaformat.Doc.Space
- computeWidth() - Method in class com.google.googlejavaformat.Doc.Tok
- computeWidth() - Method in class com.google.googlejavaformat.Doc.Token
- condition - Variable in class com.google.googlejavaformat.Indent.If
- conditional(Output.BreakTag) - Static method in class com.google.googlejavaformat.OpsBuilder.BlankLineWanted
-
Emit a blank line if the given break is taken.
- ConditionalBlankLine(Iterable<Output.BreakTag>) - Constructor for class com.google.googlejavaformat.OpsBuilder.BlankLineWanted.ConditionalBlankLine
- Const(int) - Constructor for class com.google.googlejavaformat.Indent.Const
- consumeToken() - Method in class com.google.googlejavaformat.java.javadoc.JavadocLexer
- containsBreaks(String) - Static method in class com.google.googlejavaformat.Newlines
-
Returns true if the input contains any line breaks.
- contents - Variable in class com.google.googlejavaformat.java.SnippetFormatter.SnippetWrapper
- continuingFooterTag - Variable in class com.google.googlejavaformat.java.javadoc.JavadocWriter
- continuingListCount - Variable in class com.google.googlejavaformat.java.javadoc.JavadocWriter
- continuingListItemCount - Variable in class com.google.googlejavaformat.java.javadoc.JavadocWriter
- continuingListItemOfInnermostList - Variable in class com.google.googlejavaformat.java.javadoc.JavadocWriter
-
Whether we are inside an
<li>element, excluding the case in which the<li>contains a<ul>or<ol>that we are also inside -- unless of course we're inside an<li>element in that inner list :) - count(String) - Static method in class com.google.googlejavaformat.Newlines
-
Returns the number of line breaks in the input.
- create(int, int, String) - Static method in class com.google.googlejavaformat.FormatterDiagnostic
- create(int, int, String) - Static method in class com.google.googlejavaformat.java.Replacement
- create(Path, String, String, FormatterException) - Static method in class com.google.googlejavaformat.java.FormatFileCallable.Result
- create(ImmutableList<Input.Token>) - Static method in class com.google.googlejavaformat.java.ModifierOrderer.ModifierTokens
- create(ImmutableList<JavaInputAstVisitor.AnnotationOrModifier>, ImmutableList<AnnotationTree>) - Static method in class com.google.googlejavaformat.java.JavaInputAstVisitor.DeclarationModifiersAndTypeAnnotations
- create(String) - Static method in class com.google.googlejavaformat.FormatterDiagnostic
- createClassFile(CharSequence, Element...) - Method in class com.google.googlejavaformat.java.filer.FormattingFiler
- createDiagnostic(int, String) - Method in class com.google.googlejavaformat.Input
-
Construct a diagnostic.
- createIndentationString(int) - Method in class com.google.googlejavaformat.java.SnippetFormatter
- createResource(JavaFileManager.Location, CharSequence, CharSequence, Element...) - Method in class com.google.googlejavaformat.java.filer.FormattingFiler
- createSourceFile(CharSequence, Element...) - Method in class com.google.googlejavaformat.java.filer.FormattingFiler
- createVisitor(String, OpsBuilder, JavaFormatterOptions) - Static method in class com.google.googlejavaformat.java.Formatter
- curr - Variable in class com.google.googlejavaformat.Newlines.LineIterator
- curr - Variable in class com.google.googlejavaformat.Newlines.LineOffsetIterator
D
- DeclarationKind() - Constructor for enum com.google.googlejavaformat.java.JavaInputAstVisitor.DeclarationKind
- declarationModifiers - Variable in class com.google.googlejavaformat.java.AutoValue_JavaInputAstVisitor_DeclarationModifiersAndTypeAnnotations
- declarationModifiers() - Method in class com.google.googlejavaformat.java.AutoValue_JavaInputAstVisitor_DeclarationModifiersAndTypeAnnotations
- declarationModifiers() - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor.DeclarationModifiersAndTypeAnnotations
- DeclarationModifiersAndTypeAnnotations() - Constructor for class com.google.googlejavaformat.java.JavaInputAstVisitor.DeclarationModifiersAndTypeAnnotations
- declareMany(List<VariableTree>, JavaInputAstVisitor.Direction) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
- declareOne(JavaInputAstVisitor.DeclarationKind, JavaInputAstVisitor.Direction, Optional<ModifiersTree>, Tree, Name, String, String, Optional<ExpressionTree>, Optional<String>, Optional<ExpressionTree>, Optional<DimensionHelpers.TypeWithDims>) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
Declare one variable or variable-like thing.
- decrementIfPositive() - Method in class com.google.googlejavaformat.java.javadoc.NestingCounter
- DEFAULT_FILE_SIZE - Static variable in class com.google.googlejavaformat.java.filer.FormattingJavaFileObject
-
A rough estimate of the average file size: 80 chars per line, 500 lines.
- defaultOptions() - Static method in class com.google.googlejavaformat.java.JavaFormatterOptions
-
Returns the default formatting options.
- deindentPreCodeBlock(ImmutableList.Builder<Token>, PeekingIterator<Token>) - Static method in class com.google.googlejavaformat.java.javadoc.JavadocLexer
- deindentPreCodeBlocks(List<Token>) - Static method in class com.google.googlejavaformat.java.javadoc.JavadocLexer
-
Adjust indentation inside `
- delegate - Variable in class com.google.googlejavaformat.java.filer.FormattingFiler
- depth - Variable in class com.google.googlejavaformat.OpsBuilder
-
The number of unclosed open ops in the input stream.
- depth() - Method in class com.google.googlejavaformat.OpsBuilder
-
Returns the number of unclosed open ops in the input stream.
- diagnostic(String) - Method in class com.google.googlejavaformat.OpsBuilder
-
Create a
FormatterDiagnosticat the current position. - diagnostics - Variable in error com.google.googlejavaformat.FormattingError
- diagnostics - Variable in exception com.google.googlejavaformat.java.FormatterException
- diagnostics() - Method in error com.google.googlejavaformat.FormattingError
- diagnostics() - Method in exception com.google.googlejavaformat.java.FormatterException
- DimensionHelpers - Class in com.google.googlejavaformat.java
-
Utilities for working with array dimensions.
- DimensionHelpers() - Constructor for class com.google.googlejavaformat.java.DimensionHelpers
- DimensionHelpers.SortedDims - Enum in com.google.googlejavaformat.java
- DimensionHelpers.TypeWithDims - Class in com.google.googlejavaformat.java
-
The array dimension specifiers (including any type annotations) associated with a type.
- DimensionsOrNot() - Constructor for enum com.google.googlejavaformat.java.JavaInputAstVisitor.DimensionsOrNot
- dims - Variable in class com.google.googlejavaformat.java.DimensionHelpers.TypeWithDims
- Direction() - Constructor for enum com.google.googlejavaformat.java.JavaInputAstVisitor.Direction
- Doc - Class in com.google.googlejavaformat
- Doc() - Constructor for class com.google.googlejavaformat.Doc
- Doc.Break - Class in com.google.googlejavaformat
-
A leaf node in a
Docfor an optional break. - Doc.FillMode - Enum in com.google.googlejavaformat
- Doc.Level - Class in com.google.googlejavaformat
-
A
Levelinside aDoc. - Doc.Space - Class in com.google.googlejavaformat
-
A Leaf node in a
Docfor a non-breaking space. - Doc.State - Class in com.google.googlejavaformat
-
State for writing.
- Doc.Tok - Class in com.google.googlejavaformat
-
A leaf node in a
Docfor a non-token. - Doc.Token - Class in com.google.googlejavaformat
-
A leaf
Docfor a token. - Doc.Token.RealOrImaginary - Enum in com.google.googlejavaformat
-
Is a Token a real token, or imaginary (e.g., a token generated incorrectly, or an EOF)?
- DocBuilder - Class in com.google.googlejavaformat
- DocBuilder() - Constructor for class com.google.googlejavaformat.DocBuilder
-
Start to build a
DocBuilder. - docs - Variable in class com.google.googlejavaformat.Doc.Level
- DOCS_LINK - Static variable in exception com.google.googlejavaformat.java.UsageException
- DocTreeScanner() - Constructor for class com.google.googlejavaformat.java.RemoveUnusedImports.UnusedImportScanner.DocTreeScanner
- docTreeSymbolScanner - Variable in class com.google.googlejavaformat.java.RemoveUnusedImports.UnusedImportScanner
- DOT_SPLITTER - Static variable in class com.google.googlejavaformat.java.ImportOrderer
- dotExpressionArgsAndParen(ExpressionTree, Indent, Indent) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
- dotExpressionUpToArgs(ExpressionTree, Optional<Output.BreakTag>) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
- drain() - Method in class com.google.googlejavaformat.OpsBuilder
-
Output any remaining tokens from the input stream (e.g.
- dropEmptyDeclarations() - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
Skips over extra semi-colons at the top-level, or in a class member declaration lists.
- dryRun - Variable in class com.google.googlejavaformat.java.CommandLineOptions.Builder
- dryRun - Variable in class com.google.googlejavaformat.java.CommandLineOptions
- dryRun() - Method in class com.google.googlejavaformat.java.CommandLineOptions
-
Print the paths of the files whose contents would change if the formatter were run normally.
- dryRun(boolean) - Method in class com.google.googlejavaformat.java.CommandLineOptions.Builder
E
- elseIndent - Variable in class com.google.googlejavaformat.Indent.If
- empty() - Static method in class com.google.googlejavaformat.java.JavaInputAstVisitor.DeclarationModifiersAndTypeAnnotations
- empty() - Static method in class com.google.googlejavaformat.java.ModifierOrderer.ModifierTokens
- EMPTY_RANGE - Static variable in class com.google.googlejavaformat.Doc
- EMPTY_RANGE - Static variable in class com.google.googlejavaformat.InputOutput
- EMPTY_RANGE - Static variable in class com.google.googlejavaformat.java.Formatter
- END_JAVADOC - com.google.googlejavaformat.java.javadoc.Token.Type
-
✱∕
- endPos - Variable in class com.google.googlejavaformat.java.JavacTokens.CommentWithTextAndPosition
- endPos - Variable in class com.google.googlejavaformat.java.JavacTokens.RawTok
- endPos() - Method in class com.google.googlejavaformat.java.JavacTokens.RawTok
-
The end position.
- endPosition() - Method in class com.google.googlejavaformat.java.ModifierOrderer.ModifierTokens
- endTok(Input.Token) - Static method in class com.google.googlejavaformat.java.JavaOutput
-
The last non-whitespace Tok in the Token.
- EOF_COMMENT - Static variable in class com.google.googlejavaformat.java.JavacTokens
-
The lexer eats terminal comments, so feed it one we don't care about.
- equals(Object) - Method in class com.google.googlejavaformat.java.AutoOneOf_JavaInputAstVisitor_AnnotationOrModifier.Impl_annotation
- equals(Object) - Method in class com.google.googlejavaformat.java.AutoOneOf_JavaInputAstVisitor_AnnotationOrModifier.Impl_modifier
- equals(Object) - Method in class com.google.googlejavaformat.java.AutoValue_FormatFileCallable_Result
- equals(Object) - Method in class com.google.googlejavaformat.java.AutoValue_JavaFormatterOptions
- equals(Object) - Method in class com.google.googlejavaformat.java.AutoValue_JavaInputAstVisitor_DeclarationModifiersAndTypeAnnotations
- equals(Object) - Method in class com.google.googlejavaformat.java.Replacement
- errorDiagnostic(Diagnostic<?>) - Static method in class com.google.googlejavaformat.java.Formatter
- errWriter - Variable in class com.google.googlejavaformat.java.Main
- eval() - Method in class com.google.googlejavaformat.Indent.Const
- eval() - Method in class com.google.googlejavaformat.Indent
- eval() - Method in class com.google.googlejavaformat.Indent.If
- exception - Variable in class com.google.googlejavaformat.java.AutoValue_FormatFileCallable_Result
- exception() - Method in class com.google.googlejavaformat.java.AutoValue_FormatFileCallable_Result
- exception() - Method in class com.google.googlejavaformat.java.FormatFileCallable.Result
- expandParamsFiles(Iterable<String>, List<String>) - Static method in class com.google.googlejavaformat.java.CommandLineOptionsParser
-
Pre-processes an argument list, expanding arguments of the form
@filenameby reading the content of the file and appending whitespace-delimited options toarguments. - expandToBreakableRegions(Range<Integer>) - Method in class com.google.googlejavaformat.java.JavaOutput
-
Expand a token range to start and end on acceptable boundaries for re-formatting.
- EXPRESSION - com.google.googlejavaformat.java.SnippetFormatter.SnippetKind
- expressionsAreParallel(List<List<ExpressionTree>>, int, int) - Static method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
Returns true if
atLeastMof the expressions in the given column are the same kind. - extractDims(Tree, DimensionHelpers.SortedDims) - Static method in class com.google.googlejavaformat.java.DimensionHelpers
-
Returns a (possibly re-ordered)
DimensionHelpers.TypeWithDimsfor the given type. - extractDims(Deque<List<AnnotationTree>>, Tree) - Static method in class com.google.googlejavaformat.java.DimensionHelpers
-
Accumulates a flattened list of array dimensions specifiers with type annotations, and returns the base type.
F
- FIELD - com.google.googlejavaformat.java.JavaInputAstVisitor.DeclarationKind
- fieldAnnotationDirection(ModifiersTree) - Static method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
Should a field with a set of modifiers be declared with horizontal annotations? This is currently true if all annotations are parameterless annotations.
- files - Variable in class com.google.googlejavaformat.java.CommandLineOptions.Builder
- files - Variable in class com.google.googlejavaformat.java.CommandLineOptions
- files() - Method in class com.google.googlejavaformat.java.CommandLineOptions
-
The files to format.
- filesBuilder() - Method in class com.google.googlejavaformat.java.CommandLineOptions.Builder
- fillFirstArgument(ExpressionTree, List<ExpressionTree>, Indent) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
- fillMode - Variable in class com.google.googlejavaformat.Doc.Break
- FillMode() - Constructor for enum com.google.googlejavaformat.Doc.FillMode
- findIdentifier(int, ImmutableSet<String>) - Method in class com.google.googlejavaformat.java.ImportOrderer
-
Returns the index of the first place where one of the given identifiers occurs, or
Optional.empty()if there is none. - first() - Method in class com.google.googlejavaformat.java.ModifierOrderer.ModifierTokens
- FIRST_STATIC_MEMBER - com.google.googlejavaformat.java.TypeNameClassifier.TyParseState
-
The current prefix is a type, followed by a single static member access.
- firstBreak(String) - Static method in class com.google.googlejavaformat.Newlines
-
Returns the index of the first break in the input, or
-1. - FirstDeclarationsOrNot() - Constructor for enum com.google.googlejavaformat.java.JavaInputAstVisitor.FirstDeclarationsOrNot
- fixImports(String) - Method in class com.google.googlejavaformat.java.FormatFileCallable
- fixImportsOnly - Variable in class com.google.googlejavaformat.java.CommandLineOptions.Builder
- fixImportsOnly - Variable in class com.google.googlejavaformat.java.CommandLineOptions
- fixImportsOnly() - Method in class com.google.googlejavaformat.java.CommandLineOptions
-
Fix imports, but do no formatting.
- fixImportsOnly(boolean) - Method in class com.google.googlejavaformat.java.CommandLineOptions.Builder
- flat - Variable in class com.google.googlejavaformat.Doc.Break
- flat - Variable in class com.google.googlejavaformat.Doc
- flatten(String, JCTree.JCCompilationUnit, TreePath, TreePath, AtomicBoolean) - Static method in class com.google.googlejavaformat.java.StringWrapper
-
Flattens the given binary expression tree, and extracts the subset that contains the given path and any adjacent nodes that are also string literals.
- flush() - Method in class com.google.googlejavaformat.java.JavaOutput
-
Flush any incomplete last line, then add the EOF token into our data structures.
- FOOTER_JAVADOC_TAG_START - com.google.googlejavaformat.java.javadoc.Token.Type
-
The
@foothat begins a block Javadoc tag like@throws. - FOOTER_TAG_PATTERN - Static variable in class com.google.googlejavaformat.java.javadoc.JavadocLexer
- forceBreakList(Optional<Output.BreakTag>) - Static method in class com.google.googlejavaformat.java.JavaInputAstVisitor
- FORCED - com.google.googlejavaformat.Doc.FillMode
- FORCED_NEWLINE - com.google.googlejavaformat.java.javadoc.Token.Type
-
A newline in a
<pre>or<table>section. - forcedBreak() - Method in class com.google.googlejavaformat.OpsBuilder
-
Emit a forced
Doc.Break. - forcedBreak(Indent) - Method in class com.google.googlejavaformat.OpsBuilder
-
Emit a forced
Doc.Break. - format(JavaInput, JavaOutput, JavaFormatterOptions) - Static method in class com.google.googlejavaformat.java.Formatter
-
Construct a
Formattergiven a Java compilation unit. - 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.
- 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_SPECIFIER - Static variable in class com.google.googlejavaformat.java.JavaInputAstVisitor
- formatAnnotationOrModifier(Deque<JavaInputAstVisitor.AnnotationOrModifier>) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
- formatArrayIndices(Deque<ExpressionTree>) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
Lays out one or more array indices.
- 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, Path, String, JavaFormatterOptions) - Constructor for class com.google.googlejavaformat.java.FormatFileCallable
- FormatFileCallable.Result - Class in com.google.googlejavaformat.java
- formatFiles(CommandLineOptions, JavaFormatterOptions) - Method in class com.google.googlejavaformat.java.Main
- formatJavadoc - Variable in class com.google.googlejavaformat.java.AutoValue_JavaFormatterOptions.Builder
- formatJavadoc - Variable in class com.google.googlejavaformat.java.AutoValue_JavaFormatterOptions
- formatJavadoc - Variable in class com.google.googlejavaformat.java.CommandLineOptions.Builder
- formatJavadoc - Variable in class com.google.googlejavaformat.java.CommandLineOptions
- formatJavadoc() - Method in class com.google.googlejavaformat.java.AutoValue_JavaFormatterOptions
- formatJavadoc() - Method in class com.google.googlejavaformat.java.CommandLineOptions
- formatJavadoc() - Method in class com.google.googlejavaformat.java.JavaFormatterOptions
- formatJavadoc(boolean) - Method in class com.google.googlejavaformat.java.AutoValue_JavaFormatterOptions.Builder
- formatJavadoc(boolean) - Method in class com.google.googlejavaformat.java.CommandLineOptions.Builder
- formatJavadoc(boolean) - Method in class com.google.googlejavaformat.java.JavaFormatterOptions.Builder
- formatJavadoc(String, int) - 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.
- formatSourceAndFixImports(String) - Method in class com.google.googlejavaformat.java.Formatter
-
Formats an input string (a Java compilation unit) and fixes imports.
- formatStdin(CommandLineOptions, JavaFormatterOptions) - Method in class com.google.googlejavaformat.java.Main
- formatter - Variable in class com.google.googlejavaformat.java.filer.FormattingFiler
- formatter - Variable in class com.google.googlejavaformat.java.filer.FormattingJavaFileObject
- formatter - Variable in class com.google.googlejavaformat.java.SnippetFormatter
- 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.
- FormatterDiagnostic(int, int, String) - Constructor for class com.google.googlejavaformat.FormatterDiagnostic
- FormatterException - Exception in com.google.googlejavaformat.java
-
Checked exception class for formatter errors.
- FormatterException(FormatterDiagnostic) - Constructor for exception com.google.googlejavaformat.java.FormatterException
- FormatterException(Iterable<FormatterDiagnostic>) - Constructor for exception com.google.googlejavaformat.java.FormatterException
- FormatterException(String) - 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
Filerimplementation which formats Java source files with aFormatter. - FormattingFiler(Filer) - Constructor for class com.google.googlejavaformat.java.filer.FormattingFiler
- FormattingFiler(Filer, Messager) - Constructor for class com.google.googlejavaformat.java.filer.FormattingFiler
-
Create a new
FormattingFiler. - FormattingJavaFileObject - Class in com.google.googlejavaformat.java.filer
-
A
JavaFileObjectdecorator which formats source code. - FormattingJavaFileObject(JavaFileObject, Formatter, Messager) - Constructor for class com.google.googlejavaformat.java.filer.FormattingJavaFileObject
-
Create a new
FormattingJavaFileObject. - from(String) - Static method in enum com.google.googlejavaformat.java.TypeNameClassifier.JavaCaseFormat
-
Classifies an identifier's case format.
- fromJavacDiagnostics(Iterable<Diagnostic<? extends JavaFileObject>>) - Static method in exception com.google.googlejavaformat.java.FormatterException
- fromVariable(VariableTree) - Static method in enum com.google.googlejavaformat.java.JavaInputAstVisitor.VarArgsOrNot
- fullCommentPattern() - Static method in class com.google.googlejavaformat.java.javadoc.JavadocLexer
G
- generateTokens() - Method in class com.google.googlejavaformat.java.javadoc.JavadocLexer
- genSym() - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
- getArrayBase(ExpressionTree) - Static method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
Returns the base expression of an erray access, e.g.
- getArrayIndices(ExpressionTree) - Static method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
Returns all array indices for the given expression, e.g.
- getColumn() - Method in interface com.google.googlejavaformat.Input.Tok
-
Return the
Tok's0-based column number. - getColumn() - Method in class com.google.googlejavaformat.java.JavaInput.Tok
- getColumnNumber(int) - Method in class com.google.googlejavaformat.Input
-
Converts a character offset in the input to a 0-based column number.
- getColumnNumber(int) - Method in class com.google.googlejavaformat.java.JavaInput
- getComments(Tokens.Token, Map<Tokens.Comment, JavacTokens.CommentWithTextAndPosition>) - Static method in class com.google.googlejavaformat.java.JavacTokens
- getCommentsHelper() - Method in class com.google.googlejavaformat.java.JavaOutput
- getCommentsHelper() - Method in class com.google.googlejavaformat.Output
-
Get the
CommentsHelper. - getEnclosingTypeDeclaration(TreePath) - Static method in class com.google.googlejavaformat.java.Trees
-
Returns the enclosing type declaration (class, enum, interface, or annotation) for the given path.
- getEndPosition(Tree, TreePath) - Static method in class com.google.googlejavaformat.java.Trees
-
Returns the source end position of the node.
- getEndPosition(JCTree.JCCompilationUnit, Tree) - Static method in class com.google.googlejavaformat.java.StringWrapper
- getFlat() - Method in class com.google.googlejavaformat.Doc
-
Return a
Doc's flat-string value; not defined (and never called) if theDoccontains forced breaks. - getFormatReplacements(RangeSet<Integer>) - Method in class com.google.googlejavaformat.java.JavaOutput
-
Emit a list of
Replacements to convert from input to output. - getFormatReplacements(String, Collection<Range<Integer>>) - Method in class com.google.googlejavaformat.java.Formatter
-
Emit a list of
Replacements to convert from input to output. - getI(Input.Token) - Static method in class com.google.googlejavaformat.OpsBuilder
- getIndex() - Method in interface com.google.googlejavaformat.Input.Tok
-
Return the
Tok's index. - getIndex() - Method in class com.google.googlejavaformat.java.JavaInput.Tok
- getInput() - Method in class com.google.googlejavaformat.OpsBuilder
-
Get the
OpsBuilder'sInput. - getKind() - Method in class com.google.googlejavaformat.java.AutoOneOf_JavaInputAstVisitor_AnnotationOrModifier.Impl_annotation
- getKind() - Method in class com.google.googlejavaformat.java.AutoOneOf_JavaInputAstVisitor_AnnotationOrModifier.Impl_modifier
- getKind() - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor.AnnotationOrModifier
- getkN() - Method in class com.google.googlejavaformat.Input
-
Get the number of toks.
- getkN() - Method in class com.google.googlejavaformat.java.JavaInput
-
Get the number of toks.
- getLength(Tree, TreePath) - Static method in class com.google.googlejavaformat.java.Trees
-
Returns the length of the source for the node.
- getLine(int) - Method in class com.google.googlejavaformat.InputOutput
-
Get a line.
- getLineCount() - Method in class com.google.googlejavaformat.InputOutput
-
Get the line count.
- getLineEnding(String) - Static method in class com.google.googlejavaformat.Newlines
-
Returns the terminating line break in the input, or
nullif the input does not end in a break. - getLineNumber(int) - Method in class com.google.googlejavaformat.Input
-
Converts a character offset in the input to a line number.
- getLineNumber(int) - Method in class com.google.googlejavaformat.java.JavaInput
- getMethodName(MethodInvocationTree) - Static method in class com.google.googlejavaformat.java.Trees
-
Returns the simple name of a (possibly qualified) method invocation expression.
- getMethodReceiver(MethodInvocationTree) - Static method in class com.google.googlejavaformat.java.JavaInputAstVisitor
- getMethodReceiver(MethodInvocationTree) - Static method in class com.google.googlejavaformat.java.Trees
-
Returns the receiver of a qualified method invocation expression, or
null. - getModifierTokens(Iterator<? extends Input.Token>) - Static method in class com.google.googlejavaformat.java.ModifierOrderer
- getNextToken(Input, int) - Static method in class com.google.googlejavaformat.java.JavaInputAstVisitor
- getOriginalText() - Method in interface com.google.googlejavaformat.Input.Tok
-
The
Tok's original text (before processing escapes). - getOriginalText() - Method in class com.google.googlejavaformat.java.JavaInput.Tok
- getPermitsClause(ClassTree) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
Gets the permits clause for the given node.
- getPlusIndent() - Method in class com.google.googlejavaformat.Doc.Break
-
Return the
Break's extra indent. - getPlusIndentCommentsBefore() - Method in class com.google.googlejavaformat.Doc.Token
-
How much extra to indent comments before the
Token. - getPosition() - Method in interface com.google.googlejavaformat.Input.Tok
-
Return the
Tok's0-based position. - getPosition() - Method in class com.google.googlejavaformat.java.JavaInput.Tok
- getPositionToColumnMap() - Method in class com.google.googlejavaformat.Input
- getPositionToColumnMap() - Method in class com.google.googlejavaformat.java.JavaInput
- getPositionTokenMap() - Method in class com.google.googlejavaformat.Input
-
A map from [start, end] position ranges to
Input.Tokens. - getPositionTokenMap() - Method in class com.google.googlejavaformat.java.JavaInput
-
Get the navigable map from position to
JavaInput.Token. - getQualifiedIdentifier(JCTree) - Static method in class com.google.googlejavaformat.java.RemoveUnusedImports
- getRanges(int) - Method in class com.google.googlejavaformat.InputOutput
-
Get the
RangeofInput.Toks lying in any part on a line. - getRawCharactersReflectively(int, int) - Method in class com.google.googlejavaformat.java.JavacTokens.CommentSavingTokenizer
- getReflowReplacements() - Method in class com.google.googlejavaformat.java.StringWrapper.Reflower
- getReflowReplacements(int, String) - Static method in class com.google.googlejavaformat.java.StringWrapper
- getReplacementString() - Method in class com.google.googlejavaformat.java.Replacement
-
The string to replace the range of characters with.
- getReplaceRange() - Method in class com.google.googlejavaformat.java.Replacement
-
The range of characters in the original source to replace.
- getResource(JavaFileManager.Location, CharSequence, CharSequence) - Method in class com.google.googlejavaformat.java.filer.FormattingFiler
- getSimpleName(ImportTree) - Static method in class com.google.googlejavaformat.java.JavaInputAstVisitor
- getSimpleName(JCTree) - Static method in class com.google.googlejavaformat.java.RemoveUnusedImports
- getSourceForNode(Tree, TreePath) - Static method in class com.google.googlejavaformat.java.Trees
-
Returns the source text for the node.
- getSourcePos(int) - Method in class com.google.googlejavaformat.java.JavacTokens.CommentWithTextAndPosition
-
Returns the source position of the character at index
indexin the comment text. - getSourceVersions() - Method in class com.google.googlejavaformat.java.GoogleJavaFormatTool
- getStartPosition(Tree) - Static method in class com.google.googlejavaformat.java.StringWrapper
- getStartPosition(Tree) - Static method in class com.google.googlejavaformat.java.Trees
-
Returns the source start position of the node.
- getStripIndent() - Static method in class com.google.googlejavaformat.java.StringWrapper
- getText() - Method in class com.google.googlejavaformat.Input
- getText() - Method in interface com.google.googlejavaformat.Input.Tok
-
The
Tok's text. - getText() - Method in class com.google.googlejavaformat.java.JavacTokens.CommentWithTextAndPosition
- getText() - Method in class com.google.googlejavaformat.java.JavaInput
-
Get the input text.
- getText() - Method in class com.google.googlejavaformat.java.JavaInput.Tok
- getTok() - Method in interface com.google.googlejavaformat.Input.Token
-
Get the token's
Input.Tok. - getTok() - Method in class com.google.googlejavaformat.java.JavaInput.Token
-
Get the token's
JavaInput.Tok. - getToken() - Method in class com.google.googlejavaformat.Doc.Token
-
Return the wrapped
Input.Token. - getToken(int) - Method in class com.google.googlejavaformat.Input
-
Get the Token by index.
- getToken(int) - Method in class com.google.googlejavaformat.java.JavaInput
-
Get the Token by index.
- getTokens() - Method in class com.google.googlejavaformat.Input
-
Get the input tokens.
- getTokens() - Method in class com.google.googlejavaformat.java.JavaInput
-
Get the input tokens.
- getTokens(String, Context, Set<Tokens.TokenKind>) - Static method in class com.google.googlejavaformat.java.JavacTokens
-
Lex the input and return a list of
JavacTokens.RawToks. - getToksAfter() - Method in interface com.google.googlejavaformat.Input.Token
-
Get the later
Input.Toks assigned to thisToken. - getToksAfter() - Method in class com.google.googlejavaformat.java.JavaInput.Token
-
Get the later
JavaInput.Toks assigned to thisToken. - getToksAfter() - Method in class com.google.googlejavaformat.java.ModifierOrderer.ModifierTokens
- getToksBefore() - Method in interface com.google.googlejavaformat.Input.Token
-
Get the earlier
Input.Toks assigned to thisToken. - getToksBefore() - Method in class com.google.googlejavaformat.java.JavaInput.Token
-
Get the earlier
JavaInput.Toks assigned to thisToken. - getToksBefore() - Method in class com.google.googlejavaformat.java.ModifierOrderer.ModifierTokens
- getType() - Method in class com.google.googlejavaformat.java.javadoc.Token
- getValue() - Method in class com.google.googlejavaformat.java.javadoc.Token
- getValue(String, Iterator<String>, String) - Static method in class com.google.googlejavaformat.java.CommandLineOptionsParser
- getWidth() - Method in class com.google.googlejavaformat.Doc
-
Return the width of a
Doc. - getWidth(List<Doc>) - Static method in class com.google.googlejavaformat.Doc.Level
-
Get the width of a sequence of
Docs. - GOOGLE - com.google.googlejavaformat.java.JavaFormatterOptions.Style
-
The default Google Java Style configuration.
- GOOGLE_IMPORT_COMPARATOR - Static variable in class com.google.googlejavaformat.java.ImportOrderer
-
A
Comparatorthat ordersImportOrderer.Imports by Google Style, defined at https://google.github.io/styleguide/javaguide.html#s3.3.3-import-ordering-and-spacing. - GoogleJavaFormatTool - Class in com.google.googlejavaformat.java
-
Provide a way to be invoked without necessarily starting a new VM.
- GoogleJavaFormatTool() - Constructor for class com.google.googlejavaformat.java.GoogleJavaFormatTool
- GoogleJavaFormatToolProvider - Class in com.google.googlejavaformat.java
-
Provide a way to be invoked without necessarily starting a new VM.
- GoogleJavaFormatToolProvider() - Constructor for class com.google.googlejavaformat.java.GoogleJavaFormatToolProvider
- GoogleJavaFormatVersion - Class in com.google.googlejavaformat.java
- GoogleJavaFormatVersion() - Constructor for class com.google.googlejavaformat.java.GoogleJavaFormatVersion
- guessLineSeparator(String) - Static method in class com.google.googlejavaformat.Newlines
-
Returns the first line separator in the text, or
"\n"if the text does not contain a single line separator. - guessToken(String) - Method in class com.google.googlejavaformat.OpsBuilder
-
Emit an optional token iff it exists on the input.
H
- handleLogStatement(MethodInvocationTree) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
Special-cases log statements, to output:
- handleModule(boolean, CompilationUnitTree) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
- handleStream(List<ExpressionTree>) - Static method in class com.google.googlejavaformat.java.JavaInputAstVisitor
- hasDeclarationAnnotation() - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor.DeclarationModifiersAndTypeAnnotations
- hasEscapedNewlineAt(String, int) - Static method in class com.google.googlejavaformat.java.StringWrapper
- hasEscapedWhitespaceAt(String, int) - Static method in class com.google.googlejavaformat.java.StringWrapper
- hashCode() - Method in class com.google.googlejavaformat.java.AutoOneOf_JavaInputAstVisitor_AnnotationOrModifier.Impl_annotation
- hashCode() - Method in class com.google.googlejavaformat.java.AutoOneOf_JavaInputAstVisitor_AnnotationOrModifier.Impl_modifier
- hashCode() - Method in class com.google.googlejavaformat.java.AutoValue_FormatFileCallable_Result
- hashCode() - Method in class com.google.googlejavaformat.java.AutoValue_JavaFormatterOptions
- hashCode() - Method in class com.google.googlejavaformat.java.AutoValue_JavaInputAstVisitor_DeclarationModifiersAndTypeAnnotations
- hashCode() - Method in class com.google.googlejavaformat.java.Replacement
- hasJavaDoc(Tree) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
Does this declaration have javadoc preceding it?
- hasMultipleNewlines(String) - Static method in class com.google.googlejavaformat.java.javadoc.JavadocLexer
- hasNewlineAt(String, int) - Static method in class com.google.googlejavaformat.Newlines
-
Returns the length of the newline sequence at the current offset, or
-1. - hasNext() - Method in class com.google.googlejavaformat.Newlines.LineIterator
- hasNext() - Method in class com.google.googlejavaformat.Newlines.LineOffsetIterator
- hasOnlyShortItems(List<? extends ExpressionTree>) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
- hasTrailingToken(Input, List<? extends Tree>, String) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
Does this list of trees end with the specified token?
- HEADER_CLOSE_PATTERN - Static variable in class com.google.googlejavaformat.java.javadoc.JavadocLexer
- HEADER_CLOSE_TAG - com.google.googlejavaformat.java.javadoc.Token.Type
- HEADER_OPEN_PATTERN - Static variable in class com.google.googlejavaformat.java.javadoc.JavadocLexer
- HEADER_OPEN_TAG - com.google.googlejavaformat.java.javadoc.Token.Type
- help - Variable in class com.google.googlejavaformat.java.CommandLineOptions.Builder
- help - Variable in class com.google.googlejavaformat.java.CommandLineOptions
- help() - Method in class com.google.googlejavaformat.java.CommandLineOptions
-
Print usage information.
- help(boolean) - Method in class com.google.googlejavaformat.java.CommandLineOptions.Builder
- HORIZONTAL - com.google.googlejavaformat.java.JavaInputAstVisitor.Direction
- HTML_COMMENT - com.google.googlejavaformat.java.javadoc.Token.Type
- HTML_COMMENT_PATTERN - Static variable in class com.google.googlejavaformat.java.javadoc.JavadocLexer
I
- idx - Variable in class com.google.googlejavaformat.Newlines.LineIterator
- idx - Variable in class com.google.googlejavaformat.Newlines.LineOffsetIterator
- If(Output.BreakTag, Indent, Indent) - Constructor for class com.google.googlejavaformat.Indent.If
- iLine - Variable in class com.google.googlejavaformat.java.JavaOutput
- IMAGINARY - com.google.googlejavaformat.Doc.Token.RealOrImaginary
- Impl_annotation(AnnotationTree) - Constructor for class com.google.googlejavaformat.java.AutoOneOf_JavaInputAstVisitor_AnnotationOrModifier.Impl_annotation
- Impl_modifier(Input.Tok) - Constructor for class com.google.googlejavaformat.java.AutoOneOf_JavaInputAstVisitor_AnnotationOrModifier.Impl_modifier
- Import(String, String, boolean) - Constructor for class com.google.googlejavaformat.java.ImportOrderer.Import
- IMPORT_OR_CLASS_START - Static variable in class com.google.googlejavaformat.java.ImportOrderer
-
We use this set to find the first import, and again to check that there are no imports after the place we stopped gathering them.
- importComparator - Variable in class com.google.googlejavaformat.java.ImportOrderer
- imported - Variable in class com.google.googlejavaformat.java.ImportOrderer.Import
- imported() - Method in class com.google.googlejavaformat.java.ImportOrderer.Import
-
The name being imported, for example
java.util.List. - ImportOrderer - Class in com.google.googlejavaformat.java
-
Orders imports in Java source code.
- ImportOrderer(String, ImmutableList<JavaInput.Tok>, JavaFormatterOptions.Style) - Constructor for class com.google.googlejavaformat.java.ImportOrderer
- ImportOrderer.Import - Class in com.google.googlejavaformat.java
-
An import statement.
- ImportOrderer.ImportsAndIndex - Class in com.google.googlejavaformat.java
- ImportOrderer.StringAndIndex - Class in com.google.googlejavaformat.java
- imports - Variable in class com.google.googlejavaformat.java.ImportOrderer.ImportsAndIndex
- ImportsAndIndex(ImmutableSortedSet<ImportOrderer.Import>, int) - Constructor for class com.google.googlejavaformat.java.ImportOrderer.ImportsAndIndex
- increment() - Method in class com.google.googlejavaformat.java.javadoc.NestingCounter
- incrementIfPositive() - Method in class com.google.googlejavaformat.java.javadoc.NestingCounter
- indent - Variable in class com.google.googlejavaformat.Doc.State
- indent(int) - Method in class com.google.googlejavaformat.java.JavaOutput
- indent(int) - Method in class com.google.googlejavaformat.Output
-
Indent by outputting
indentspaces. - Indent - Class in com.google.googlejavaformat
- Indent() - Constructor for class com.google.googlejavaformat.Indent
- Indent.Const - Class in com.google.googlejavaformat
-
A constant function, returning a constant indent.
- Indent.If - Class in com.google.googlejavaformat
-
A conditional function, whose value depends on whether a break was taken.
- INDENTATION_SIZE - Static variable in class com.google.googlejavaformat.java.SnippetFormatter
- indentationMultiplier - Variable in enum com.google.googlejavaformat.java.JavaFormatterOptions.Style
- indentationMultiplier() - Method in class com.google.googlejavaformat.java.JavaFormatterOptions
-
Returns the multiplier for the unit of indent.
- indentationMultiplier() - Method in enum com.google.googlejavaformat.java.JavaFormatterOptions.Style
- indentForMoeEndStripComment - Variable in class com.google.googlejavaformat.java.javadoc.JavadocWriter
- indentJavadoc(List<String>, int) - Method in class com.google.googlejavaformat.java.JavaCommentsHelper
- indentLineComments(List<String>, int) - Method in class com.google.googlejavaformat.java.JavaCommentsHelper
- indentMultiplier - Variable in class com.google.googlejavaformat.java.JavaInputAstVisitor
- indentTextBlocks(TreeRangeMap<Integer, String>, List<Tree>) - Method in class com.google.googlejavaformat.java.StringWrapper.Reflower
- INDEPENDENT - com.google.googlejavaformat.Doc.FillMode
- index - Variable in class com.google.googlejavaformat.java.ImportOrderer.ImportsAndIndex
- index - Variable in class com.google.googlejavaformat.java.ImportOrderer.StringAndIndex
- index - Variable in class com.google.googlejavaformat.java.JavaInput.Tok
- indexes(Stream<T>, Predicate<T>) - Static method in class com.google.googlejavaformat.java.JavaInputAstVisitor
- indices - Variable in class com.google.googlejavaformat.Newlines.LineIterator
- inExpression - Variable in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
A record of whether we have visited into an expression.
- inExpression() - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
- inferParagraphTags(List<Token>) - Static method in class com.google.googlejavaformat.java.javadoc.JavadocLexer
-
Where the input has two consecutive line breaks between literals, insert a
<p>tag between the literals. - INLINE_TAG_OPEN_PATTERN - Static variable in class com.google.googlejavaformat.java.javadoc.JavadocLexer
- innerIndent() - Method in class com.google.googlejavaformat.java.javadoc.JavadocWriter
- inPlace - Variable in class com.google.googlejavaformat.java.CommandLineOptions.Builder
- inPlace - Variable in class com.google.googlejavaformat.java.CommandLineOptions
- inPlace() - Method in class com.google.googlejavaformat.java.CommandLineOptions
-
Format files in place.
- inPlace(boolean) - Method in class com.google.googlejavaformat.java.CommandLineOptions.Builder
- input - Variable in class com.google.googlejavaformat.java.AutoValue_FormatFileCallable_Result
- input - Variable in class com.google.googlejavaformat.java.FormatFileCallable
- input - Variable in class com.google.googlejavaformat.java.javadoc.JavadocLexer
- input - Variable in class com.google.googlejavaformat.java.StringWrapper.Reflower
- input - Variable in class com.google.googlejavaformat.Newlines.LineIterator
- input - Variable in class com.google.googlejavaformat.Newlines.LineOffsetIterator
- input - Variable in class com.google.googlejavaformat.OpsBuilder
- input() - Method in class com.google.googlejavaformat.java.AutoValue_FormatFileCallable_Result
- input() - Method in class com.google.googlejavaformat.java.FormatFileCallable.Result
- Input - Class in com.google.googlejavaformat
-
An input to the formatter.
- Input() - Constructor for class com.google.googlejavaformat.Input
- Input.Tok - Interface in com.google.googlejavaformat
-
A
Tok("tock") is a token, or a comment, or a newline, or a maximal string of blanks. - Input.Token - Interface in com.google.googlejavaformat
-
A
Tokenis a language-level token. - InputOutput - Class in com.google.googlejavaformat
- InputOutput() - Constructor for class com.google.googlejavaformat.InputOutput
- inputPosition - Variable in class com.google.googlejavaformat.OpsBuilder
- inStream - Variable in class com.google.googlejavaformat.java.Main
- INTEGERS - Static variable in class com.google.googlejavaformat.Doc
- INTEGERS - Static variable in class com.google.googlejavaformat.InputOutput
- isAndroid() - Method in class com.google.googlejavaformat.java.ImportOrderer.Import
-
True if this is an Android import per AOSP style.
- isAnnotation() - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor.AnnotationOrModifier
- isArrayValue(ExpressionTree) - Static method in class com.google.googlejavaformat.java.JavaInputAstVisitor
- isComment() - Method in interface com.google.googlejavaformat.Input.Tok
-
Is the
Toka comment? - isComment() - Method in class com.google.googlejavaformat.java.JavaInput.Tok
- isComment(String) - Method in class com.google.googlejavaformat.java.JavaOutput
- isEmpty() - Method in class com.google.googlejavaformat.java.ModifierOrderer.ModifierTokens
- isExhausted() - Method in class com.google.googlejavaformat.java.javadoc.CharStream
- isForced() - Method in class com.google.googlejavaformat.Doc.Break
-
Is the
Breakforced? - isForcedBreak(Op) - Static method in class com.google.googlejavaformat.OpsBuilder
- isFormatMethod(List<? extends ExpressionTree>) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
Identifies String formatting methods like
String.format(java.lang.String, java.lang.Object...)which we prefer to format as: - isIdentifierToken(int) - Method in class com.google.googlejavaformat.java.ImportOrderer
- isJava() - Method in class com.google.googlejavaformat.java.ImportOrderer.Import
-
True if this is a Java import per AOSP style.
- isJavadocComment() - Method in interface com.google.googlejavaformat.Input.Tok
-
Is the
Toka javadoc comment? - isJavadocComment() - Method in class com.google.googlejavaformat.java.JavaInput.Tok
- isModifier() - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor.AnnotationOrModifier
- isModifier(String) - Static method in class com.google.googlejavaformat.java.JavaInputAstVisitor
- isNewline() - Method in interface com.google.googlejavaformat.Input.Tok
-
Is the
Toka newline? - isNewline() - Method in class com.google.googlejavaformat.java.JavaInput.Tok
- isNewline(String) - Static method in class com.google.googlejavaformat.Newlines
-
Returns true if the entire input string is a recognized line break.
- isNewlineToken(int) - Method in class com.google.googlejavaformat.java.ImportOrderer
- isParamComment(JavaInput.Tok) - Static method in class com.google.googlejavaformat.java.JavaInput
- isPositive() - Method in class com.google.googlejavaformat.java.javadoc.NestingCounter
- isReal() - Method in enum com.google.googlejavaformat.Doc.Token.RealOrImaginary
- isSelection() - Method in class com.google.googlejavaformat.java.CommandLineOptions
-
Returns true if partial formatting was selected.
- isSingleUnit - Variable in enum com.google.googlejavaformat.java.TypeNameClassifier.TyParseState
- isSingleUnit() - Method in enum com.google.googlejavaformat.java.TypeNameClassifier.TyParseState
- isSlashSlashComment() - Method in interface com.google.googlejavaformat.Input.Tok
-
Is the
Toka "//" comment? - isSlashSlashComment() - Method in class com.google.googlejavaformat.java.JavaInput.Tok
- isSlashSlashCommentToken(int) - Method in class com.google.googlejavaformat.java.ImportOrderer
- isSlashStarComment() - Method in interface com.google.googlejavaformat.Input.Tok
-
Is the
Toka "/*" comment? - isSlashStarComment() - Method in class com.google.googlejavaformat.java.JavaInput.Tok
- isSpaceToken(int) - Method in class com.google.googlejavaformat.java.ImportOrderer
- isStatic - Variable in class com.google.googlejavaformat.java.ImportOrderer.Import
- isStatic() - Method in class com.google.googlejavaformat.java.ImportOrderer.Import
-
True if this is
import static. - isStringConcat(ExpressionTree) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
- isThirdParty() - Method in class com.google.googlejavaformat.java.ImportOrderer.Import
-
True if this is a third-party import per AOSP style.
- isToken - Variable in class com.google.googlejavaformat.java.JavaInput.Tok
- isToken() - Method in class com.google.googlejavaformat.java.JavaInput.Tok
- isTypeAnnotation(AnnotationTree) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
- isUnaryMinusLiteral(String) - Static method in class com.google.googlejavaformat.java.JavaInputAstVisitor
- isUnused(JCTree.JCCompilationUnit, Set<String>, Multimap<String, Range<Integer>>, JCTree, String) - Static method in class com.google.googlejavaformat.java.RemoveUnusedImports
- isVertical() - Method in enum com.google.googlejavaformat.java.JavaInputAstVisitor.Direction
- isYes() - Method in enum com.google.googlejavaformat.java.JavaInputAstVisitor.BracesOrNot
- isYes() - Method in enum com.google.googlejavaformat.java.JavaInputAstVisitor.BreakOrNot
- isYes() - Method in enum com.google.googlejavaformat.java.JavaInputAstVisitor.CollapseEmptyOrNot
- isYes() - Method in enum com.google.googlejavaformat.java.JavaInputAstVisitor.DimensionsOrNot
- isYes() - Method in enum com.google.googlejavaformat.java.JavaInputAstVisitor.FirstDeclarationsOrNot
- isYes() - Method in enum com.google.googlejavaformat.java.JavaInputAstVisitor.ReceiverParameter
- isYes() - Method in enum com.google.googlejavaformat.java.JavaInputAstVisitor.VarArgsOrNot
J
- JavaCaseFormat() - Constructor for enum com.google.googlejavaformat.java.TypeNameClassifier.JavaCaseFormat
- JavaCommentsHelper - Class in com.google.googlejavaformat.java
-
JavaCommentsHelperextendsCommentsHelperto rewrite Java comments. - JavaCommentsHelper(String, JavaFormatterOptions) - Constructor for class com.google.googlejavaformat.java.JavaCommentsHelper
- JavacTokens - Class in com.google.googlejavaformat.java
-
A wrapper around javac's lexer.
- JavacTokens() - Constructor for class com.google.googlejavaformat.java.JavacTokens
- JavacTokens.AccessibleScanner - Class in com.google.googlejavaformat.java
- JavacTokens.CommentSavingTokenizer - Class in com.google.googlejavaformat.java
-
A
JavaTokenizerthat saves comments. - JavacTokens.CommentWithTextAndPosition - Class in com.google.googlejavaformat.java
-
A
Tokens.Commentthat saves its text and start position. - JavacTokens.RawTok - Class in com.google.googlejavaformat.java
-
An unprocessed input token, including whitespace and comments.
- JavadocFormatter - Class in com.google.googlejavaformat.java.javadoc
-
Entry point for formatting Javadoc.
- JavadocFormatter() - Constructor for class com.google.googlejavaformat.java.javadoc.JavadocFormatter
- JavadocLexer - Class in com.google.googlejavaformat.java.javadoc
-
Lexer for the Javadoc formatter.
- JavadocLexer(CharStream) - Constructor for class com.google.googlejavaformat.java.javadoc.JavadocLexer
- JavadocLexer.LexException - Exception in com.google.googlejavaformat.java.javadoc
- javadocShaped(List<String>) - Static method in class com.google.googlejavaformat.java.JavaCommentsHelper
- JavadocWriter - Class in com.google.googlejavaformat.java.javadoc
-
Stateful object that accepts "requests" and "writes," producing formatted Javadoc.
- JavadocWriter(int) - Constructor for class com.google.googlejavaformat.java.javadoc.JavadocWriter
- JavadocWriter.AutoIndent - Enum in com.google.googlejavaformat.java.javadoc
- JavadocWriter.RequestedWhitespace - Enum in com.google.googlejavaformat.java.javadoc
-
The kind of whitespace that has been requested between the previous and next tokens.
- JavaFormatterOptions - Class in com.google.googlejavaformat.java
-
Options for a google-java-format invocation.
- JavaFormatterOptions() - Constructor for class com.google.googlejavaformat.java.JavaFormatterOptions
- JavaFormatterOptions.Builder - Class in com.google.googlejavaformat.java
-
A builder for
JavaFormatterOptions. - JavaFormatterOptions.Style - Enum in com.google.googlejavaformat.java
- javaInput - Variable in class com.google.googlejavaformat.java.JavaOutput
- JavaInput - Class in com.google.googlejavaformat.java
-
JavaInputextendsInputto represent a Java input document. - JavaInput(String) - Constructor for class com.google.googlejavaformat.java.JavaInput
-
Input constructor.
- JavaInput.Tok - Class in com.google.googlejavaformat.java
-
A
JavaInputis a sequence ofJavaInput.Toks that cover the Java input. - JavaInput.Token - Class in com.google.googlejavaformat.java
-
A
JavaInput.Tokencontains a tokenJavaInput.Tokand its associated non-tokens; each non-tokenJavaInput.Tokbelongs to oneJavaInput.Token. - JavaInputAstVisitor - Class in com.google.googlejavaformat.java
-
An AST visitor that builds a stream of
Ops to format from the givenCompilationUnitTree. - JavaInputAstVisitor(OpsBuilder, int) - Constructor for class com.google.googlejavaformat.java.JavaInputAstVisitor
-
The
Visitorconstructor. - JavaInputAstVisitor.AllowLeadingBlankLine - Enum in com.google.googlejavaformat.java
-
Whether to allow leading blank lines in blocks.
- JavaInputAstVisitor.AllowTrailingBlankLine - Enum in com.google.googlejavaformat.java
-
Whether to allow trailing blank lines in blocks.
- JavaInputAstVisitor.AnnotationOrModifier - Class in com.google.googlejavaformat.java
-
Represents an annotation or a modifier in a
ModifiersTree. - JavaInputAstVisitor.AnnotationOrModifier.Kind - Enum in com.google.googlejavaformat.java
- JavaInputAstVisitor.BracesOrNot - Enum in com.google.googlejavaformat.java
-
Whether to include braces.
- JavaInputAstVisitor.BreakOrNot - Enum in com.google.googlejavaformat.java
-
Whether to break or not.
- JavaInputAstVisitor.CollapseEmptyOrNot - Enum in com.google.googlejavaformat.java
-
Whether to collapse empty blocks.
- JavaInputAstVisitor.DeclarationKind - Enum in com.google.googlejavaformat.java
-
Kind of declaration.
- JavaInputAstVisitor.DeclarationModifiersAndTypeAnnotations - Class in com.google.googlejavaformat.java
-
The modifiers annotations for a declaration, grouped in to a prefix that contains all of the declaration annotations and modifiers, and a suffix of type annotations.
- JavaInputAstVisitor.DimensionsOrNot - Enum in com.google.googlejavaformat.java
-
Whether or not to include dimensions.
- JavaInputAstVisitor.Direction - Enum in com.google.googlejavaformat.java
-
Direction for Annotations (usually VERTICAL).
- JavaInputAstVisitor.FirstDeclarationsOrNot - Enum in com.google.googlejavaformat.java
-
Whether these declarations are the first in the block.
- JavaInputAstVisitor.ReceiverParameter - Enum in com.google.googlejavaformat.java
-
Whether the formal parameter declaration is a receiver.
- JavaInputAstVisitor.VarArgsOrNot - Enum in com.google.googlejavaformat.java
-
Whether or not the declaration is Varargs.
- JavaOutput - Class in com.google.googlejavaformat.java
-
JavaOutputextendsOutputto represent a Java output document. - JavaOutput(String, Input, CommentsHelper) - Constructor for class com.google.googlejavaformat.java.JavaOutput
-
JavaOutputconstructor. - joinAdjacentLiteralsAndAdjacentWhitespace(List<Token>) - Static method in class com.google.googlejavaformat.java.javadoc.JavadocLexer
-
Join together adjacent literal tokens, and join together adjacent whitespace tokens.
K
- kind - Variable in class com.google.googlejavaformat.java.JavacTokens.RawTok
- kind - Variable in class com.google.googlejavaformat.java.JavaInput.Tok
- kind() - Method in class com.google.googlejavaformat.java.JavacTokens.RawTok
-
The token kind, or
nullfor whitespace and comments. - kind() - Method in class com.google.googlejavaformat.java.JavaInput.Tok
- Kind() - Constructor for enum com.google.googlejavaformat.java.JavaInputAstVisitor.AnnotationOrModifier.Kind
- kN - Variable in class com.google.googlejavaformat.java.JavaInput
- kN - Variable in class com.google.googlejavaformat.java.JavaOutput
- kToToken - Variable in class com.google.googlejavaformat.java.JavaInput
-
Map from Tok index to the associated Token.
L
- last() - Method in class com.google.googlejavaformat.java.ModifierOrderer.ModifierTokens
- lastIndent - Variable in class com.google.googlejavaformat.Doc.State
- lastK - Variable in class com.google.googlejavaformat.java.JavaOutput
- lastPartialFormatBoundary - Variable in class com.google.googlejavaformat.OpsBuilder
- length() - Method in interface com.google.googlejavaformat.Input.Tok
-
The length of the
Tok's original text. - length() - Method in class com.google.googlejavaformat.java.javadoc.Token
- length() - Method in class com.google.googlejavaformat.java.JavaInput.Tok
- lengths - Variable in class com.google.googlejavaformat.java.CommandLineOptions.Builder
- lengths - Variable in class com.google.googlejavaformat.java.CommandLineOptions
- lengths() - Method in class com.google.googlejavaformat.java.CommandLineOptions
-
Partial formatting region lengths, paired with
offsets. - Level(Indent) - Constructor for class com.google.googlejavaformat.Doc.Level
- lex(String) - Static method in class com.google.googlejavaformat.java.javadoc.JavadocLexer
-
Takes a Javadoc comment, including ∕✱✱ and ✱∕, and returns tokens, including ∕✱✱ and ✱∕.
- LexException() - Constructor for exception com.google.googlejavaformat.java.javadoc.JavadocLexer.LexException
- line() - Method in class com.google.googlejavaformat.FormatterDiagnostic
-
Returns the line number on which the error occurred, or
-1if the error does not have a line number. - LINE_COMMENT_MISSING_SPACE_PREFIX - Static variable in class com.google.googlejavaformat.java.JavaCommentsHelper
- lineBuilder - Variable in class com.google.googlejavaformat.java.JavaOutput
- lineIterator(String) - Static method in class com.google.googlejavaformat.Newlines
-
Returns an iterator over lines in the input, including trailing whitespace.
- LineIterator(String) - Constructor for class com.google.googlejavaformat.Newlines.LineIterator
- lineMap - Variable in class com.google.googlejavaformat.java.StringWrapper.Reflower
- lineNumber - Variable in class com.google.googlejavaformat.FormatterDiagnostic
- lineOffsetIterator(String) - Static method in class com.google.googlejavaformat.Newlines
-
Returns an iterator over the start offsets of lines in the input.
- LineOffsetIterator(String) - Constructor for class com.google.googlejavaformat.Newlines.LineOffsetIterator
- lineRangesToCharRanges(String, RangeSet<Integer>) - Static method in class com.google.googlejavaformat.java.Formatter
-
Converts zero-indexed, [closed, open) line ranges in the given source file to character ranges.
- lines - Variable in class com.google.googlejavaformat.InputOutput
- lines - Variable in class com.google.googlejavaformat.java.CommandLineOptions.Builder
- lines - Variable in class com.google.googlejavaformat.java.CommandLineOptions
- lines() - Method in class com.google.googlejavaformat.java.CommandLineOptions
-
Line ranges to format.
- linesBuilder() - Method in class com.google.googlejavaformat.java.CommandLineOptions.Builder
- lineSeparator - Variable in class com.google.googlejavaformat.java.ImportOrderer
- lineSeparator - Variable in class com.google.googlejavaformat.java.JavaCommentsHelper
- lineSeparator - Variable in class com.google.googlejavaformat.java.JavaOutput
- LIST_CLOSE_PATTERN - Static variable in class com.google.googlejavaformat.java.javadoc.JavadocLexer
- LIST_CLOSE_TAG - com.google.googlejavaformat.java.javadoc.Token.Type
- LIST_ITEM_CLOSE_PATTERN - Static variable in class com.google.googlejavaformat.java.javadoc.JavadocLexer
- LIST_ITEM_CLOSE_TAG - com.google.googlejavaformat.java.javadoc.Token.Type
- LIST_ITEM_OPEN_PATTERN - Static variable in class com.google.googlejavaformat.java.javadoc.JavadocLexer
- LIST_ITEM_OPEN_TAG - com.google.googlejavaformat.java.javadoc.Token.Type
- LIST_OPEN_PATTERN - Static variable in class com.google.googlejavaformat.java.javadoc.JavadocLexer
- LIST_OPEN_TAG - com.google.googlejavaformat.java.javadoc.Token.Type
- LITERAL - com.google.googlejavaformat.java.javadoc.Token.Type
-
Anything else:
foo,<b>,{@code foo}etc. - LITERAL_PATTERN - Static variable in class com.google.googlejavaformat.java.javadoc.JavadocLexer
- LOG_METHODS - Static variable in class com.google.googlejavaformat.java.JavaInputAstVisitor
- longStringLiterals - Variable in class com.google.googlejavaformat.java.StringWrapper.Reflower.LongStringsAndTextBlockScanner
- LongStringsAndTextBlockScanner(List<TreePath>, List<Tree>) - Constructor for class com.google.googlejavaformat.java.StringWrapper.Reflower.LongStringsAndTextBlockScanner
- LOWER_CAMEL - com.google.googlejavaformat.java.TypeNameClassifier.JavaCaseFormat
- LOWERCASE - com.google.googlejavaformat.java.TypeNameClassifier.JavaCaseFormat
M
- main(InputStream, PrintStream, PrintStream, String...) - Static method in class com.google.googlejavaformat.java.Main
-
Package-private main entry point used by the
Toolimplementation in the same package as this Main class. - main(InputStream, PrintWriter, PrintWriter, String...) - Static method in class com.google.googlejavaformat.java.Main
-
Package-private main entry point used by the
ToolProviderimplementation in the same package as this Main class. - main(String...) - Static method in class com.google.googlejavaformat.java.Main
-
The main method for the formatter, with some number of file names to format.
- Main - Class in com.google.googlejavaformat.java
-
The main class for the Java formatter CLI.
- Main(PrintWriter, PrintWriter, InputStream) - Constructor for class com.google.googlejavaformat.java.Main
- make() - Static method in enum com.google.googlejavaformat.CloseOp
-
Make a
CloseOp, returning a singleton since they are all the same. - make() - Static method in class com.google.googlejavaformat.Doc.Space
-
Factor method for
Space. - make(int, int) - Static method in class com.google.googlejavaformat.Indent.Const
- make(Doc.FillMode, String, Indent) - Static method in class com.google.googlejavaformat.Doc.Break
-
Make a
Break. - make(Doc.FillMode, String, Indent, Optional<Output.BreakTag>) - Static method in class com.google.googlejavaformat.Doc.Break
-
Make a
Break. - make(Indent) - Static method in class com.google.googlejavaformat.Doc.Level
-
Factory method for
Levels. - make(Indent) - Static method in class com.google.googlejavaformat.OpenOp
-
Make an ordinary
OpenOp. - make(Input.Tok) - Static method in class com.google.googlejavaformat.Doc.Tok
-
Factory method for a
Tok. - make(Input.Token, Doc.Token.RealOrImaginary, Indent, Optional<Indent>) - Static method in class com.google.googlejavaformat.Doc.Token
-
Make a
Token. - make(Output.BreakTag, Indent, Indent) - Static method in class com.google.googlejavaformat.Indent.If
- makeComment(Input.Tok) - Static method in class com.google.googlejavaformat.OpsBuilder
- makeForced() - Static method in class com.google.googlejavaformat.Doc.Break
-
Make a forced
Break. - makeKToIJ(InputOutput) - Static method in class com.google.googlejavaformat.InputOutput
-
Given an
InputOutput, compute the map from tok indices to line ranges. - makePositionToColumnMap(List<JavaInput.Tok>) - Static method in class com.google.googlejavaformat.java.JavaInput
- makeSingleLineIfPossible(int, String) - Static method in class com.google.googlejavaformat.java.javadoc.JavadocFormatter
-
Returns the given string or a one-line version of it (e.g., "∕✱✱ Tests for foos.
- markForPartialFormat() - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
- markForPartialFormat() - Method in class com.google.googlejavaformat.OpsBuilder
-
Make the boundary of a region that can be partially formatted.
- markForPartialFormat(Input.Token, Input.Token) - Method in class com.google.googlejavaformat.java.JavaOutput
- markForPartialFormat(Input.Token, Input.Token) - Method in class com.google.googlejavaformat.Output
-
Marks a region that can be partially formatted.
- MAX_ITEM_LENGTH_FOR_FILLING - Static variable in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
Allow multi-line filling (of array initializers, argument lists, and boolean expressions) for items with length less than or equal to this threshold.
- MAX_LINE_LENGTH - Static variable in class com.google.googlejavaformat.java.Formatter
- MAX_LINE_LENGTH - Static variable in class com.google.googlejavaformat.java.javadoc.JavadocFormatter
- MAX_LINE_WIDTH - Static variable in class com.google.googlejavaformat.Doc
-
The maximum supported line width.
- MAX_THREADS - Static variable in class com.google.googlejavaformat.java.Main
- maybeAddDims(Deque<ExpressionTree>, Deque<List<? extends AnnotationTree>>) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
The compiler does not always preserve the concrete syntax of annotated array dimensions, and mixed-notation array dimensions.
- maybeAddDims(Deque<List<? extends AnnotationTree>>) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
- merge(OpsBuilder.BlankLineWanted) - Method in class com.google.googlejavaformat.OpsBuilder.BlankLineWanted.ConditionalBlankLine
- merge(OpsBuilder.BlankLineWanted) - Method in class com.google.googlejavaformat.OpsBuilder.BlankLineWanted
-
Merge this blank line request with another.
- merge(OpsBuilder.BlankLineWanted) - Method in class com.google.googlejavaformat.OpsBuilder.BlankLineWanted.SimpleBlankLine
- message - Variable in class com.google.googlejavaformat.FormatterDiagnostic
- message() - Method in class com.google.googlejavaformat.FormatterDiagnostic
-
Returns a description of the problem that prevented formatting from succeeding.
- messager - Variable in class com.google.googlejavaformat.java.filer.FormattingFiler
- messager - Variable in class com.google.googlejavaformat.java.filer.FormattingJavaFileObject
- methodBody(MethodTree) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
- minusFour - Variable in class com.google.googlejavaformat.java.JavaInputAstVisitor
- minusTwo - Variable in class com.google.googlejavaformat.java.JavaInputAstVisitor
- modifier - Variable in class com.google.googlejavaformat.java.AutoOneOf_JavaInputAstVisitor_AnnotationOrModifier.Impl_modifier
- modifier - Variable in class com.google.googlejavaformat.java.ModifierOrderer.ModifierTokens
- modifier() - Method in class com.google.googlejavaformat.java.AutoOneOf_JavaInputAstVisitor_AnnotationOrModifier.Impl_modifier
- modifier() - Method in class com.google.googlejavaformat.java.AutoOneOf_JavaInputAstVisitor_AnnotationOrModifier.Parent_
- modifier() - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor.AnnotationOrModifier
- modifier() - Method in class com.google.googlejavaformat.java.ModifierOrderer.ModifierTokens
- modifier(Input.Tok) - Static method in class com.google.googlejavaformat.java.AutoOneOf_JavaInputAstVisitor_AnnotationOrModifier
- MODIFIER - com.google.googlejavaformat.java.JavaInputAstVisitor.AnnotationOrModifier.Kind
- ModifierOrderer - Class in com.google.googlejavaformat.java
-
Fixes sequences of modifiers to be in JLS order.
- ModifierOrderer() - Constructor for class com.google.googlejavaformat.java.ModifierOrderer
- ModifierOrderer.ModifierTokens - Class in com.google.googlejavaformat.java
-
A class that contains the tokens corresponding to a modifier.
- ModifierTokens(ImmutableList<Input.Token>, Modifier) - Constructor for class com.google.googlejavaformat.java.ModifierOrderer.ModifierTokens
- MOE_BEGIN_STRIP_COMMENT - com.google.googlejavaformat.java.javadoc.Token.Type
-
<!-- MOE:begin_intracomment_strip --> - MOE_BEGIN_STRIP_COMMENT_PATTERN - Static variable in class com.google.googlejavaformat.java.javadoc.JavadocLexer
- MOE_END_STRIP_COMMENT - com.google.googlejavaformat.java.javadoc.Token.Type
-
<!-- MOE:end_intracomment_strip --> - MOE_END_STRIP_COMMENT_PATTERN - Static variable in class com.google.googlejavaformat.java.javadoc.JavadocLexer
- mustBreak - Variable in class com.google.googlejavaformat.Doc.State
- mutableLines - Variable in class com.google.googlejavaformat.java.JavaOutput
N
- n - Variable in class com.google.googlejavaformat.Indent.Const
- name() - Method in class com.google.googlejavaformat.java.GoogleJavaFormatTool
- name() - Method in class com.google.googlejavaformat.java.GoogleJavaFormatToolProvider
- needWrapping(int, String) - Static method in class com.google.googlejavaformat.java.StringWrapper
-
Returns true if any lines in the given Java source exceed the column limit, or contain a
"""that could indicate a text block. - NestingCounter - Class in com.google.googlejavaformat.java.javadoc
-
Mutable integer for tracking the level of nesting.
- NestingCounter() - Constructor for class com.google.googlejavaformat.java.javadoc.NestingCounter
- newIndent - Variable in class com.google.googlejavaformat.Doc.Break
-
New indent after this break.
- NEWLINE - com.google.googlejavaformat.java.javadoc.JavadocWriter.RequestedWhitespace
- NEWLINE - Static variable in class com.google.googlejavaformat.java.javadoc.JavadocLexer
- NEWLINE_JOINER - Static variable in exception com.google.googlejavaformat.java.UsageException
- NEWLINE_PATTERN - Static variable in class com.google.googlejavaformat.java.javadoc.JavadocLexer
- Newlines - Class in com.google.googlejavaformat
-
Platform-independent newline handling.
- Newlines() - Constructor for class com.google.googlejavaformat.Newlines
- Newlines.LineIterator - Class in com.google.googlejavaformat
- Newlines.LineOffsetIterator - Class in com.google.googlejavaformat
- newlinesPending - Variable in class com.google.googlejavaformat.java.JavaOutput
- next() - Method in class com.google.googlejavaformat.Newlines.LineIterator
- next() - Method in class com.google.googlejavaformat.Newlines.LineOffsetIterator
- next(TypeNameClassifier.JavaCaseFormat) - Method in enum com.google.googlejavaformat.java.TypeNameClassifier.TyParseState
-
Transition function.
- NO - com.google.googlejavaformat.java.DimensionHelpers.SortedDims
- NO - com.google.googlejavaformat.java.JavaInputAstVisitor.AllowLeadingBlankLine
- NO - com.google.googlejavaformat.java.JavaInputAstVisitor.AllowTrailingBlankLine
- NO - com.google.googlejavaformat.java.JavaInputAstVisitor.BracesOrNot
- NO - com.google.googlejavaformat.java.JavaInputAstVisitor.BreakOrNot
- NO - com.google.googlejavaformat.java.JavaInputAstVisitor.CollapseEmptyOrNot
- NO - com.google.googlejavaformat.java.JavaInputAstVisitor.DimensionsOrNot
- NO - com.google.googlejavaformat.java.JavaInputAstVisitor.FirstDeclarationsOrNot
- NO - com.google.googlejavaformat.java.JavaInputAstVisitor.ReceiverParameter
- NO - com.google.googlejavaformat.java.JavaInputAstVisitor.VarArgsOrNot
- NO - Static variable in class com.google.googlejavaformat.OpsBuilder.BlankLineWanted
-
Never emit a blank line.
- NO_AUTO_INDENT - com.google.googlejavaformat.java.javadoc.JavadocWriter.AutoIndent
- noComments(String, JCTree.JCCompilationUnit, Tree, Tree) - Static method in class com.google.googlejavaformat.java.StringWrapper
- node - Variable in class com.google.googlejavaformat.java.DimensionHelpers.TypeWithDims
- NON_UNIX_LINE_ENDING - Static variable in class com.google.googlejavaformat.java.javadoc.JavadocLexer
- NONE - com.google.googlejavaformat.java.javadoc.JavadocWriter.RequestedWhitespace
- NONE - com.google.googlejavaformat.java.JavaInputAstVisitor.DeclarationKind
- normalizeLineEndings(String) - Static method in class com.google.googlejavaformat.java.javadoc.JavadocLexer
-
The lexer crashes on windows line endings, so for now just normalize to `\n`.
- NOT_WHITESPACE - Static variable in class com.google.googlejavaformat.java.SnippetFormatter
O
- ofAnnotation(AnnotationTree) - Static method in class com.google.googlejavaformat.java.JavaInputAstVisitor.AnnotationOrModifier
- offset - Variable in class com.google.googlejavaformat.java.SnippetFormatter.SnippetWrapper
- offsetRange(Range<Integer>, int) - Static method in class com.google.googlejavaformat.java.SnippetFormatter
- offsetRanges(List<Range<Integer>>, int) - Static method in class com.google.googlejavaformat.java.SnippetFormatter
- offsets - Variable in class com.google.googlejavaformat.java.CommandLineOptions.Builder
- offsets - Variable in class com.google.googlejavaformat.java.CommandLineOptions
- offsets() - Method in class com.google.googlejavaformat.java.CommandLineOptions
-
Character offsets for partial formatting, paired with
lengths. - ofModifier(Input.Tok) - Static method in class com.google.googlejavaformat.java.JavaInputAstVisitor.AnnotationOrModifier
- ONE_CONTENT_LINE_PATTERN - Static variable in class com.google.googlejavaformat.java.javadoc.JavadocFormatter
- oneLine - Variable in class com.google.googlejavaformat.Doc.Level
-
True if the entire
Doc.Levelfits on one line. - oneLineJavadoc(String, int) - Static method in class com.google.googlejavaformat.java.javadoc.JavadocFormatter
- op(String) - Method in class com.google.googlejavaformat.OpsBuilder
-
Emit a single- or multi-character op by breaking it into single-character
Doc.Tokens. - Op - Interface in com.google.googlejavaformat
-
An
Opis a member of the sequence of formatting operations emitted byOpsBuilderand transformed byDocBuilderinto aDoc. - open(Indent) - Method in class com.google.googlejavaformat.DocBuilder
-
Open a new
Doc.Level. - open(Indent) - Method in class com.google.googlejavaformat.OpsBuilder
-
Open a new level by emitting an
OpenOp. - OpenOp - Class in com.google.googlejavaformat
-
An
OpenOpopens a level. - OpenOp(Indent) - Constructor for class com.google.googlejavaformat.OpenOp
- openTagPattern(String) - Static method in class com.google.googlejavaformat.java.javadoc.JavadocLexer
- openWriter() - Method in class com.google.googlejavaformat.java.filer.FormattingJavaFileObject
- operatorName(ExpressionTree) - Static method in class com.google.googlejavaformat.java.Trees
-
Returns the string name of an operator, including assignment and compound assignment.
- ops - Variable in class com.google.googlejavaformat.OpsBuilder
- OpsBuilder - Class in com.google.googlejavaformat
- OpsBuilder(Input, Output) - Constructor for class com.google.googlejavaformat.OpsBuilder
-
The
OpsBuilderconstructor. - OpsBuilder.BlankLineWanted - Class in com.google.googlejavaformat
-
A request to add or remove a blank line in the output.
- OpsBuilder.BlankLineWanted.ConditionalBlankLine - Class in com.google.googlejavaformat
- OpsBuilder.BlankLineWanted.SimpleBlankLine - Class in com.google.googlejavaformat
- OPTIONAL_LINE_BREAK - com.google.googlejavaformat.java.javadoc.Token.Type
-
Token that permits but does not force a line break.
- optionalizeSpacesAfterLinks(List<Token>) - Static method in class com.google.googlejavaformat.java.javadoc.JavadocLexer
-
Replaces whitespace after a
href=...>token with an "optional link break." This allows us to output either<a href=foo>foo</a>or<a href=foo>\nfoo</a>, depending on how much space we have left on the line. - options - Variable in class com.google.googlejavaformat.java.FormatFileCallable
- options - Variable in class com.google.googlejavaformat.java.Formatter
- options - Variable in class com.google.googlejavaformat.java.JavaCommentsHelper
- optTag - Variable in class com.google.googlejavaformat.Doc.Break
- originalText - Variable in class com.google.googlejavaformat.java.JavaInput.Tok
- output - Variable in class com.google.googlejavaformat.java.AutoValue_FormatFileCallable_Result
- output - Variable in class com.google.googlejavaformat.java.javadoc.JavadocWriter
- output - Variable in class com.google.googlejavaformat.OpsBuilder
- output() - Method in class com.google.googlejavaformat.java.AutoValue_FormatFileCallable_Result
- output() - Method in class com.google.googlejavaformat.java.FormatFileCallable.Result
- Output - Class in com.google.googlejavaformat
-
An output from the formatter.
- Output() - Constructor for class com.google.googlejavaformat.Output
- Output.BreakTag - Class in com.google.googlejavaformat
-
Unique identifier for a break.
- outWriter - Variable in class com.google.googlejavaformat.java.Main
P
- PARAGRAPH_CLOSE_PATTERN - Static variable in class com.google.googlejavaformat.java.javadoc.JavadocLexer
- PARAGRAPH_CLOSE_TAG - com.google.googlejavaformat.java.javadoc.Token.Type
- PARAGRAPH_OPEN_PATTERN - Static variable in class com.google.googlejavaformat.java.javadoc.JavadocLexer
- PARAGRAPH_OPEN_TAG - com.google.googlejavaformat.java.javadoc.Token.Type
- PARAMETER - com.google.googlejavaformat.java.JavaInputAstVisitor.DeclarationKind
- PARAMETER_COMMENT - Static variable in interface com.google.googlejavaformat.CommentsHelper
- parameters - Variable in class com.google.googlejavaformat.java.FormatFileCallable
- Parent_() - Constructor for class com.google.googlejavaformat.java.AutoOneOf_JavaInputAstVisitor_AnnotationOrModifier.Parent_
- parse(Context, String) - Static method in class com.google.googlejavaformat.java.RemoveUnusedImports
- parse(Iterable<String>) - Static method in class com.google.googlejavaformat.java.CommandLineOptionsParser
-
Parses
CommandLineOptions. - parse(String, boolean) - Static method in class com.google.googlejavaformat.java.StringWrapper
-
Parses the given Java source.
- parseInteger(Iterator<String>, String, String) - Static method in class com.google.googlejavaformat.java.CommandLineOptionsParser
- parseRange(String) - Static method in class com.google.googlejavaformat.java.CommandLineOptionsParser
-
Parse a range, as in "1:12" or "42".
- parseRangeSet(RangeSet<Integer>, String) - Static method in class com.google.googlejavaformat.java.CommandLineOptionsParser
-
Parse multiple --lines flags, like {"1:12,14,20:36", "40:45,50"}.
- partialFormatRanges - Variable in class com.google.googlejavaformat.java.JavaOutput
- path - Variable in class com.google.googlejavaformat.java.AutoValue_FormatFileCallable_Result
- path - Variable in class com.google.googlejavaformat.java.FormatFileCallable
- path() - Method in class com.google.googlejavaformat.java.AutoValue_FormatFileCallable_Result
- path() - Method in class com.google.googlejavaformat.java.FormatFileCallable.Result
- peekToken() - Method in class com.google.googlejavaformat.OpsBuilder
-
Return the text of the next
Input.Token, or absent if there is none. - peekToken(int) - Method in class com.google.googlejavaformat.OpsBuilder
-
Return the text of an upcoming
Input.Token, or absent if there is none. - peekTokens(int, Predicate<Input.Tok>) - Method in class com.google.googlejavaformat.OpsBuilder
-
Returns the
Input.Toks starting at the current source position, which are satisfied by the given predicate. - plusFour - Variable in class com.google.googlejavaformat.java.JavaInputAstVisitor
- plusIndent - Variable in class com.google.googlejavaformat.Doc.Break
- plusIndent - Variable in class com.google.googlejavaformat.Doc.Level
- plusIndent - Variable in class com.google.googlejavaformat.OpenOp
- plusIndentCommentsBefore - Variable in class com.google.googlejavaformat.Doc.Token
- plusTwo - Variable in class com.google.googlejavaformat.java.JavaInputAstVisitor
- pos - Variable in class com.google.googlejavaformat.java.JavacTokens.CommentWithTextAndPosition
- pos - Variable in class com.google.googlejavaformat.java.JavacTokens.RawTok
- pos() - Method in class com.google.googlejavaformat.java.JavacTokens.RawTok
-
The start position.
- position - Variable in class com.google.googlejavaformat.java.JavaInput.Tok
- position() - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor.AnnotationOrModifier
- positionToColumnMap - Variable in class com.google.googlejavaformat.java.JavaInput
- positionTokenMap - Variable in class com.google.googlejavaformat.java.JavaInput
- postWriteModifiedContinuingListCount - Variable in class com.google.googlejavaformat.java.javadoc.JavadocWriter
- PRE_CLOSE_PATTERN - Static variable in class com.google.googlejavaformat.java.javadoc.JavadocLexer
- PRE_CLOSE_TAG - com.google.googlejavaformat.java.javadoc.Token.Type
- PRE_OPEN_PATTERN - Static variable in class com.google.googlejavaformat.java.javadoc.JavadocLexer
- PRE_OPEN_TAG - com.google.googlejavaformat.java.javadoc.Token.Type
- precedence(ExpressionTree) - Static method in class com.google.googlejavaformat.java.Trees
-
Returns the precedence of an expression's operator.
- preDepth - Variable in class com.google.googlejavaformat.java.javadoc.JavadocLexer
- PRESERVE - Static variable in class com.google.googlejavaformat.OpsBuilder.BlankLineWanted
-
Explicitly preserve blank lines from the input (e.g.
- preserveExistingFormatting() - Method in class com.google.googlejavaformat.java.javadoc.JavadocLexer
- preserveIndentation(List<String>, int) - Method in class com.google.googlejavaformat.java.JavaCommentsHelper
- processArgs(String...) - Static method in class com.google.googlejavaformat.java.Main
-
Parses and validates command-line flags.
- processComment(int, int, Tokens.Comment.CommentStyle) - Method in class com.google.googlejavaformat.java.JavacTokens.CommentSavingTokenizer
R
- range - Variable in class com.google.googlejavaformat.Doc
- range() - Method in class com.google.googlejavaformat.Doc
-
Return the
Rangeof aDoc. - ranges - Variable in class com.google.googlejavaformat.InputOutput
-
The
Ranges of the tokens or comments lying on each line, in any part. - RawTok(String, Tokens.TokenKind, int, int) - Constructor for class com.google.googlejavaformat.java.JavacTokens.RawTok
- readAndResetRecorded() - Method in class com.google.googlejavaformat.java.javadoc.CharStream
- readToken() - Method in class com.google.googlejavaformat.java.javadoc.JavadocLexer
- REAL - com.google.googlejavaformat.Doc.Token.RealOrImaginary
- realOrImaginary - Variable in class com.google.googlejavaformat.Doc.Token
- realOrImaginary() - Method in class com.google.googlejavaformat.Doc.Token
-
Is the token good? That is, does it match an
Input.Token? - RealOrImaginary() - Constructor for enum com.google.googlejavaformat.Doc.Token.RealOrImaginary
- ReceiverParameter() - Constructor for enum com.google.googlejavaformat.java.JavaInputAstVisitor.ReceiverParameter
- RECORD - Static variable in class com.google.googlejavaformat.java.JavaInputAstVisitor
- recordBroken(boolean) - Method in class com.google.googlejavaformat.Output.BreakTag
- ReferenceScanner(long) - Constructor for class com.google.googlejavaformat.java.RemoveUnusedImports.UnusedImportScanner.DocTreeScanner.ReferenceScanner
- reflow(String, int, int, int, ImmutableList<String>, boolean) - Static method in class com.google.googlejavaformat.java.StringWrapper
-
Reflows the given source text, trying to split on word boundaries.
- Reflower(int, String) - Constructor for class com.google.googlejavaformat.java.StringWrapper.Reflower
- reflowLongStrings - Variable in class com.google.googlejavaformat.java.CommandLineOptions.Builder
- reflowLongStrings - Variable in class com.google.googlejavaformat.java.CommandLineOptions
- reflowLongStrings() - Method in class com.google.googlejavaformat.java.CommandLineOptions
- reflowLongStrings(boolean) - Method in class com.google.googlejavaformat.java.CommandLineOptions.Builder
- reformatParameterComment(Input.Tok) - Static method in interface com.google.googlejavaformat.CommentsHelper
- REJECT - com.google.googlejavaformat.java.TypeNameClassifier.TyParseState
-
Anything not represented by one of the other states.
- remaining - Variable in class com.google.googlejavaformat.java.javadoc.CharStream
- remainingOnLine - Variable in class com.google.googlejavaformat.java.javadoc.JavadocWriter
- remove() - Method in class com.google.googlejavaformat.Newlines.LineIterator
- remove() - Method in class com.google.googlejavaformat.Newlines.LineOffsetIterator
- removeUnusedImports - Variable in class com.google.googlejavaformat.java.CommandLineOptions.Builder
- removeUnusedImports - Variable in class com.google.googlejavaformat.java.CommandLineOptions
- removeUnusedImports() - Method in class com.google.googlejavaformat.java.CommandLineOptions
-
Remove unused imports.
- removeUnusedImports(boolean) - Method in class com.google.googlejavaformat.java.CommandLineOptions.Builder
- removeUnusedImports(String) - Static method in class com.google.googlejavaformat.java.RemoveUnusedImports
- RemoveUnusedImports - Class in com.google.googlejavaformat.java
-
Removes unused imports from a source file.
- RemoveUnusedImports() - Constructor for class com.google.googlejavaformat.java.RemoveUnusedImports
- RemoveUnusedImports.UnusedImportScanner - Class in com.google.googlejavaformat.java
- RemoveUnusedImports.UnusedImportScanner.DocTreeScanner - Class in com.google.googlejavaformat.java
- RemoveUnusedImports.UnusedImportScanner.DocTreeScanner.ReferenceScanner - Class in com.google.googlejavaformat.java
- render(List<Token>, int) - Static method in class com.google.googlejavaformat.java.javadoc.JavadocFormatter
- reorderBySourcePosition(Deque<List<AnnotationTree>>) - Static method in class com.google.googlejavaformat.java.DimensionHelpers
-
Rotate the list of dimension specifiers until all dimensions with type annotations appear in source order.
- reorderedImportsString(ImmutableSortedSet<ImportOrderer.Import>) - Method in class com.google.googlejavaformat.java.ImportOrderer
- reorderImports() - Method in class com.google.googlejavaformat.java.ImportOrderer
- reorderImports(String) - Static method in class com.google.googlejavaformat.java.ImportOrderer
-
Deprecated.Use
ImportOrderer.reorderImports(String, Style)instead - reorderImports(String, JavaFormatterOptions.Style) - Static method in class com.google.googlejavaformat.java.ImportOrderer
-
Reorder the inputs in
text, a complete Java program. - reorderModifiers - Variable in class com.google.googlejavaformat.java.AutoValue_JavaFormatterOptions.Builder
- reorderModifiers - Variable in class com.google.googlejavaformat.java.AutoValue_JavaFormatterOptions
- reorderModifiers() - Method in class com.google.googlejavaformat.java.AutoValue_JavaFormatterOptions
- reorderModifiers() - Method in class com.google.googlejavaformat.java.JavaFormatterOptions
- reorderModifiers(boolean) - Method in class com.google.googlejavaformat.java.AutoValue_JavaFormatterOptions.Builder
- reorderModifiers(boolean) - Method in class com.google.googlejavaformat.java.JavaFormatterOptions.Builder
- reorderModifiers(JavaInput, Collection<Range<Integer>>) - Static method in class com.google.googlejavaformat.java.ModifierOrderer
-
Reorders all modifiers in the given text and within the given character ranges to be in JLS order.
- reorderModifiers(String) - Static method in class com.google.googlejavaformat.java.ModifierOrderer
-
Reorders all modifiers in the given text to be in JLS order.
- Replacement - Class in com.google.googlejavaformat.java
-
Represents a range in the original source and replacement text for that range.
- Replacement(Range<Integer>, String) - Constructor for class com.google.googlejavaformat.java.Replacement
- replacementString - Variable in class com.google.googlejavaformat.java.Replacement
- replaceRange - Variable in class com.google.googlejavaformat.java.Replacement
- requestBlankLine() - Method in class com.google.googlejavaformat.java.javadoc.JavadocWriter
- requestedMoeBeginStripComment - Variable in class com.google.googlejavaformat.java.javadoc.JavadocWriter
- requestedWhitespace - Variable in class com.google.googlejavaformat.java.javadoc.JavadocWriter
- RequestedWhitespace() - Constructor for enum com.google.googlejavaformat.java.javadoc.JavadocWriter.RequestedWhitespace
- requestMoeBeginStripComment(Token) - Method in class com.google.googlejavaformat.java.javadoc.JavadocWriter
- requestNewline() - Method in class com.google.googlejavaformat.java.javadoc.JavadocWriter
- requestWhitespace() - Method in class com.google.googlejavaformat.java.javadoc.JavadocWriter
-
Requests whitespace between the previously written token and the next written token.
- requestWhitespace(JavadocWriter.RequestedWhitespace) - Method in class com.google.googlejavaformat.java.javadoc.JavadocWriter
- reset() - Method in class com.google.googlejavaformat.java.javadoc.NestingCounter
- Result() - Constructor for class com.google.googlejavaformat.java.FormatFileCallable.Result
- rewrite(Input.Tok, int, int) - Method in interface com.google.googlejavaformat.CommentsHelper
-
Try to rewrite comments, returning rewritten text.
- rewrite(Input.Tok, int, int) - Method in class com.google.googlejavaformat.java.JavaCommentsHelper
- rowLength(List<? extends ExpressionTree>) - Static method in class com.google.googlejavaformat.java.JavaInputAstVisitor
- run(InputStream, OutputStream, OutputStream, String...) - Method in class com.google.googlejavaformat.java.GoogleJavaFormatTool
- run(PrintWriter, PrintWriter, String...) - Method in class com.google.googlejavaformat.java.GoogleJavaFormatToolProvider
S
- scan(Tree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
- scan(Tree, Void) - Method in class com.google.googlejavaformat.java.RemoveUnusedImports.UnusedImportScanner
- scanImported(int) - Method in class com.google.googlejavaformat.java.ImportOrderer
-
Scans the imported thing, the dot-separated name that comes after import [static] and before the semicolon.
- scanImports(int) - Method in class com.google.googlejavaformat.java.ImportOrderer
-
Scans a sequence of import lines.
- scanJavadoc() - Method in class com.google.googlejavaformat.java.RemoveUnusedImports.UnusedImportScanner
- separator - Variable in class com.google.googlejavaformat.java.StringWrapper.Reflower
- setCompilationUnit(JCTree.JCCompilationUnit) - Method in class com.google.googlejavaformat.java.JavaInput
- setExitIfChanged - Variable in class com.google.googlejavaformat.java.CommandLineOptions.Builder
- setExitIfChanged - Variable in class com.google.googlejavaformat.java.CommandLineOptions
- setExitIfChanged() - Method in class com.google.googlejavaformat.java.CommandLineOptions
-
Return exit code 1 if there are any formatting changes.
- setExitIfChanged(boolean) - Method in class com.google.googlejavaformat.java.CommandLineOptions.Builder
- setLines(ImmutableList<String>) - Method in class com.google.googlejavaformat.InputOutput
-
Set the lines.
- shouldInsertBlankLineAosp(ImportOrderer.Import, ImportOrderer.Import) - Static method in class com.google.googlejavaformat.java.ImportOrderer
-
Determines whether to insert a blank line between the
prevandcurrImportOrderer.Imports based on AOSP style. - shouldInsertBlankLineFn - Variable in class com.google.googlejavaformat.java.ImportOrderer
- shouldInsertBlankLineGoogle(ImportOrderer.Import, ImportOrderer.Import) - Static method in class com.google.googlejavaformat.java.ImportOrderer
-
Determines whether to insert a blank line between the
prevandcurrImportOrderer.Imports based on Google style. - SIMPLE_TAG_PATTERN - Static variable in class com.google.googlejavaformat.java.javadoc.JavadocFormatter
- SimpleBlankLine(Optional<Boolean>) - Constructor for class com.google.googlejavaformat.OpsBuilder.BlankLineWanted.SimpleBlankLine
- simpleNames(Deque<ExpressionTree>) - Static method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
Returns the simple names of expressions in a "." chain.
- skipParen(ExpressionTree) - Static method in class com.google.googlejavaformat.java.Trees
-
Skips a single parenthesized tree.
- SnippetFormatter - Class in com.google.googlejavaformat.java
-
Formats a subset of a compilation unit.
- SnippetFormatter() - Constructor for class com.google.googlejavaformat.java.SnippetFormatter
- SnippetFormatter.SnippetKind - Enum in com.google.googlejavaformat.java
-
The kind of snippet to format.
- SnippetFormatter.SnippetWrapper - Class in com.google.googlejavaformat.java
- SnippetKind() - Constructor for enum com.google.googlejavaformat.java.SnippetFormatter.SnippetKind
- snippetWrapper(SnippetFormatter.SnippetKind, String, int) - Method in class com.google.googlejavaformat.java.SnippetFormatter
- SnippetWrapper() - Constructor for class com.google.googlejavaformat.java.SnippetFormatter.SnippetWrapper
- somethingSinceNewline - Variable in class com.google.googlejavaformat.java.javadoc.JavadocLexer
- SortedDims() - Constructor for enum com.google.googlejavaformat.java.DimensionHelpers.SortedDims
- sortImports - Variable in class com.google.googlejavaformat.java.CommandLineOptions.Builder
- sortImports - Variable in class com.google.googlejavaformat.java.CommandLineOptions
- sortImports() - Method in class com.google.googlejavaformat.java.CommandLineOptions
-
Sort imports.
- sortImports(boolean) - Method in class com.google.googlejavaformat.java.CommandLineOptions.Builder
- space() - Method in class com.google.googlejavaformat.OpsBuilder
-
Emit a
Doc.Space. - Space() - Constructor for class com.google.googlejavaformat.Doc.Space
- SPACE - Static variable in class com.google.googlejavaformat.Doc.Space
- SPACE - Static variable in class com.google.googlejavaformat.OpsBuilder
- spacesPending - Variable in class com.google.googlejavaformat.java.JavaOutput
- splitByBreaks(List<Doc>, List<List<Doc>>, List<Doc.Break>) - Static method in class com.google.googlejavaformat.Doc.Level
- splitModifiers(ModifiersTree, List<? extends AnnotationTree>) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
Examines the token stream to convert the modifiers for a declaration into a
JavaInputAstVisitor.DeclarationModifiersAndTypeAnnotations. - splits - Variable in class com.google.googlejavaformat.Doc.Level
- splitToken(String) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
- stack - Variable in class com.google.googlejavaformat.DocBuilder
- STANDARD_BR_TOKEN - Static variable in class com.google.googlejavaformat.java.javadoc.JavadocFormatter
- STANDARD_P_TOKEN - Static variable in class com.google.googlejavaformat.java.javadoc.JavadocFormatter
- standardize(Token, Token) - Static method in class com.google.googlejavaformat.java.javadoc.JavadocFormatter
- standardizeBrToken(Token) - Static method in class com.google.googlejavaformat.java.javadoc.JavadocFormatter
- standardizePToken(Token) - Static method in class com.google.googlejavaformat.java.javadoc.JavadocFormatter
- START - com.google.googlejavaformat.java.TypeNameClassifier.TyParseState
-
The start state.
- START_OF_LINE_TOKENS - Static variable in class com.google.googlejavaformat.java.javadoc.JavadocWriter
-
Tokens that are always pinned to the following token.
- startPosition() - Method in class com.google.googlejavaformat.java.ModifierOrderer.ModifierTokens
- startPosition(Input.Token) - Static method in class com.google.googlejavaformat.java.JavaOutput
-
The earliest position of any Tok in the Token, including leading whitespace.
- startTok(Input.Token) - Static method in class com.google.googlejavaformat.java.JavaOutput
-
The earliest non-whitespace Tok in the Token.
- State(int, int) - Constructor for class com.google.googlejavaformat.Doc.State
- State(int, int, int, boolean) - Constructor for class com.google.googlejavaformat.Doc.State
- STATEMENTS - com.google.googlejavaformat.java.SnippetFormatter.SnippetKind
- stdin - Variable in class com.google.googlejavaformat.java.CommandLineOptions.Builder
- stdin - Variable in class com.google.googlejavaformat.java.CommandLineOptions
- stdin() - Method in class com.google.googlejavaformat.java.CommandLineOptions
-
Format input from stdin.
- stdin(boolean) - Method in class com.google.googlejavaformat.java.CommandLineOptions.Builder
- STDIN_FILENAME - Static variable in class com.google.googlejavaformat.java.Main
- string - Variable in class com.google.googlejavaformat.java.ImportOrderer.StringAndIndex
- STRING_CONCAT_DELIMITER - Static variable in class com.google.googlejavaformat.java.StringWrapper
- StringAndIndex(String, int) - Constructor for class com.google.googlejavaformat.java.ImportOrderer.StringAndIndex
- stringComponents(String, JCTree.JCCompilationUnit, List<Tree>) - Static method in class com.google.googlejavaformat.java.StringWrapper
-
Returns the source text of the given string literal trees, excluding the leading and trailing double-quotes and the `+` operator.
- stringVal - Variable in class com.google.googlejavaformat.java.JavacTokens.RawTok
- stringVal() - Method in class com.google.googlejavaformat.java.JavacTokens.RawTok
-
The escaped string value of a literal, or
nullfor other tokens. - StringWrapper - Class in com.google.googlejavaformat.java
-
Wraps string literals that exceed the column limit.
- StringWrapper() - Constructor for class com.google.googlejavaformat.java.StringWrapper
- StringWrapper.Reflower - Class in com.google.googlejavaformat.java
- StringWrapper.Reflower.LongStringsAndTextBlockScanner - Class in com.google.googlejavaformat.java
- STRIP_INDENT - Static variable in class com.google.googlejavaformat.java.StringWrapper
- stripIndent(String) - Static method in class com.google.googlejavaformat.java.StringWrapper
- stripJavadocBeginAndEnd(String) - Static method in class com.google.googlejavaformat.java.javadoc.JavadocLexer
- style - Variable in class com.google.googlejavaformat.java.AutoValue_JavaFormatterOptions.Builder
- style - Variable in class com.google.googlejavaformat.java.AutoValue_JavaFormatterOptions
- style() - Method in class com.google.googlejavaformat.java.AutoValue_JavaFormatterOptions
- style() - Method in class com.google.googlejavaformat.java.JavaFormatterOptions
-
Returns the code style.
- style(JavaFormatterOptions.Style) - Method in class com.google.googlejavaformat.java.AutoValue_JavaFormatterOptions.Builder
- style(JavaFormatterOptions.Style) - Method in class com.google.googlejavaformat.java.JavaFormatterOptions.Builder
- Style(int) - Constructor for enum com.google.googlejavaformat.java.JavaFormatterOptions.Style
- sync(int) - Method in class com.google.googlejavaformat.OpsBuilder
-
Sync to position in the input.
- sync(Tree) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
Sync to position in the input.
T
- TABLE_CLOSE_PATTERN - Static variable in class com.google.googlejavaformat.java.javadoc.JavadocLexer
- TABLE_CLOSE_TAG - com.google.googlejavaformat.java.javadoc.Token.Type
- TABLE_OPEN_PATTERN - Static variable in class com.google.googlejavaformat.java.javadoc.JavadocLexer
- TABLE_OPEN_TAG - com.google.googlejavaformat.java.javadoc.Token.Type
- tableDepth - Variable in class com.google.googlejavaformat.java.javadoc.JavadocLexer
- tags - Variable in class com.google.googlejavaformat.OpsBuilder.BlankLineWanted.ConditionalBlankLine
- taken - Variable in class com.google.googlejavaformat.Output.BreakTag
- text - Variable in class com.google.googlejavaformat.Doc.Tok
- text - Variable in class com.google.googlejavaformat.java.ImportOrderer
- text - Variable in class com.google.googlejavaformat.java.JavacTokens.CommentWithTextAndPosition
- text - Variable in class com.google.googlejavaformat.java.JavaInput
- text - Variable in class com.google.googlejavaformat.java.JavaInput.Tok
- textBlocks - Variable in class com.google.googlejavaformat.java.StringWrapper.Reflower.LongStringsAndTextBlockScanner
- thenIndent - Variable in class com.google.googlejavaformat.Indent.If
- toConsume - Variable in class com.google.googlejavaformat.java.javadoc.CharStream
- toFormatterDiagnostic(Diagnostic<?>) - Static method in exception com.google.googlejavaformat.java.FormatterException
- tok - Variable in class com.google.googlejavaformat.Doc.Tok
- tok - Variable in class com.google.googlejavaformat.java.JavaInput.Token
- tok() - Method in class com.google.googlejavaformat.Doc.Token
- Tok(int, String, String, int, int, boolean, Tokens.TokenKind) - Constructor for class com.google.googlejavaformat.java.JavaInput.Tok
-
The
Tokconstructor. - Tok(Input.Tok) - Constructor for class com.google.googlejavaformat.Doc.Tok
- token - Variable in class com.google.googlejavaformat.Doc.Token
- token(String) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
Emit a
Doc.Token. - token(String, Doc.Token.RealOrImaginary, Indent, Optional<Indent>) - Method in class com.google.googlejavaformat.OpsBuilder
- token(String, Indent) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
Emit a
Doc.Token. - Token - Class in com.google.googlejavaformat.java.javadoc
-
Javadoc token.
- Token(Input.Token, Doc.Token.RealOrImaginary, Indent, Optional<Indent>) - Constructor for class com.google.googlejavaformat.Doc.Token
- Token(Token.Type, String) - Constructor for class com.google.googlejavaformat.java.javadoc.Token
- Token(List<JavaInput.Tok>, JavaInput.Tok, List<JavaInput.Tok>) - Constructor for class com.google.googlejavaformat.java.JavaInput.Token
-
Token constructor.
- Token.Type - Enum in com.google.googlejavaformat.java.javadoc
-
Javadoc token type.
- tokenAt(int) - Method in class com.google.googlejavaformat.java.ImportOrderer
- tokenBreakTrailingComment(String, Indent) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
Emit a
Doc.Token, and breaks and indents trailing javadoc or block comments. - tokenI - Variable in class com.google.googlejavaformat.OpsBuilder
- tokens - Variable in class com.google.googlejavaformat.java.JavaInput
- tokens - Variable in class com.google.googlejavaformat.java.ModifierOrderer.ModifierTokens
- tokens() - Method in class com.google.googlejavaformat.java.ModifierOrderer.ModifierTokens
- toks - Variable in class com.google.googlejavaformat.java.ImportOrderer
- toksAfter - Variable in class com.google.googlejavaformat.java.JavaInput.Token
- toksBefore - Variable in class com.google.googlejavaformat.java.JavaInput.Token
- tokString(int, int) - Method in class com.google.googlejavaformat.java.ImportOrderer
- topLevel() - Method in class com.google.googlejavaformat.java.ImportOrderer.Import
-
The top-level package of the import.
- toReplacements(String, String) - Static method in class com.google.googlejavaformat.java.SnippetFormatter
-
Generates
Replacements rewritingsourcetoreplacement, under the assumption that they differ in whitespace alone. - toString() - Method in enum com.google.googlejavaformat.CloseOp
- toString() - Method in class com.google.googlejavaformat.Doc.Break
- toString() - Method in class com.google.googlejavaformat.Doc.Level
- toString() - Method in class com.google.googlejavaformat.Doc.Space
- toString() - Method in class com.google.googlejavaformat.Doc.State
- toString() - Method in class com.google.googlejavaformat.Doc.Tok
- toString() - Method in class com.google.googlejavaformat.Doc.Token
- toString() - Method in class com.google.googlejavaformat.DocBuilder
- toString() - Method in class com.google.googlejavaformat.FormatterDiagnostic
- toString() - Method in class com.google.googlejavaformat.Indent.Const
- toString() - Method in class com.google.googlejavaformat.Indent.If
- toString() - Method in class com.google.googlejavaformat.Input
- toString() - Method in class com.google.googlejavaformat.InputOutput
- toString() - Method in class com.google.googlejavaformat.java.AutoOneOf_JavaInputAstVisitor_AnnotationOrModifier.Impl_annotation
- toString() - Method in class com.google.googlejavaformat.java.AutoOneOf_JavaInputAstVisitor_AnnotationOrModifier.Impl_modifier
- toString() - Method in class com.google.googlejavaformat.java.AutoValue_FormatFileCallable_Result
- toString() - Method in class com.google.googlejavaformat.java.AutoValue_JavaFormatterOptions
- toString() - Method in class com.google.googlejavaformat.java.AutoValue_JavaInputAstVisitor_DeclarationModifiersAndTypeAnnotations
- toString() - Method in class com.google.googlejavaformat.java.ImportOrderer.Import
- toString() - Method in class com.google.googlejavaformat.java.JavacTokens.CommentWithTextAndPosition
- toString() - Method in class com.google.googlejavaformat.java.javadoc.JavadocWriter
- toString() - Method in class com.google.googlejavaformat.java.javadoc.Token
- toString() - Method in class com.google.googlejavaformat.java.JavaInput.Tok
- toString() - Method in class com.google.googlejavaformat.java.JavaInput.Token
- toString() - Method in class com.google.googlejavaformat.java.JavaInput
- toString() - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
- toString() - Method in class com.google.googlejavaformat.java.JavaOutput
- toString() - Method in class com.google.googlejavaformat.OpenOp
- toString() - Method in class com.google.googlejavaformat.OpsBuilder
- toString() - Method in class com.google.googlejavaformat.Output
- trailing - Variable in class com.google.googlejavaformat.java.ImportOrderer.Import
- trailing() - Method in class com.google.googlejavaformat.java.ImportOrderer.Import
-
The
//comment lines after the final;, up to and including the line terminator of the last one. - trees - Variable in class com.google.googlejavaformat.java.RemoveUnusedImports.UnusedImportScanner
- Trees - Class in com.google.googlejavaformat.java
-
Utilities for working with
Trees. - Trees() - Constructor for class com.google.googlejavaformat.java.Trees
- tryConsume(String) - Method in class com.google.googlejavaformat.java.javadoc.CharStream
- tryConsumeRegex(Pattern) - Method in class com.google.googlejavaformat.java.javadoc.CharStream
- TyParseState(boolean) - Constructor for enum com.google.googlejavaformat.java.TypeNameClassifier.TyParseState
- type - Variable in class com.google.googlejavaformat.java.javadoc.Token
- Type() - Constructor for enum com.google.googlejavaformat.java.javadoc.Token.Type
- TYPE - com.google.googlejavaformat.java.TypeNameClassifier.TyParseState
-
The current prefix is a type.
- TYPE_ANNOTATIONS - Static variable in class com.google.googlejavaformat.java.JavaInputAstVisitor
- typeAnnotations - Variable in class com.google.googlejavaformat.java.AutoValue_JavaInputAstVisitor_DeclarationModifiersAndTypeAnnotations
- typeAnnotations() - Method in class com.google.googlejavaformat.java.AutoValue_JavaInputAstVisitor_DeclarationModifiersAndTypeAnnotations
- typeAnnotations() - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor.DeclarationModifiersAndTypeAnnotations
- typeAnnotations() - Static method in class com.google.googlejavaformat.java.JavaInputAstVisitor
- typeAnnotationSimpleNames - Variable in class com.google.googlejavaformat.java.JavaInputAstVisitor
- typeDeclarationModifiers(ModifiersTree) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
- TypeNameClassifier - Class in com.google.googlejavaformat.java
-
Heuristics for classifying qualified names as types.
- TypeNameClassifier() - Constructor for class com.google.googlejavaformat.java.TypeNameClassifier
- TypeNameClassifier.JavaCaseFormat - Enum in com.google.googlejavaformat.java
-
Case formats used in Java identifiers.
- TypeNameClassifier.TyParseState - Enum in com.google.googlejavaformat.java
-
A state machine for classifying qualified names.
- typeParametersRest(List<? extends TypeParameterTree>, Indent) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
Does not omit the leading
"<", which should be associated with the type name. - typePrefixLength(List<String>) - Static method in class com.google.googlejavaformat.java.TypeNameClassifier
-
Returns the end index (inclusive) of the longest prefix that matches the naming conventions of a type or static field access, or -1 if no such prefix was found.
- TypeWithDims(Tree, ImmutableList<List<AnnotationTree>>) - Constructor for class com.google.googlejavaformat.java.DimensionHelpers.TypeWithDims
U
- unaryTag(ExpressionTree) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
- UNIFIED - com.google.googlejavaformat.Doc.FillMode
- unindent(int) - Method in class com.google.googlejavaformat.java.ImportOrderer
-
Returns the given token, or the preceding token if it is a whitespace token.
- union(Range<Integer>, Range<Integer>) - Static method in class com.google.googlejavaformat.Doc.Level
- union(Range<Integer>, Range<Integer>) - Static method in class com.google.googlejavaformat.java.JavaOutput
- unit - Variable in class com.google.googlejavaformat.java.JavaInput
- unit - Variable in class com.google.googlejavaformat.java.StringWrapper.Reflower
- UnusedImportScanner(JavacTrees) - Constructor for class com.google.googlejavaformat.java.RemoveUnusedImports.UnusedImportScanner
- updateColumn(int, String) - Static method in class com.google.googlejavaformat.java.JavaInput
- UPPER_CAMEL - com.google.googlejavaformat.java.TypeNameClassifier.JavaCaseFormat
- UPPERCASE - com.google.googlejavaformat.java.TypeNameClassifier.JavaCaseFormat
- USAGE - Static variable in exception com.google.googlejavaformat.java.UsageException
- UsageException - Exception in com.google.googlejavaformat.java
-
Checked exception class for formatter command-line usage errors.
- UsageException() - Constructor for exception com.google.googlejavaformat.java.UsageException
- UsageException(String) - Constructor for exception com.google.googlejavaformat.java.UsageException
- usedInJavadoc - Variable in class com.google.googlejavaformat.java.RemoveUnusedImports.UnusedImportScanner
- usedNames - Variable in class com.google.googlejavaformat.java.RemoveUnusedImports.UnusedImportScanner
V
- value - Variable in class com.google.googlejavaformat.java.javadoc.NestingCounter
- value - Variable in class com.google.googlejavaformat.java.javadoc.Token
- value() - Method in class com.google.googlejavaformat.java.javadoc.NestingCounter
- valueOf(boolean) - Static method in enum com.google.googlejavaformat.java.JavaInputAstVisitor.AllowLeadingBlankLine
-
Returns the enum constant of this type with the specified name.
- valueOf(boolean) - Static method in enum com.google.googlejavaformat.java.JavaInputAstVisitor.AllowTrailingBlankLine
-
Returns the enum constant of this type with the specified name.
- valueOf(boolean) - Static method in enum com.google.googlejavaformat.java.JavaInputAstVisitor.CollapseEmptyOrNot
-
Returns the enum constant of this type with the specified name.
- valueOf(boolean) - Static method in enum com.google.googlejavaformat.java.JavaInputAstVisitor.VarArgsOrNot
-
Returns the enum constant of this type with the specified name.
- 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.DimensionHelpers.SortedDims
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.googlejavaformat.java.javadoc.JavadocWriter.AutoIndent
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.googlejavaformat.java.javadoc.JavadocWriter.RequestedWhitespace
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.googlejavaformat.java.javadoc.Token.Type
-
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.JavaInputAstVisitor.AllowLeadingBlankLine
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.googlejavaformat.java.JavaInputAstVisitor.AllowTrailingBlankLine
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.googlejavaformat.java.JavaInputAstVisitor.AnnotationOrModifier.Kind
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.googlejavaformat.java.JavaInputAstVisitor.BracesOrNot
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.googlejavaformat.java.JavaInputAstVisitor.BreakOrNot
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.googlejavaformat.java.JavaInputAstVisitor.CollapseEmptyOrNot
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.googlejavaformat.java.JavaInputAstVisitor.DeclarationKind
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.googlejavaformat.java.JavaInputAstVisitor.DimensionsOrNot
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.googlejavaformat.java.JavaInputAstVisitor.Direction
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.googlejavaformat.java.JavaInputAstVisitor.FirstDeclarationsOrNot
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.googlejavaformat.java.JavaInputAstVisitor.ReceiverParameter
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.googlejavaformat.java.JavaInputAstVisitor.VarArgsOrNot
-
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.
- valueOf(String) - Static method in enum com.google.googlejavaformat.java.TypeNameClassifier.TyParseState
-
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.DimensionHelpers.SortedDims
-
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.javadoc.JavadocWriter.AutoIndent
-
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.javadoc.JavadocWriter.RequestedWhitespace
-
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.javadoc.Token.Type
-
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.JavaInputAstVisitor.AllowLeadingBlankLine
-
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.JavaInputAstVisitor.AllowTrailingBlankLine
-
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.JavaInputAstVisitor.AnnotationOrModifier.Kind
-
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.JavaInputAstVisitor.BracesOrNot
-
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.JavaInputAstVisitor.BreakOrNot
-
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.JavaInputAstVisitor.CollapseEmptyOrNot
-
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.JavaInputAstVisitor.DeclarationKind
-
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.JavaInputAstVisitor.DimensionsOrNot
-
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.JavaInputAstVisitor.Direction
-
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.JavaInputAstVisitor.FirstDeclarationsOrNot
-
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.JavaInputAstVisitor.ReceiverParameter
-
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.JavaInputAstVisitor.VarArgsOrNot
-
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.
- values() - Static method in enum com.google.googlejavaformat.java.TypeNameClassifier.TyParseState
-
Returns an array containing the constants of this enum type, in the order they are declared.
- VarArgsOrNot() - Constructor for enum com.google.googlejavaformat.java.JavaInputAstVisitor.VarArgsOrNot
- variableFragmentDims(boolean, int, Tree) - Static method in class com.google.googlejavaformat.java.JavaInputAstVisitor
- variableFragments(PeekingIterator<? extends Tree>, Tree) - Static method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
The parser expands multi-variable declarations into separate single-variable declarations.
- variableName(Name) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
- version - Variable in class com.google.googlejavaformat.java.CommandLineOptions.Builder
- version - Variable in class com.google.googlejavaformat.java.CommandLineOptions
- version() - Method in class com.google.googlejavaformat.java.CommandLineOptions
-
Print the version.
- version() - Static method in class com.google.googlejavaformat.java.GoogleJavaFormatVersion
- version(boolean) - Method in class com.google.googlejavaformat.java.CommandLineOptions.Builder
- versionString() - Static method in class com.google.googlejavaformat.java.Main
- VERTICAL - com.google.googlejavaformat.java.JavaInputAstVisitor.Direction
- verticalAnnotations(List<AnnotationTree>) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
- visit(Name) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
- visitAndBreakModifiers(ModifiersTree, JavaInputAstVisitor.Direction, Optional<Output.BreakTag>) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
Output combined modifiers and annotations and the trailing break.
- visitAnnotatedArrayType(Tree) - 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
- visitAnnotations(List<? extends AnnotationTree>, JavaInputAstVisitor.BreakOrNot, JavaInputAstVisitor.BreakOrNot) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
Helper method for annotations.
- 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, JavaInputAstVisitor.CollapseEmptyOrNot, JavaInputAstVisitor.AllowLeadingBlankLine, JavaInputAstVisitor.AllowTrailingBlankLine) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
Helper method for blocks.
- 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
- visitCase(CaseTree, Void) - Method in class com.google.googlejavaformat.java.RemoveUnusedImports.UnusedImportScanner
- visitCatch(CatchTree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
- visitCatchClause(CatchTree, JavaInputAstVisitor.AllowTrailingBlankLine) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
Helper method for
CatchTrees. - 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
- visitDirective(String, String, ExpressionTree, List<? extends ExpressionTree>) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
- visitDot(ExpressionTree) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
Output a "." node.
- visitDotWithPrefix(List<ExpressionTree>, boolean, Collection<Integer>, Doc.FillMode) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
Output a chain of dereferences where some prefix should be treated as a single syntactic unit, either because it looks like a type name or because there is only a single method invocation in the chain.
- 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
- visitEnumConstantDeclaration(VariableTree) - 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
- visitFormals(Optional<VariableTree>, List<? extends VariableTree>) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
- visitIdentifier(IdentifierTree, Void) - Method in class com.google.googlejavaformat.java.RemoveUnusedImports.UnusedImportScanner.DocTreeScanner
- visitIdentifier(IdentifierTree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
- visitIdentifier(IdentifierTree, Void) - Method in class com.google.googlejavaformat.java.RemoveUnusedImports.UnusedImportScanner.DocTreeScanner.ReferenceScanner
- visitIdentifier(IdentifierTree, Void) - Method in class com.google.googlejavaformat.java.RemoveUnusedImports.UnusedImportScanner
- visitIf(IfTree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
- visitImport(ImportTree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
- visitImport(ImportTree, Void) - Method in class com.google.googlejavaformat.java.RemoveUnusedImports.UnusedImportScanner
-
Skip the imports themselves when checking for usage.
- 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
- visitLiteral(LiteralTree, Void) - Method in class com.google.googlejavaformat.java.StringWrapper.Reflower.LongStringsAndTextBlockScanner
- 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(JavaInputAstVisitor.DeclarationModifiersAndTypeAnnotations, JavaInputAstVisitor.Direction, Optional<Output.BreakTag>) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
- visitModifiers(ModifiersTree, JavaInputAstVisitor.Direction, Optional<Output.BreakTag>) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
Output combined modifiers and annotations and returns the trailing break.
- visitModifiers(ModifiersTree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
- visitModifiers(ModifiersTree, List<? extends AnnotationTree>, JavaInputAstVisitor.Direction, Optional<Output.BreakTag>) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
- visitModule(ModuleTree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
- visitName(Tree) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
Helper method for import declarations, names, and qualified names.
- 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
- visitPackage(ExpressionTree, List<? extends AnnotationTree>) - 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
- visitReference(ReferenceTree, Void) - Method in class com.google.googlejavaformat.java.RemoveUnusedImports.UnusedImportScanner.DocTreeScanner
- visitRegularDot(List<ExpressionTree>, boolean) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
Output a "regular" chain of dereferences, possibly in builder-style.
- visitRequires(RequiresTree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
- visitReturn(ReturnTree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
- visitSingleMemberAnnotation(AnnotationTree) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
- visitStatement(StatementTree, JavaInputAstVisitor.CollapseEmptyOrNot, JavaInputAstVisitor.AllowLeadingBlankLine, JavaInputAstVisitor.AllowTrailingBlankLine) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
Helper method for statements.
- visitStatements(List<? extends StatementTree>) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
- visitSwitch(ExpressionTree, List<? extends CaseTree>) - 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
- visitThrowsClause(List<? extends ExpressionTree>) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
- visitToDeclare(JavaInputAstVisitor.DeclarationKind, JavaInputAstVisitor.Direction, VariableTree, Optional<ExpressionTree>, String, Optional<String>) - 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
- visitUnionType(VariableTree) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
Formats a union type declaration in a catch clause.
- visitUses(UsesTree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
- visitVariable(VariableTree, Void) - Method in class com.google.googlejavaformat.java.JavaInputAstVisitor
- visitVariables(List<VariableTree>, JavaInputAstVisitor.DeclarationKind, JavaInputAstVisitor.Direction) - 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
W
- walkInfix(int, ExpressionTree, List<ExpressionTree>, List<String>) - Static method in class com.google.googlejavaformat.java.JavaInputAstVisitor
-
Accumulate the operands and operators.
- wanted - Variable in class com.google.googlejavaformat.OpsBuilder.BlankLineWanted.SimpleBlankLine
- wanted() - Method in class com.google.googlejavaformat.OpsBuilder.BlankLineWanted.ConditionalBlankLine
- wanted() - Method in class com.google.googlejavaformat.OpsBuilder.BlankLineWanted.SimpleBlankLine
- wanted() - Method in class com.google.googlejavaformat.OpsBuilder.BlankLineWanted
-
Is the blank line wanted?
- wasBreakTaken() - Method in class com.google.googlejavaformat.Output.BreakTag
- WHITESPACE - com.google.googlejavaformat.java.javadoc.JavadocWriter.RequestedWhitespace
- WHITESPACE - com.google.googlejavaformat.java.javadoc.Token.Type
-
Whitespace that is not in a
<pre>or<table>section. - width - Variable in class com.google.googlejavaformat.Doc
- withColumn(int) - Method in class com.google.googlejavaformat.Doc.State
- withMustBreak(boolean) - Method in class com.google.googlejavaformat.Doc.State
- withOps(List<Op>) - Method in class com.google.googlejavaformat.DocBuilder
-
Add a list of
Ops to theOpsBuilder. - wrap(int, String, Formatter) - Static method in class com.google.googlejavaformat.java.StringWrapper
-
Reflows string literals in the given Java source code that extend past the given column limit.
- wrap(String, Formatter) - Static method in class com.google.googlejavaformat.java.StringWrapper
-
Reflows long string literals in the given Java source code.
- wrapLineComments(List<String>, int) - Method in class com.google.googlejavaformat.java.JavaCommentsHelper
- wrapLongStrings(TreeRangeMap<Integer, String>, List<TreePath>) - Method in class com.google.googlejavaformat.java.StringWrapper.Reflower
- write(Output) - Method in class com.google.googlejavaformat.Doc.Break
- write(Output) - Method in class com.google.googlejavaformat.Doc.Level
- write(Output) - Method in class com.google.googlejavaformat.Doc.Space
- write(Output) - Method in class com.google.googlejavaformat.Doc.Tok
- write(Output) - Method in class com.google.googlejavaformat.Doc.Token
- write(Output) - Method in class com.google.googlejavaformat.Doc
-
Write a
Docto anOutput, after breaking decisions have been made. - writeBeginJavadoc() - Method in class com.google.googlejavaformat.java.javadoc.JavadocWriter
- writeBlankLine() - Method in class com.google.googlejavaformat.java.javadoc.JavadocWriter
- writeBlockquoteOpenOrClose(Token) - Method in class com.google.googlejavaformat.java.javadoc.JavadocWriter
- writeBr(Token) - Method in class com.google.googlejavaformat.java.javadoc.JavadocWriter
- writeCodeClose(Token) - Method in class com.google.googlejavaformat.java.javadoc.JavadocWriter
- writeCodeOpen(Token) - Method in class com.google.googlejavaformat.java.javadoc.JavadocWriter
- writeEndJavadoc() - Method in class com.google.googlejavaformat.java.javadoc.JavadocWriter
- writeFilled(Output) - Method in class com.google.googlejavaformat.Doc.Level
- writeFooterJavadocTagStart(Token) - Method in class com.google.googlejavaformat.java.javadoc.JavadocWriter
- writeHeaderClose(Token) - Method in class com.google.googlejavaformat.java.javadoc.JavadocWriter
- writeHeaderOpen(Token) - Method in class com.google.googlejavaformat.java.javadoc.JavadocWriter
- writeHtmlComment(Token) - Method in class com.google.googlejavaformat.java.javadoc.JavadocWriter
- writeLineBreakNoAutoIndent() - Method in class com.google.googlejavaformat.java.javadoc.JavadocWriter
- writeListClose(Token) - Method in class com.google.googlejavaformat.java.javadoc.JavadocWriter
- writeListItemOpen(Token) - Method in class com.google.googlejavaformat.java.javadoc.JavadocWriter
- writeListOpen(Token) - Method in class com.google.googlejavaformat.java.javadoc.JavadocWriter
- writeLiteral(Token) - Method in class com.google.googlejavaformat.java.javadoc.JavadocWriter
- writeMoeEndStripComment(Token) - Method in class com.google.googlejavaformat.java.javadoc.JavadocWriter
- writeNewline() - Method in class com.google.googlejavaformat.java.javadoc.JavadocWriter
- writeNewline(JavadocWriter.AutoIndent) - Method in class com.google.googlejavaformat.java.javadoc.JavadocWriter
- writeParagraphOpen(Token) - Method in class com.google.googlejavaformat.java.javadoc.JavadocWriter
- writePreClose(Token) - Method in class com.google.googlejavaformat.java.javadoc.JavadocWriter
- writePreOpen(Token) - Method in class com.google.googlejavaformat.java.javadoc.JavadocWriter
- writeTableClose(Token) - Method in class com.google.googlejavaformat.java.javadoc.JavadocWriter
- writeTableOpen(Token) - Method in class com.google.googlejavaformat.java.javadoc.JavadocWriter
- writeToken(Token) - Method in class com.google.googlejavaformat.java.javadoc.JavadocWriter
- wroteAnythingSignificant - Variable in class com.google.googlejavaformat.java.javadoc.JavadocWriter
Y
- YES - com.google.googlejavaformat.java.DimensionHelpers.SortedDims
- YES - com.google.googlejavaformat.java.JavaInputAstVisitor.AllowLeadingBlankLine
- YES - com.google.googlejavaformat.java.JavaInputAstVisitor.AllowTrailingBlankLine
- YES - com.google.googlejavaformat.java.JavaInputAstVisitor.BracesOrNot
- YES - com.google.googlejavaformat.java.JavaInputAstVisitor.BreakOrNot
- YES - com.google.googlejavaformat.java.JavaInputAstVisitor.CollapseEmptyOrNot
- YES - com.google.googlejavaformat.java.JavaInputAstVisitor.DimensionsOrNot
- YES - com.google.googlejavaformat.java.JavaInputAstVisitor.FirstDeclarationsOrNot
- YES - com.google.googlejavaformat.java.JavaInputAstVisitor.ReceiverParameter
- YES - com.google.googlejavaformat.java.JavaInputAstVisitor.VarArgsOrNot
- YES - Static variable in class com.google.googlejavaformat.OpsBuilder.BlankLineWanted
-
Always emit a blank line.
Z
- ZERO - Static variable in class com.google.googlejavaformat.Indent.Const
- ZERO - Static variable in class com.google.googlejavaformat.java.JavaInputAstVisitor
- ZERO - Static variable in class com.google.googlejavaformat.OpsBuilder
All Classes All Packages