public class JavaSourceTabCalculator
extends java.lang.Object
| Constructor and Description |
|---|
JavaSourceTabCalculator() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addExtraTabs(int lineCount,
int extra) |
protected void |
addIgnoreTabChecks(int lineCount,
int extra) |
protected void |
calculateExtraTabs(java.lang.String line,
int lineCount,
java.lang.String remainingContent,
boolean forClause,
boolean ifClause) |
protected int |
calculateTabLevel(int level,
java.lang.String text) |
void |
calculateTabs(java.lang.String fileName,
java.lang.String content,
int lineCount,
int tabLevel,
SourceProcessor sourceProcessor) |
void |
calculateTabs(java.lang.String fileName,
java.lang.String content,
SourceProcessor sourceProcessor) |
protected void |
checkTabLevel(java.lang.String trimmedLine,
int leadingTabCount,
int tabLevel,
java.lang.String fileName,
int lineCount,
SourceProcessor sourceProcessor) |
protected com.liferay.portal.kernel.util.Tuple |
getFirstOccurenceTuple(java.lang.String s,
java.lang.String[] texts,
int startIndex) |
protected boolean |
hasCorrectTabCount(java.lang.String trimmedLine,
int leadingTabCount,
int tabLevel,
int lineCount) |
protected boolean |
skipCalculateExtraTabs(java.lang.String line,
int lineTabLevel,
boolean forClause,
boolean ifClause) |
protected java.lang.String |
stripTrailingComments(java.lang.String content) |
public void calculateTabs(java.lang.String fileName,
java.lang.String content,
int lineCount,
int tabLevel,
SourceProcessor sourceProcessor)
throws java.lang.Exception
java.lang.Exceptionpublic void calculateTabs(java.lang.String fileName,
java.lang.String content,
SourceProcessor sourceProcessor)
throws java.lang.Exception
java.lang.Exceptionprotected void addExtraTabs(int lineCount,
int extra)
protected void addIgnoreTabChecks(int lineCount,
int extra)
protected void calculateExtraTabs(java.lang.String line,
int lineCount,
java.lang.String remainingContent,
boolean forClause,
boolean ifClause)
protected int calculateTabLevel(int level,
java.lang.String text)
protected void checkTabLevel(java.lang.String trimmedLine,
int leadingTabCount,
int tabLevel,
java.lang.String fileName,
int lineCount,
SourceProcessor sourceProcessor)
protected com.liferay.portal.kernel.util.Tuple getFirstOccurenceTuple(java.lang.String s,
java.lang.String[] texts,
int startIndex)
protected boolean hasCorrectTabCount(java.lang.String trimmedLine,
int leadingTabCount,
int tabLevel,
int lineCount)
protected boolean skipCalculateExtraTabs(java.lang.String line,
int lineTabLevel,
boolean forClause,
boolean ifClause)
protected java.lang.String stripTrailingComments(java.lang.String content)