public class JavaCodingStandardChecker extends java.lang.Object implements JavaCodingStandardCheckerConstants
| Modifier and Type | Class and Description |
|---|---|
static class |
JavaCodingStandardChecker.ModifierSet
Class to hold modifiers.
|
| Modifier and Type | Field and Description |
|---|---|
Token |
jj_nt |
boolean |
lookingAhead |
static java.util.ArrayList |
sAuthors |
static int |
sCCNCount
counter to keep track of CCS (cyclomatic complexity number)
|
static rj.tools.jcsc.JavaCodingStandardChecker.CurrentState |
sCurrentState
State of the current class declaration.
|
static int |
sIgnoreTestSeverity
threshold severity to filter out violations on Unit-Test classes
which severity is lower or equal.
|
static java.lang.String |
sJVMVersion
jvm spec version
|
static java.lang.StringBuffer |
sLastComment
last read comment block
|
static java.lang.String |
sLastJavaDoc
last read java doc
|
static int |
sLineCount
line counter; incremented by 1 for each \n found
|
static java.util.ArrayList |
sMethodMetrics |
static int |
sMethodsCount
counter to keep track of methods
|
static int |
sNCSSCount
counter to keep track of NCSS (non commenting source statements)
|
static boolean |
sNewLine
true if \n was lexed; has to be set to false on own accord
|
static boolean |
sReturn
true if return statement was the last one
|
static int |
sSpaceCount
counter to keep track of spaces after statement keyword
|
static int |
sUnitTestClassCount
counter to keep track of unit test classes
|
static int |
sUnitTestsCount
counter to keep track of unit tests
|
static java.util.ArrayList |
sViolations |
Token |
token |
JavaCodingStandardCheckerTokenManager |
token_source |
_DEFAULT, ABSTRACT, ANDASSIGN, ASSERT, ASSIGN, AT, BANG, BIT_AND, BIT_OR, BOOLEAN, BREAK, BYTE, CASE, CATCH, CHAR, CHARACTER_LITERAL, CLASS, COLON, COMMA, CONST, CONTINUE, DECIMAL_LITERAL, DECR, DEFAULT, DIGIT, DO, DOT, DOUBLE, ELLIPSIS, ELSE, ENUM, EOF, EQ, EXPONENT, EXTENDS, FALSE, FINAL, FINALLY, FLOAT, FLOATING_POINT_LITERAL, FOR, FORMAL_COMMENT, GE, GOTO, GT, HEX_LITERAL, HOOK, IDENTIFIER, IF, IMPLEMENTS, IMPORT, IN_FORMAL_COMMENT, IN_MULTI_LINE_COMMENT, IN_SINGLE_LINE_COMMENT, INCR, INSTANCEOF, INT, INTEGER_LITERAL, INTERFACE, LBRACE, LBRACKET, LE, LETTER, LONG, LPAREN, LSHIFT, LSHIFTASSIGN, LT, MINUS, MINUSASSIGN, MULTI_LINE_COMMENT, NATIVE, NE, NEW, NULL, OCTAL_LITERAL, ORASSIGN, PACKAGE, PLUS, PLUSASSIGN, PRIVATE, PROTECTED, PUBLIC, RBRACE, RBRACKET, REM, REMASSIGN, RETURN, RPAREN, RSIGNEDSHIFT, RSIGNEDSHIFTASSIGN, RUNSIGNEDSHIFT, RUNSIGNEDSHIFTASSIGN, SC_AND, SC_OR, SEMICOLON, SHORT, SINGLE_LINE_COMMENT, SLASH, SLASHASSIGN, STAR, STARASSIGN, STATIC, STRICTFP, STRING_LITERAL, SUPER, SWITCH, SYNCHRONIZED, THIS, THROW, THROWS, TILDE, tokenImage, TRANSIENT, TRUE, TRY, VOID, VOLATILE, WHILE, XOR, XORASSIGN| Constructor and Description |
|---|
JavaCodingStandardChecker(java.io.InputStream stream) |
JavaCodingStandardChecker(JavaCodingStandardCheckerTokenManager tm) |
JavaCodingStandardChecker(java.io.Reader stream) |
| Modifier and Type | Method and Description |
|---|---|
void |
AdditiveExpression() |
void |
AllocationExpression() |
void |
AndExpression() |
void |
Annotation() |
void |
AnnotationTypeBody() |
java.lang.String |
AnnotationTypeDeclaration(JavaCodingStandardChecker.ModifierSet modifiers) |
void |
AnnotationTypeMemberDeclaration() |
static void |
appendComment(java.lang.String comment) |
void |
ArgumentList() |
void |
Arguments() |
void |
ArrayDimsAndInits() |
void |
ArrayInitializer() |
void |
AssertStatement() |
void |
AssignmentOperator() |
void |
Block() |
void |
BlockStatement() |
void |
BooleanLiteral() |
void |
BreakStatement() |
void |
CastExpression() |
void |
CastLookahead() |
void |
CatchBlock() |
void |
ClassOrInterfaceBody(boolean isInterface) |
void |
ClassOrInterfaceBodyDeclaration(boolean isInterface) |
java.lang.String |
ClassOrInterfaceDeclaration(JavaCodingStandardChecker.ModifierSet modifiers,
java.lang.String type) |
java.lang.String |
ClassOrInterfaceType() |
void |
CompilationUnit()
THE JAVA LANGUAGE GRAMMAR STARTS HERE *
|
void |
ConditionalAndExpression() |
void |
ConditionalExpression() |
void |
ConditionalOrExpression() |
void |
ConstructorDeclaration(JavaCodingStandardChecker.ModifierSet modifiers) |
void |
ContinueStatement() |
void |
DefaultValue() |
void |
disable_tracing() |
void |
DoStatement() |
void |
EmptyStatement() |
void |
enable_tracing() |
void |
EnumBody() |
void |
EnumConstant() |
java.lang.String |
EnumDeclaration(JavaCodingStandardChecker.ModifierSet modifiers) |
void |
EqualityExpression() |
void |
ExclusiveOrExpression() |
void |
ExplicitConstructorInvocation() |
void |
Expression() |
void |
ExtendsList(boolean isInterface) |
void |
FieldDeclaration(JavaCodingStandardChecker.ModifierSet modifiers) |
void |
FinallyBlock() |
void |
ForInit() |
Return.FormalParameterReturn |
FormalParameter() |
int |
FormalParameters() |
void |
ForStatement() |
void |
ForUpdate() |
ParseException |
generateParseException() |
java.util.List |
getAuthors()
getAuthors - get list of all @authors as
a comma separated string |
int |
getLineCount()
getLineCount - get the count of lines |
int |
getMethodsCount()
getMethodsCount - call this method after a successful
parse to obtain the number of methods |
int |
getNCSSCount()
getNCSS - get the count of NCSS
non commenting source statements |
Token |
getNextToken() |
Token |
getToken(int index) |
int |
getUnitTestClassCount()
getUnitTestClassCount - call this method after a successful
parse to obtain the number of Unit test classes |
int |
getUnitTestsCount()
getUnitTestsCount - call this method after a successful
parse to obtain the number of Unit tests |
java.util.List |
getViolations()
getViolations - call this method after a successful
parse to obtain a List of violations. |
int |
getViolationsCount()
getViolationsCount - call this method after a successful
parse to obtain the number of violations |
static void |
handleComplexLoopExpression(java.lang.String pExpression,
int pLine,
int pColumn)
handleComplexLoopExpression checks break condition is based
on an operation rather then on a constant |
static void |
handleConditionalExpression(int pLine,
int pColumn)
handleConditionalExpression checks if cond expression are
allowd or not |
static void |
handleConstructorDeclarationJavaDoc(java.lang.String pDoc,
java.lang.String pAccess,
int pParaCount,
java.util.ArrayList pExcpts,
int pLine,
int pColumn)
handleConstructorDeclarationJavaDoc handles the javadoc for
constructor declarations. |
static void |
handleFieldDeclarationJavaDoc(java.lang.String pDoc,
java.lang.String pAccess,
int pLine,
int pColumn)
handleFieldDeclarationJavaDoc handles the javadoc for
field declarations. |
static void |
handleJavaDocTagOrder(JavaDocParser pJdp,
int pLine,
int pColumn)
handleJavaDocTagOrder handles if the javadoc tag order correct |
static void |
handleMethodDeclarationJavaDoc(java.lang.String pDoc,
java.lang.String pAccess,
java.lang.String pReturn,
int pParaCount,
java.util.ArrayList pExcpts,
int pLine,
int pColumn)
handleMethodDeclarationJavaDoc handles the javadoc for
method declarations. |
static void |
handleParaRegExp(java.lang.String pAccess,
java.lang.String pName,
int pLine,
int pColumn)
Checks if parameter does have the correct prefix
|
static void |
handleSpaceAfterStatementKeyword(java.lang.String pKind,
int pLine,
int pColumn)
handleSpaceAfterStatementKeyword checks if the space count is not '0'. |
static void |
handleStringLiteral(java.lang.String pLiteral,
int pLine,
int pColumn)
handleStringLiteral checks if String literal is allowed |
static void |
handleTypeDeclarationJavaDoc(java.lang.String pDoc,
java.lang.String pType,
int pLine,
int pColumn)
handleTypeDeclarationJavaDoc handles the javadoc for
class declarations. |
static void |
handleTypeHeaderExpression(java.lang.StringBuffer pHeader,
int pLine,
int pColumn)
handleTypeHeaderExpression handles if the type (class/i-face) do start
with the correct header |
void |
IfStatement() |
void |
ImplementsList(boolean isInterface) |
void |
ImportDeclaration() |
void |
InclusiveOrExpression() |
static void |
incrementLineCount(int pCount)
incrementLineCount increments the line count |
static void |
incrementSpace()
incrementSpace is called by the tokenizer when a space is read |
void |
Initializer() |
void |
InstanceOfExpression() |
static boolean |
isRegexpMatch(java.lang.Object regexp,
java.lang.Object value)
isRegexpMatch return whether the regexp matches the value. |
void |
LabeledStatement() |
void |
Literal() |
void |
LocalVariableDeclaration() |
void |
LoopExpression() |
static void |
main(java.lang.String[] args)
Main - The starting point
|
void |
MarkerAnnotation() |
void |
MemberSelector() |
void |
MemberValue() |
void |
MemberValueArrayInitializer() |
void |
MemberValuePair() |
void |
MemberValuePairs() |
void |
MethodDeclaration(JavaCodingStandardChecker.ModifierSet modifiers) |
Return.MethodDeclaratorReturn |
MethodDeclarator() |
JavaCodingStandardChecker.ModifierSet |
Modifiers() |
void |
MultiplicativeExpression() |
java.lang.String |
Name() |
java.util.ArrayList |
NameList() |
void |
NormalAnnotation() |
void |
NullLiteral() |
static void |
overviewClassResults()
During parsing global issues are checked whose result
is here generated
|
void |
PackageDeclaration() |
void |
parse()
parse - do the parsing!!! |
void |
PostfixExpression() |
void |
PreDecrementExpression() |
void |
PreIncrementExpression() |
void |
PrimaryExpression() |
java.lang.String |
PrimaryPrefix() |
java.lang.String |
PrimarySuffix() |
java.lang.String |
PrimitiveType() |
java.lang.String |
ReferenceType() |
void |
ReInit(java.io.InputStream stream) |
void |
ReInit(JavaCodingStandardCheckerTokenManager tm) |
void |
ReInit(java.io.Reader stream) |
void |
RelationalExpression() |
static void |
resetLineCount()
resetLineCount resets the line counter to 0 |
static void |
resetNewLine()
resetNewLine resets the new line flag to false |
static void |
resetSpaceCount()
resetSpaceCount resets the current space count to '0' |
java.lang.String |
ResultType() |
void |
ReturnStatement() |
void |
RSIGNEDSHIFT() |
void |
RUNSIGNEDSHIFT() |
void |
setFileName(java.lang.String fileName)
setFileName - set the absolute path of the file
to be parsed |
void |
setIgnoreTestSeverity(int severity)
setIgnoreTestSeveriyt - can be used to filter violations
up to (including) a specific value on Unit-Test classes. |
static void |
setLastJavaDoc(java.lang.String doc)
setLastJavaDoc set the last JavaDoc of the current class |
static void |
setNewLine()
setNewLine resets the new line flag to true |
void |
setResultsFormatter(ResultsFormatter resultsFormatter)
setResultsFormatter - set the resulsthander to handle
the violations. |
void |
setRules(java.util.Map cache)
Set the checking rules according to a property file
|
void |
ShiftExpression() |
void |
SingleMemberAnnotation() |
void |
SpecialStatementBlock(java.lang.String pKind) |
void |
Statement() |
void |
StatementExpression() |
void |
StatementExpressionList() |
boolean |
SwitchLabel() |
void |
SwitchStatement() |
void |
SynchronizedStatement() |
void |
ThrowStatement() |
void |
TryStatement() |
java.lang.String |
Type() |
void |
TypeArgument() |
void |
TypeArguments() |
void |
TypeBound() |
java.lang.String |
TypeDeclaration() |
void |
TypeParameter() |
void |
TypeParameters() |
void |
UnaryExpression() |
void |
UnaryExpressionNotPlusMinus() |
java.lang.String |
VariableDeclarator() |
java.lang.String |
VariableDeclaratorId() |
void |
VariableInitializer() |
void |
WhileStatement() |
void |
WildcardBounds() |
public static java.util.ArrayList sAuthors
public static java.util.ArrayList sViolations
public static java.util.ArrayList sMethodMetrics
public static java.lang.String sJVMVersion
public static java.lang.String sLastJavaDoc
public static java.lang.StringBuffer sLastComment
public static int sSpaceCount
public static int sUnitTestClassCount
public static int sUnitTestsCount
public static int sMethodsCount
public static int sNCSSCount
public static int sCCNCount
public static boolean sReturn
public static boolean sNewLine
public static int sLineCount
public static int sIgnoreTestSeverity
public static rj.tools.jcsc.JavaCodingStandardChecker.CurrentState sCurrentState
public JavaCodingStandardCheckerTokenManager token_source
public Token token
public Token jj_nt
public boolean lookingAhead
public JavaCodingStandardChecker(java.io.InputStream stream)
public JavaCodingStandardChecker(java.io.Reader stream)
public JavaCodingStandardChecker(JavaCodingStandardCheckerTokenManager tm)
public static void main(java.lang.String[] args)
args - a String[] value - the argumentspublic void parse()
parse - do the parsing!!!public java.util.List getViolations()
getViolations - call this method after a successful
parse to obtain a List of violations. The violations are sorted
accorind to the configuration.int valuepublic int getViolationsCount()
getViolationsCount - call this method after a successful
parse to obtain the number of violationsint valuepublic int getUnitTestClassCount()
getUnitTestClassCount - call this method after a successful
parse to obtain the number of Unit test classesint valuepublic int getUnitTestsCount()
getUnitTestsCount - call this method after a successful
parse to obtain the number of Unit testsint valuepublic int getMethodsCount()
getMethodsCount - call this method after a successful
parse to obtain the number of methodsint valuepublic java.util.List getAuthors()
getAuthors - get list of all @authors as
a comma separated stringList valuepublic int getNCSSCount()
getNCSS - get the count of NCSS
non commenting source statementsint valuepublic int getLineCount()
getLineCount - get the count of linesint valuepublic void setResultsFormatter(ResultsFormatter resultsFormatter)
setResultsFormatter - set the resulsthander to handle
the violations. The results handler uses the output stream.resultsFormatter - a ResultsFormatter valuepublic void setIgnoreTestSeverity(int severity)
setIgnoreTestSeveriyt - can be used to filter violations
up to (including) a specific value on Unit-Test classes. That way
Unit-Test classes may only report violation which are above the value
threshold so that Unit-Test classes may have some low severity violationspublic void setFileName(java.lang.String fileName)
setFileName - set the absolute path of the file
to be parsedfileName - a String valuepublic void setRules(java.util.Map cache)
public static boolean isRegexpMatch(java.lang.Object regexp,
java.lang.Object value)
isRegexpMatch return whether the regexp matches the value.
toString() is called on either of the parameters to get the string representationregexp - a Object valuevalue - a Object valueboolean valuepublic static void handleTypeHeaderExpression(java.lang.StringBuffer pHeader,
int pLine,
int pColumn)
handleTypeHeaderExpression handles if the type (class/i-face) do start
with the correct headerpHeader - a StringBuffer valuepLine - an int valuepColumn - an int valuepublic static void handleParaRegExp(java.lang.String pAccess,
java.lang.String pName,
int pLine,
int pColumn)
pName - a value of type 'StringBuffer'pLine - a value of type 'int'public static void overviewClassResults()
public static void incrementSpace()
incrementSpace is called by the tokenizer when a space is readpublic static void resetSpaceCount()
resetSpaceCount resets the current space count to '0'public static void resetNewLine()
resetNewLine resets the new line flag to falsepublic static void setNewLine()
setNewLine resets the new line flag to truepublic static void incrementLineCount(int pCount)
incrementLineCount increments the line countpCount - the increment valuepublic static void resetLineCount()
resetLineCount resets the line counter to 0public static void setLastJavaDoc(java.lang.String doc)
setLastJavaDoc set the last JavaDoc of the current classpublic static void appendComment(java.lang.String comment)
public static void handleSpaceAfterStatementKeyword(java.lang.String pKind,
int pLine,
int pColumn)
handleSpaceAfterStatementKeyword checks if the space count is not '0'.pLine - an int value is current line numberpKind - a String value is the type of the statementpublic static void handleStringLiteral(java.lang.String pLiteral,
int pLine,
int pColumn)
handleStringLiteral checks if String literal is allowedpLine - an int value is the current line numberpLiteral - a String value is the string literlpublic static void handleComplexLoopExpression(java.lang.String pExpression,
int pLine,
int pColumn)
handleComplexLoopExpression checks break condition is based
on an operation rather then on a constantpExpression - a StringBuffer value is the complex loop exprpLine - a int line numberpColumn - an int column numberpublic static void handleConditionalExpression(int pLine,
int pColumn)
handleConditionalExpression checks if cond expression are
allowd or notpLine - a int line numberpColumn - an int column numberpublic static void handleTypeDeclarationJavaDoc(java.lang.String pDoc,
java.lang.String pType,
int pLine,
int pColumn)
handleTypeDeclarationJavaDoc handles the javadoc for
class declarations.pDoc - a String valuepType - a String valuepLine - a int line numberpColumn - an int column numberpublic static void handleConstructorDeclarationJavaDoc(java.lang.String pDoc,
java.lang.String pAccess,
int pParaCount,
java.util.ArrayList pExcpts,
int pLine,
int pColumn)
handleConstructorDeclarationJavaDoc handles the javadoc for
constructor declarations.pDoc - a String valuepAccess - a String valuepParaCount - a int valuepExcpts - a ArrayList valuepLine - a int line numberpColumn - an int column numberpublic static void handleMethodDeclarationJavaDoc(java.lang.String pDoc,
java.lang.String pAccess,
java.lang.String pReturn,
int pParaCount,
java.util.ArrayList pExcpts,
int pLine,
int pColumn)
handleMethodDeclarationJavaDoc handles the javadoc for
method declarations.pDoc - a String valuepAccess - a String valuepParaCount - a int valuepExcpts - a ArrayList valuepLine - a int line numberpColumn - an int column numberpublic static void handleFieldDeclarationJavaDoc(java.lang.String pDoc,
java.lang.String pAccess,
int pLine,
int pColumn)
handleFieldDeclarationJavaDoc handles the javadoc for
field declarations.pDoc - a String valuepAccess - a String valuepLine - a int line numberpColumn - an int column numberpublic static void handleJavaDocTagOrder(JavaDocParser pJdp, int pLine, int pColumn)
handleJavaDocTagOrder handles if the javadoc tag order correctpJdp - a JavaDocParser valuepLine - an int valuepColumn - an int valuepublic final void CompilationUnit()
throws ParseException
ParseExceptionpublic final void PackageDeclaration()
throws ParseException
ParseExceptionpublic final void ImportDeclaration()
throws ParseException
ParseExceptionpublic final JavaCodingStandardChecker.ModifierSet Modifiers() throws ParseException
ParseExceptionpublic final java.lang.String TypeDeclaration()
throws ParseException
ParseExceptionpublic final java.lang.String ClassOrInterfaceDeclaration(JavaCodingStandardChecker.ModifierSet modifiers, java.lang.String type) throws ParseException
ParseExceptionpublic final void ExtendsList(boolean isInterface)
throws ParseException
ParseExceptionpublic final void ImplementsList(boolean isInterface)
throws ParseException
ParseExceptionpublic final java.lang.String EnumDeclaration(JavaCodingStandardChecker.ModifierSet modifiers) throws ParseException
ParseExceptionpublic final void EnumBody()
throws ParseException
ParseExceptionpublic final void EnumConstant()
throws ParseException
ParseExceptionpublic final void TypeParameters()
throws ParseException
ParseExceptionpublic final void TypeParameter()
throws ParseException
ParseExceptionpublic final void TypeBound()
throws ParseException
ParseExceptionpublic final void ClassOrInterfaceBody(boolean isInterface)
throws ParseException
ParseExceptionpublic final void ClassOrInterfaceBodyDeclaration(boolean isInterface)
throws ParseException
ParseExceptionpublic final void FieldDeclaration(JavaCodingStandardChecker.ModifierSet modifiers) throws ParseException
ParseExceptionpublic final java.lang.String VariableDeclarator()
throws ParseException
ParseExceptionpublic final java.lang.String VariableDeclaratorId()
throws ParseException
ParseExceptionpublic final void VariableInitializer()
throws ParseException
ParseExceptionpublic final void ArrayInitializer()
throws ParseException
ParseExceptionpublic final void MethodDeclaration(JavaCodingStandardChecker.ModifierSet modifiers) throws ParseException
ParseExceptionpublic final Return.MethodDeclaratorReturn MethodDeclarator() throws ParseException
ParseExceptionpublic final int FormalParameters()
throws ParseException
ParseExceptionpublic final Return.FormalParameterReturn FormalParameter() throws ParseException
ParseExceptionpublic final void ConstructorDeclaration(JavaCodingStandardChecker.ModifierSet modifiers) throws ParseException
ParseExceptionpublic final void ExplicitConstructorInvocation()
throws ParseException
ParseExceptionpublic final void Initializer()
throws ParseException
ParseExceptionpublic final java.lang.String Type()
throws ParseException
ParseExceptionpublic final java.lang.String ReferenceType()
throws ParseException
ParseExceptionpublic final java.lang.String ClassOrInterfaceType()
throws ParseException
ParseExceptionpublic final void TypeArguments()
throws ParseException
ParseExceptionpublic final void TypeArgument()
throws ParseException
ParseExceptionpublic final void WildcardBounds()
throws ParseException
ParseExceptionpublic final java.lang.String PrimitiveType()
throws ParseException
ParseExceptionpublic final java.lang.String ResultType()
throws ParseException
ParseExceptionpublic final java.lang.String Name()
throws ParseException
ParseExceptionpublic final java.util.ArrayList NameList()
throws ParseException
ParseExceptionpublic final void Expression()
throws ParseException
ParseExceptionpublic final void AssignmentOperator()
throws ParseException
ParseExceptionpublic final void ConditionalExpression()
throws ParseException
ParseExceptionpublic final void ConditionalOrExpression()
throws ParseException
ParseExceptionpublic final void ConditionalAndExpression()
throws ParseException
ParseExceptionpublic final void InclusiveOrExpression()
throws ParseException
ParseExceptionpublic final void ExclusiveOrExpression()
throws ParseException
ParseExceptionpublic final void AndExpression()
throws ParseException
ParseExceptionpublic final void EqualityExpression()
throws ParseException
ParseExceptionpublic final void InstanceOfExpression()
throws ParseException
ParseExceptionpublic final void RelationalExpression()
throws ParseException
ParseExceptionpublic final void ShiftExpression()
throws ParseException
ParseExceptionpublic final void AdditiveExpression()
throws ParseException
ParseExceptionpublic final void MultiplicativeExpression()
throws ParseException
ParseExceptionpublic final void UnaryExpression()
throws ParseException
ParseExceptionpublic final void PreIncrementExpression()
throws ParseException
ParseExceptionpublic final void PreDecrementExpression()
throws ParseException
ParseExceptionpublic final void UnaryExpressionNotPlusMinus()
throws ParseException
ParseExceptionpublic final void CastLookahead()
throws ParseException
ParseExceptionpublic final void PostfixExpression()
throws ParseException
ParseExceptionpublic final void CastExpression()
throws ParseException
ParseExceptionpublic final void PrimaryExpression()
throws ParseException
ParseExceptionpublic final void MemberSelector()
throws ParseException
ParseExceptionpublic final java.lang.String PrimaryPrefix()
throws ParseException
ParseExceptionpublic final java.lang.String PrimarySuffix()
throws ParseException
ParseExceptionpublic final void Literal()
throws ParseException
ParseExceptionpublic final void BooleanLiteral()
throws ParseException
ParseExceptionpublic final void NullLiteral()
throws ParseException
ParseExceptionpublic final void Arguments()
throws ParseException
ParseExceptionpublic final void ArgumentList()
throws ParseException
ParseExceptionpublic final void AllocationExpression()
throws ParseException
ParseExceptionpublic final void ArrayDimsAndInits()
throws ParseException
ParseExceptionpublic final void Statement()
throws ParseException
ParseExceptionpublic final void AssertStatement()
throws ParseException
ParseExceptionpublic final void LabeledStatement()
throws ParseException
ParseExceptionpublic final void Block()
throws ParseException
ParseExceptionpublic final void BlockStatement()
throws ParseException
ParseExceptionpublic final void LocalVariableDeclaration()
throws ParseException
ParseExceptionpublic final void EmptyStatement()
throws ParseException
ParseExceptionpublic final void StatementExpression()
throws ParseException
ParseExceptionpublic final void SwitchStatement()
throws ParseException
ParseExceptionpublic final boolean SwitchLabel()
throws ParseException
ParseExceptionpublic final void SpecialStatementBlock(java.lang.String pKind)
throws ParseException
ParseExceptionpublic final void IfStatement()
throws ParseException
ParseExceptionpublic final void WhileStatement()
throws ParseException
ParseExceptionpublic final void DoStatement()
throws ParseException
ParseExceptionpublic final void ForStatement()
throws ParseException
ParseExceptionpublic final void LoopExpression()
throws ParseException
ParseExceptionpublic final void ForInit()
throws ParseException
ParseExceptionpublic final void StatementExpressionList()
throws ParseException
ParseExceptionpublic final void ForUpdate()
throws ParseException
ParseExceptionpublic final void BreakStatement()
throws ParseException
ParseExceptionpublic final void ContinueStatement()
throws ParseException
ParseExceptionpublic final void ReturnStatement()
throws ParseException
ParseExceptionpublic final void ThrowStatement()
throws ParseException
ParseExceptionpublic final void SynchronizedStatement()
throws ParseException
ParseExceptionpublic final void TryStatement()
throws ParseException
ParseExceptionpublic final void CatchBlock()
throws ParseException
ParseExceptionpublic final void FinallyBlock()
throws ParseException
ParseExceptionpublic final void RUNSIGNEDSHIFT()
throws ParseException
ParseExceptionpublic final void RSIGNEDSHIFT()
throws ParseException
ParseExceptionpublic final void Annotation()
throws ParseException
ParseExceptionpublic final void NormalAnnotation()
throws ParseException
ParseExceptionpublic final void MarkerAnnotation()
throws ParseException
ParseExceptionpublic final void SingleMemberAnnotation()
throws ParseException
ParseExceptionpublic final void MemberValuePairs()
throws ParseException
ParseExceptionpublic final void MemberValuePair()
throws ParseException
ParseExceptionpublic final void MemberValue()
throws ParseException
ParseExceptionpublic final void MemberValueArrayInitializer()
throws ParseException
ParseExceptionpublic final java.lang.String AnnotationTypeDeclaration(JavaCodingStandardChecker.ModifierSet modifiers) throws ParseException
ParseExceptionpublic final void AnnotationTypeBody()
throws ParseException
ParseExceptionpublic final void AnnotationTypeMemberDeclaration()
throws ParseException
ParseExceptionpublic final void DefaultValue()
throws ParseException
ParseExceptionpublic void ReInit(java.io.InputStream stream)
public void ReInit(java.io.Reader stream)
public void ReInit(JavaCodingStandardCheckerTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
JCSC is released under the terms of the GNU General Public License