public class IndentationDetector
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static org.apache.commons.lang3.tuple.Pair<java.lang.Integer,java.lang.Boolean> |
detectIndentation(CtCompilationUnit cu)
Detect the indentation style of the given compilation unit as 1, 2 or 4 spaces or tabs by
inspecting the whitespace preceding type members of top-level type declarations.
|
public static org.apache.commons.lang3.tuple.Pair<java.lang.Integer,java.lang.Boolean> detectIndentation(CtCompilationUnit cu)
cu
- A compilation unit.Copyright © 2007–2021 Inria. All rights reserved.