public class WebTestCaseGenerator extends Object implements WebTestCaseGeneratorConstants
Modifier and Type | Class and Description |
---|---|
static class |
WebTestCaseGenerator.ModifierSet
Class to hold modifiers.
|
Modifier and Type | Field and Description |
---|---|
Token |
jj_nt
Next token.
|
Token |
token
Current token.
|
WebTestCaseGeneratorTokenManager |
token_source
Generated Token Manager.
|
_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 |
---|
WebTestCaseGenerator(InputStream stream)
Constructor with InputStream.
|
WebTestCaseGenerator(InputStream stream,
String encoding)
Constructor with InputStream and supplied encoding
|
WebTestCaseGenerator(Reader stream)
Constructor.
|
WebTestCaseGenerator(String fileName) |
WebTestCaseGenerator(WebTestCaseGeneratorTokenManager tm)
Constructor with generated Token Manager.
|
public WebTestCaseGeneratorTokenManager token_source
public Token token
public Token jj_nt
public WebTestCaseGenerator(String fileName)
public WebTestCaseGenerator(InputStream stream)
public WebTestCaseGenerator(InputStream stream, String encoding)
public WebTestCaseGenerator(Reader stream)
public WebTestCaseGenerator(WebTestCaseGeneratorTokenManager tm)
public static void main(String[] args)
public final void CompilationUnit(StringBuffer sb) throws ParseException
ParseException
public final void PackageDeclaration(StringBuffer sb) throws ParseException
ParseException
public final void ImportDeclaration(StringBuffer sb) throws ParseException
ParseException
public final Object[] Modifiers() throws ParseException
ParseException
public final void TypeDeclaration(StringBuffer sb) throws ParseException
ParseException
public final void ClassOrInterfaceDeclaration(int modifiers, StringBuffer sb) throws ParseException
ParseException
public final void ExtendsList(boolean isInterface) throws ParseException
ParseException
public final void ImplementsList(boolean isInterface) throws ParseException
ParseException
public final void EnumDeclaration(int modifiers) throws ParseException
ParseException
public final void EnumBody() throws ParseException
ParseException
public final void EnumConstant() throws ParseException
ParseException
public final void TypeParameters() throws ParseException
ParseException
public final void TypeParameter() throws ParseException
ParseException
public final void TypeBound() throws ParseException
ParseException
public final void ClassOrInterfaceBody(boolean isInterface, StringBuffer sb) throws ParseException
ParseException
public final void ClassOrInterfaceBodyDeclaration(boolean isInterface, StringBuffer sb) throws ParseException
ParseException
public final void FieldDeclaration(int modifiers) throws ParseException
ParseException
public final void VariableDeclarator() throws ParseException
ParseException
public final String VariableDeclaratorId() throws ParseException
ParseException
public final void VariableInitializer() throws ParseException
ParseException
public final void ArrayInitializer() throws ParseException
ParseException
public final void MethodDeclaration(int modifiers, StringBuffer sb, String comment, String annotations) throws ParseException
ParseException
public final List MethodDeclarator(boolean append, StringBuffer sb) throws ParseException
ParseException
public final List FormalParameters(boolean append, StringBuffer sb) throws ParseException
ParseException
public final List FormalParameter() throws ParseException
ParseException
public final void ConstructorDeclaration() throws ParseException
ParseException
public final void ExplicitConstructorInvocation() throws ParseException
ParseException
public final void Initializer() throws ParseException
ParseException
public final String Type() throws ParseException
ParseException
public final String ReferenceType() throws ParseException
ParseException
public final String ClassOrInterfaceType() throws ParseException
ParseException
public final String TypeArguments() throws ParseException
ParseException
public final String TypeArgument() throws ParseException
ParseException
public final String WildcardBounds() throws ParseException
ParseException
public final String PrimitiveType() throws ParseException
ParseException
public final boolean ResultType(boolean append, StringBuffer sb) throws ParseException
ParseException
public final String Name() throws ParseException
ParseException
public final String NameList() throws ParseException
ParseException
public final void Expression() throws ParseException
ParseException
public final void AssignmentOperator() throws ParseException
ParseException
public final void ConditionalExpression() throws ParseException
ParseException
public final void ConditionalOrExpression() throws ParseException
ParseException
public final void ConditionalAndExpression() throws ParseException
ParseException
public final void InclusiveOrExpression() throws ParseException
ParseException
public final void ExclusiveOrExpression() throws ParseException
ParseException
public final void AndExpression() throws ParseException
ParseException
public final void EqualityExpression() throws ParseException
ParseException
public final void InstanceOfExpression() throws ParseException
ParseException
public final void RelationalExpression() throws ParseException
ParseException
public final void ShiftExpression() throws ParseException
ParseException
public final void AdditiveExpression() throws ParseException
ParseException
public final void MultiplicativeExpression() throws ParseException
ParseException
public final void UnaryExpression() throws ParseException
ParseException
public final void PreIncrementExpression() throws ParseException
ParseException
public final void PreDecrementExpression() throws ParseException
ParseException
public final void UnaryExpressionNotPlusMinus() throws ParseException
ParseException
public final void CastLookahead() throws ParseException
ParseException
public final void PostfixExpression() throws ParseException
ParseException
public final void CastExpression() throws ParseException
ParseException
public final void PrimaryExpression() throws ParseException
ParseException
public final void MemberSelector() throws ParseException
ParseException
public final void PrimaryPrefix() throws ParseException
ParseException
public final void PrimarySuffix() throws ParseException
ParseException
public final void Literal() throws ParseException
ParseException
public final void BooleanLiteral() throws ParseException
ParseException
public final void NullLiteral() throws ParseException
ParseException
public final void Arguments() throws ParseException
ParseException
public final void ArgumentList() throws ParseException
ParseException
public final void AllocationExpression() throws ParseException
ParseException
public final void ArrayDimsAndInits() throws ParseException
ParseException
public final void Statement() throws ParseException
ParseException
public final void AssertStatement() throws ParseException
ParseException
public final void LabeledStatement() throws ParseException
ParseException
public final void Block() throws ParseException
ParseException
public final void BlockStatement() throws ParseException
ParseException
public final void LocalVariableDeclaration() throws ParseException
ParseException
public final void EmptyStatement() throws ParseException
ParseException
public final void StatementExpression() throws ParseException
ParseException
public final void SwitchStatement() throws ParseException
ParseException
public final void SwitchLabel() throws ParseException
ParseException
public final void IfStatement() throws ParseException
ParseException
public final void WhileStatement() throws ParseException
ParseException
public final void DoStatement() throws ParseException
ParseException
public final void ForStatement() throws ParseException
ParseException
public final void ForInit() throws ParseException
ParseException
public final void StatementExpressionList() throws ParseException
ParseException
public final void ForUpdate() throws ParseException
ParseException
public final void BreakStatement() throws ParseException
ParseException
public final void ContinueStatement() throws ParseException
ParseException
public final void ReturnStatement() throws ParseException
ParseException
public final void ThrowStatement() throws ParseException
ParseException
public final void SynchronizedStatement() throws ParseException
ParseException
public final void TryStatement() throws ParseException
ParseException
public final void RUNSIGNEDSHIFT() throws ParseException
ParseException
public final void RSIGNEDSHIFT() throws ParseException
ParseException
public final String Annotation() throws ParseException
ParseException
public final void NormalAnnotation(StringBuffer sb) throws ParseException
ParseException
public final void MarkerAnnotation(StringBuffer sb) throws ParseException
ParseException
public final void SingleMemberAnnotation(StringBuffer sb) throws ParseException
ParseException
public final String MemberValuePairs() throws ParseException
ParseException
public final String MemberValuePair() throws ParseException
ParseException
public final String MemberValue() throws ParseException
ParseException
public final String MemberValueArrayInitializer() throws ParseException
ParseException
public final void AnnotationTypeDeclaration(int modifiers) throws ParseException
ParseException
public final void AnnotationTypeBody() throws ParseException
ParseException
public final void AnnotationTypeMemberDeclaration() throws ParseException
ParseException
public final void DefaultValue() throws ParseException
ParseException
public void ReInit(InputStream stream)
public void ReInit(InputStream stream, String encoding)
public void ReInit(Reader stream)
public void ReInit(WebTestCaseGeneratorTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final boolean trace_enabled()
public final void enable_tracing()
public final void disable_tracing()
Copyright © 2002–2018 JWebUnit. All rights reserved.