com.github.abrarsyed.jastyle
Class AbstractASBase
java.lang.Object
com.github.abrarsyed.jastyle.AbstractASBase
- Direct Known Subclasses:
- ASBeautifier, ASEnhancer
public class AbstractASBase
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fileType
protected SourceMode fileType
AbstractASBase
public AbstractASBase()
init
protected void init(SourceMode fileTypeArg)
isCStyle
protected boolean isCStyle()
isJavaStyle
protected boolean isJavaStyle()
isSharpStyle
protected boolean isSharpStyle()
isLegalNameChar
protected boolean isLegalNameChar(char ch)
- check if a specific character can be used in a legal
variable/method/class name
- Parameters:
ch -
- Returns:
isCharPotentialHeader
protected boolean isCharPotentialHeader(java.lang.StringBuilder line,
int i)
isCharPotentialOperator
protected boolean isCharPotentialOperator(char ch)
peekNextChar
protected char peekNextChar(java.lang.StringBuilder line,
int start)
findKeyword
protected boolean findKeyword(java.lang.StringBuilder line,
int i,
java.lang.String keyword)
getCurrentWord
protected java.lang.String getCurrentWord(java.lang.StringBuilder line,
int charNum)