com.github.abrarsyed.jastyle
Class AbstractASBase

java.lang.Object
  extended by com.github.abrarsyed.jastyle.AbstractASBase
Direct Known Subclasses:
ASBeautifier, ASEnhancer

public class AbstractASBase
extends java.lang.Object


Field Summary
protected  SourceMode fileType
           
 
Constructor Summary
AbstractASBase()
           
 
Method Summary
protected  boolean findKeyword(java.lang.StringBuilder line, int i, java.lang.String keyword)
           
protected  java.lang.String getCurrentWord(java.lang.StringBuilder line, int charNum)
           
protected  void init(SourceMode fileTypeArg)
           
protected  boolean isCharPotentialHeader(java.lang.StringBuilder line, int i)
           
protected  boolean isCharPotentialOperator(char ch)
           
protected  boolean isCStyle()
           
protected  boolean isJavaStyle()
           
protected  boolean isLegalNameChar(char ch)
          check if a specific character can be used in a legal variable/method/class name
protected  boolean isSharpStyle()
           
protected  char peekNextChar(java.lang.StringBuilder line, int start)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fileType

protected SourceMode fileType
Constructor Detail

AbstractASBase

public AbstractASBase()
Method Detail

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)