RECODER 0.92

recoder.java
Class JavaProgramFactory

java.lang.Object
  extended by recoder.java.JavaProgramFactory
All Implemented Interfaces:
java.beans.PropertyChangeListener, java.util.EventListener, ProgramFactory, Service

public class JavaProgramFactory
extends java.lang.Object
implements ProgramFactory, java.beans.PropertyChangeListener


Nested Class Summary
static class JavaProgramFactory.TraceItem
           
 
Method Summary
 void beginTracing()
          debug method
 Abstract createAbstract()
          Creates a new Abstract.
 AnnotationDeclaration createAnnotationDeclaration()
           
 AnnotationDeclaration createAnnotationDeclaration(ASTList<DeclarationSpecifier> modifiers, Identifier name, ASTList<MemberDeclaration> members)
           
 AnnotationPropertyDeclaration createAnnotationPropertyDeclaration(ASTList<DeclarationSpecifier> modifiers, TypeReference returnType, Identifier name, Expression defaultValue)
           
 AnnotationPropertyReference createAnnotationPropertyReference(Identifier id)
           
 AnnotationPropertyReference createAnnotationPropertyReference(java.lang.String id)
           
 AnnotationUseSpecification createAnnotationUseSpecification()
          Creates a new .
 ArrayInitializer createArrayInitializer()
          Creates a new ArrayInitializer.
 ArrayInitializer createArrayInitializer(ASTList<Expression> args)
          Creates a new ArrayInitializer.
 ArrayReference createArrayReference()
          Creates a new ArrayReference.
 ArrayReference createArrayReference(ReferencePrefix accessPath, ASTList<Expression> initializers)
          Creates a new ArrayReference.
 Assert createAssert()
          Creates a new Assert.
 Assert createAssert(Expression cond)
          Creates a new Assert.
 Assert createAssert(Expression cond, Expression msg)
          Creates a new Assert.
 BinaryAnd createBinaryAnd()
          Creates a new BinaryAnd.
 BinaryAnd createBinaryAnd(Expression lhs, Expression rhs)
          Creates a new BinaryAnd.
 BinaryAndAssignment createBinaryAndAssignment()
          Creates a new BinaryAndAssignment.
 BinaryAndAssignment createBinaryAndAssignment(Expression lhs, Expression rhs)
          Creates a new BinaryAndAssignment.
 BinaryNot createBinaryNot()
          Creates a new BinaryNot.
 BinaryNot createBinaryNot(Expression child)
          Creates a new BinaryNot.
 BinaryOr createBinaryOr()
          Creates a new BinaryOr.
 BinaryOr createBinaryOr(Expression lhs, Expression rhs)
          Creates a new BinaryOr.
 BinaryOrAssignment createBinaryOrAssignment()
          Creates a new BinaryOrAssignment.
 BinaryOrAssignment createBinaryOrAssignment(Expression lhs, Expression rhs)
          Creates a new BinaryOrAssignment.
 BinaryXOr createBinaryXOr()
          Creates a new BinaryXOr.
 BinaryXOr createBinaryXOr(Expression lhs, Expression rhs)
          Creates a new BinaryXOr.
 BinaryXOrAssignment createBinaryXOrAssignment()
          Creates a new BinaryXOrAssignment.
 BinaryXOrAssignment createBinaryXOrAssignment(Expression lhs, Expression rhs)
          Creates a new BinaryXOrAssignment.
 BooleanLiteral createBooleanLiteral()
          Creates a new BooleanLiteral.
 BooleanLiteral createBooleanLiteral(boolean value)
          Creates a new BooleanLiteral.
 Break createBreak()
          Creates a new Break.
 Break createBreak(Identifier label)
          Creates a new Break.
 Case createCase()
          Creates a new Case.
 Case createCase(Expression e)
          Creates a new Case.
 Case createCase(Expression e, ASTList<Statement> body)
          Creates a new Case.
 Catch createCatch()
          Creates a new Catch.
 Catch createCatch(ParameterDeclaration e, StatementBlock body)
          Creates a new Catch.
 CharLiteral createCharLiteral()
          Creates a new CharLiteral.
 CharLiteral createCharLiteral(char value)
          Creates a new CharLiteral.
 CharLiteral createCharLiteral(java.lang.String value)
          Creates a new CharLiteral.
 ClassDeclaration createClassDeclaration()
          Creates a new ClassDeclaration.
 ClassDeclaration createClassDeclaration(ASTList<DeclarationSpecifier> declSpecs, Identifier name, Extends extended, Implements implemented, ASTList<MemberDeclaration> members)
          Creates a new ClassDeclaration.
 ClassDeclaration createClassDeclaration(ASTList<MemberDeclaration> members)
          Creates a new ClassDeclaration.
 ClassInitializer createClassInitializer()
          Creates a new ClassInitializer.
 ClassInitializer createClassInitializer(StatementBlock body)
          Creates a new ClassInitializer.
 ClassInitializer createClassInitializer(Static modifier, StatementBlock body)
          Creates a new ClassInitializer.
 Comment createComment()
          Creates a new Comment.
 Comment createComment(java.lang.String text)
          Creates a new Comment.
 Comment createComment(java.lang.String text, boolean prefixed)
          Creates a new Comment.
 CompilationUnit createCompilationUnit()
          Creates a new CompilationUnit.
 CompilationUnit createCompilationUnit(PackageSpecification pkg, ASTList<Import> imports, ASTList<TypeDeclaration> typeDeclarations)
          Creates a new CompilationUnit.
 Conditional createConditional()
          Creates a new Conditional.
 Conditional createConditional(Expression guard, Expression thenExpr, Expression elseExpr)
          Creates a new Conditional.
 ConstructorDeclaration createConstructorDeclaration()
          Creates a new ConstructorDeclaration.
 ConstructorDeclaration createConstructorDeclaration(VisibilityModifier modifier, Identifier name, ASTList<ParameterDeclaration> parameters, Throws exceptions, StatementBlock body)
          Creates a new ConstructorDeclaration.
 Continue createContinue()
          Creates a new Continue.
 Continue createContinue(Identifier label)
          Creates a new Continue.
 CopyAssignment createCopyAssignment()
          Creates a new CopyAssignment.
 CopyAssignment createCopyAssignment(Expression lhs, Expression rhs)
          Creates a new CopyAssignment.
 Default createDefault()
          Creates a new Default.
 Default createDefault(ASTList<Statement> body)
          Creates a new Default.
 Divide createDivide()
          Creates a new Divide.
 Divide createDivide(Expression lhs, Expression rhs)
          Creates a new Divide.
 DivideAssignment createDivideAssignment()
          Creates a new DivideAssignment.
 DivideAssignment createDivideAssignment(Expression lhs, Expression rhs)
          Creates a new DivideAssignment.
 Do createDo()
          Creates a new Do.
 Do createDo(Expression guard)
          Creates a new Do.
 Do createDo(Expression guard, Statement body)
          Creates a new Do.
 DocComment createDocComment()
          Creates a new DocComment.
 DocComment createDocComment(java.lang.String text)
          Creates a new DocComment.
 DoubleLiteral createDoubleLiteral()
          Creates a new DoubleLiteral.
 DoubleLiteral createDoubleLiteral(double value)
          Creates a new DoubleLiteral.
 DoubleLiteral createDoubleLiteral(java.lang.String value)
          Creates a new DoubleLiteral.
 Else createElse()
          Creates a new Else.
 Else createElse(Statement body)
          Creates a new Else.
 EmptyStatement createEmptyStatement()
          Creates a new EmptyStatement.
 EnhancedFor createEnhancedFor()
          Creates a new .
 Equals createEquals()
          Creates a new Equals.
 Equals createEquals(Expression lhs, Expression rhs)
          Creates a new Equals.
 Extends createExtends()
          Creates a new Extends.
 Extends createExtends(ASTList<TypeReference> list)
          Creates a new Extends.
 Extends createExtends(TypeReference supertype)
          Creates a new Extends.
 FieldDeclaration createFieldDeclaration()
          Creates a new FieldDeclaration.
 FieldDeclaration createFieldDeclaration(ASTList<DeclarationSpecifier> mods, TypeReference typeRef, ASTList<FieldSpecification> vars)
          Creates a new FieldDeclaration.
 FieldDeclaration createFieldDeclaration(ASTList<DeclarationSpecifier> mods, TypeReference typeRef, Identifier name, Expression init)
          Creates a new FieldDeclaration.
 FieldDeclaration createFieldDeclaration(TypeReference typeRef, Identifier name)
          Creates a new FieldDeclaration.
 FieldReference createFieldReference()
          Creates a new FieldReference.
 FieldReference createFieldReference(Identifier id)
          Creates a new FieldReference.
 FieldReference createFieldReference(ReferencePrefix prefix, Identifier id)
          Creates a new FieldReference.
 FieldSpecification createFieldSpecification()
          Creates a new FieldSpecification.
 FieldSpecification createFieldSpecification(Identifier name)
          Creates a new FieldSpecification.
 FieldSpecification createFieldSpecification(Identifier name, Expression init)
          Creates a new FieldSpecification.
 FieldSpecification createFieldSpecification(Identifier name, int dimensions, Expression init)
          Creates a new FieldSpecification.
 Final createFinal()
          Creates a new Final.
 Finally createFinally()
          Creates a new Finally.
 Finally createFinally(StatementBlock body)
          Creates a new Finally.
 FloatLiteral createFloatLiteral()
          Creates a new FloatLiteral.
 FloatLiteral createFloatLiteral(float value)
          Creates a new FloatLiteral.
 FloatLiteral createFloatLiteral(java.lang.String value)
          Creates a new FloatLiteral.
 For createFor()
          Creates a new For.
 For createFor(ASTList<LoopInitializer> inits, Expression guard, ASTList<Expression> updates, Statement body)
          Creates a new For.
 GreaterOrEquals createGreaterOrEquals()
          Creates a new GreaterOrEquals.
 GreaterOrEquals createGreaterOrEquals(Expression lhs, Expression rhs)
          Creates a new GreaterOrEquals.
 GreaterThan createGreaterThan()
          Creates a new GreaterThan.
 GreaterThan createGreaterThan(Expression lhs, Expression rhs)
          Creates a new GreaterThan.
 Identifier createIdentifier()
          Creates a new Identifier.
 Identifier createIdentifier(java.lang.String text)
          Creates a new Identifier.
 If createIf()
          Creates a new If.
 If createIf(Expression e, Statement thenStatement)
          Creates a new If.
 If createIf(Expression e, Statement thenStatement, Statement elseStatement)
          Creates a new If.
 If createIf(Expression e, Then thenBranch)
          Creates a new If.
 If createIf(Expression e, Then thenBranch, Else elseBranch)
          Creates a new If.
 Implements createImplements()
          Creates a new Implements.
 Implements createImplements(ASTList<TypeReference> list)
          Creates a new Implements.
 Implements createImplements(TypeReference supertype)
          Creates a new Implements.
 Import createImport()
          Creates a new Import.
 Import createImport(PackageReference t)
          Creates a new Import.
 Import createImport(TypeReference t, boolean multi)
          Creates a new Import.
 Instanceof createInstanceof()
          Creates a new Instanceof.
 Instanceof createInstanceof(Expression child, TypeReference typeref)
          Creates a new Instanceof.
 InterfaceDeclaration createInterfaceDeclaration()
          Creates a new InterfaceDeclaration.
 InterfaceDeclaration createInterfaceDeclaration(ASTList<DeclarationSpecifier> modifiers, Identifier name, Extends extended, ASTList<MemberDeclaration> members)
          Creates a new InterfaceDeclaration.
 IntLiteral createIntLiteral()
          Creates a new IntLiteral.
 IntLiteral createIntLiteral(int value)
          Creates a new IntLiteral.
 IntLiteral createIntLiteral(java.lang.String value)
          Creates a new IntLiteral.
 LabeledStatement createLabeledStatement()
          Creates a new LabeledStatement.
 LabeledStatement createLabeledStatement(Identifier id)
          Creates a new LabeledStatement.
 LabeledStatement createLabeledStatement(Identifier id, Statement statement)
          Creates a new LabeledStatement.
 LessOrEquals createLessOrEquals()
          Creates a new LessOrEquals.
 LessOrEquals createLessOrEquals(Expression lhs, Expression rhs)
          Creates a new LessOrEquals.
 LessThan createLessThan()
          Creates a new LessThan.
 LessThan createLessThan(Expression lhs, Expression rhs)
          Creates a new LessThan.
 LocalVariableDeclaration createLocalVariableDeclaration()
          Creates a new LocalVariableDeclaration.
 LocalVariableDeclaration createLocalVariableDeclaration(ASTList<DeclarationSpecifier> mods, TypeReference typeRef, ASTList<VariableSpecification> vars)
          Creates a new LocalVariableDeclaration.
 LocalVariableDeclaration createLocalVariableDeclaration(ASTList<DeclarationSpecifier> mods, TypeReference typeRef, Identifier name, Expression init)
          Creates a new LocalVariableDeclaration.
 LocalVariableDeclaration createLocalVariableDeclaration(TypeReference typeRef, Identifier name)
          Creates a new LocalVariableDeclaration.
 LogicalAnd createLogicalAnd()
          Creates a new LogicalAnd.
 LogicalAnd createLogicalAnd(Expression lhs, Expression rhs)
          Creates a new LogicalAnd.
 LogicalNot createLogicalNot()
          Creates a new LogicalNot.
 LogicalNot createLogicalNot(Expression child)
          Creates a new LogicalNot.
 LogicalOr createLogicalOr()
          Creates a new LogicalOr.
 LogicalOr createLogicalOr(Expression lhs, Expression rhs)
          Creates a new LogicalOr.
 LongLiteral createLongLiteral()
          Creates a new LongLiteral.
 LongLiteral createLongLiteral(long value)
          Creates a new LongLiteral.
 LongLiteral createLongLiteral(java.lang.String value)
          Creates a new LongLiteral.
 MetaClassReference createMetaClassReference()
          Creates a new MetaClassReference.
 MetaClassReference createMetaClassReference(TypeReference reference)
          Creates a new MetaClassReference.
 MethodDeclaration createMethodDeclaration()
          Creates a new MethodDeclaration.
 MethodDeclaration createMethodDeclaration(ASTList<DeclarationSpecifier> modifiers, TypeReference returnType, Identifier name, ASTList<ParameterDeclaration> parameters, Throws exceptions)
          Creates a new MethodDeclaration.
 MethodDeclaration createMethodDeclaration(ASTList<DeclarationSpecifier> modifiers, TypeReference returnType, Identifier name, ASTList<ParameterDeclaration> parameters, Throws exceptions, StatementBlock body)
          Creates a new MethodDeclaration.
 MethodReference createMethodReference()
          Creates a new MethodReference.
 MethodReference createMethodReference(Identifier name)
          Creates a new MethodReference.
 MethodReference createMethodReference(Identifier name, ASTList<Expression> args)
          Creates a new MethodReference.
 MethodReference createMethodReference(ReferencePrefix accessPath, Identifier name)
          Creates a new MethodReference.
 MethodReference createMethodReference(ReferencePrefix accessPath, Identifier name, ASTList<Expression> args)
          Creates a new MethodReference.
 MethodReference createMethodReference(ReferencePrefix accessPath, Identifier name, ASTList<Expression> args, ASTList<TypeArgumentDeclaration> typeArgs)
           
 Minus createMinus()
          Creates a new Minus.
 Minus createMinus(Expression lhs, Expression rhs)
          Creates a new Minus.
 MinusAssignment createMinusAssignment()
          Creates a new MinusAssignment.
 MinusAssignment createMinusAssignment(Expression lhs, Expression rhs)
          Creates a new MinusAssignment.
 Modulo createModulo()
          Creates a new Modulo.
 Modulo createModulo(Expression lhs, Expression rhs)
          Creates a new Modulo.
 ModuloAssignment createModuloAssignment()
          Creates a new ModuloAssignment.
 ModuloAssignment createModuloAssignment(Expression lhs, Expression rhs)
          Creates a new ModuloAssignment.
 Native createNative()
          Creates a new Native.
 Negative createNegative()
          Creates a new Negative.
 Negative createNegative(Expression child)
          Creates a new Negative.
 New createNew()
          Creates a new New.
 New createNew(ReferencePrefix accessPath, TypeReference constructorName, ASTList<Expression> arguments)
          Creates a new New.
 New createNew(ReferencePrefix accessPath, TypeReference constructorName, ASTList<Expression> arguments, ClassDeclaration anonymousClass)
          Creates a new New.
 NewArray createNewArray()
          Creates a new NewArray.
 NewArray createNewArray(TypeReference arrayName, ASTList<Expression> dimExpr)
          Creates a new NewArray.
 NewArray createNewArray(TypeReference arrayName, int dimensions, ArrayInitializer initializer)
          Creates a new NewArray.
 NotEquals createNotEquals()
          Creates a new NotEquals.
 NotEquals createNotEquals(Expression lhs, Expression rhs)
          Creates a new NotEquals.
 NullLiteral createNullLiteral()
          Creates a new NullLiteral.
 PackageReference createPackageReference()
          Creates a new PackageReference.
 PackageReference createPackageReference(Identifier id)
          Creates a new PackageReference.
 PackageReference createPackageReference(PackageReference path, Identifier id)
          Creates a new PackageReference.
 PackageSpecification createPackageSpecification()
          Creates a new PackageSpecification.
 PackageSpecification createPackageSpecification(PackageReference pkg)
          Creates a new PackageSpecification.
 ParameterDeclaration createParameterDeclaration()
          Creates a new ParameterDeclaration.
 ParameterDeclaration createParameterDeclaration(ASTList<DeclarationSpecifier> mods, TypeReference typeRef, Identifier name)
          Creates a new ParameterDeclaration.
 ParameterDeclaration createParameterDeclaration(TypeReference typeRef, Identifier name)
          Creates a new ParameterDeclaration.
 ParenthesizedExpression createParenthesizedExpression()
          Creates a new ParenthesizedExpression.
 ParenthesizedExpression createParenthesizedExpression(Expression child)
          Creates a new ParenthesizedExpression.
 Plus createPlus()
          Creates a new Plus.
 Plus createPlus(Expression lhs, Expression rhs)
          Creates a new Plus.
 PlusAssignment createPlusAssignment()
          Creates a new PlusAssignment.
 PlusAssignment createPlusAssignment(Expression lhs, Expression rhs)
          Creates a new PlusAssignment.
 Positive createPositive()
          Creates a new Positive.
 Positive createPositive(Expression child)
          Creates a new Positive.
 PostDecrement createPostDecrement()
          Creates a new PostDecrement.
 PostDecrement createPostDecrement(Expression child)
          Creates a new PostDecrement.
 PostIncrement createPostIncrement()
          Creates a new PostIncrement.
 PostIncrement createPostIncrement(Expression child)
          Creates a new PostIncrement.
 PreDecrement createPreDecrement()
          Creates a new PreDecrement.
 PreDecrement createPreDecrement(Expression child)
          Creates a new PreDecrement.
 PreIncrement createPreIncrement()
          Creates a new PreIncrement.
 PreIncrement createPreIncrement(Expression child)
          Creates a new PreIncrement.
 Private createPrivate()
          Creates a new Private.
 Protected createProtected()
          Creates a new Protected.
 Public createPublic()
          Creates a new Public.
 Return createReturn()
          Creates a new Return.
 Return createReturn(Expression expr)
          Creates a new Return.
 ShiftLeft createShiftLeft()
          Creates a new ShiftLeft.
 ShiftLeft createShiftLeft(Expression lhs, Expression rhs)
          Creates a new ShiftLeft.
 ShiftLeftAssignment createShiftLeftAssignment()
          Creates a new ShiftLeftAssignment.
 ShiftLeftAssignment createShiftLeftAssignment(Expression lhs, Expression rhs)
          Creates a new ShiftLeftAssignment.
 ShiftRight createShiftRight()
          Creates a new ShiftRight.
 ShiftRight createShiftRight(Expression lhs, Expression rhs)
          Creates a new ShiftRight.
 ShiftRightAssignment createShiftRightAssignment()
          Creates a new ShiftRightAssignment.
 ShiftRightAssignment createShiftRightAssignment(Expression lhs, Expression rhs)
          Creates a new ShiftRightAssignment.
 SingleLineComment createSingleLineComment()
          Creates a new SingleLineComment.
 SingleLineComment createSingleLineComment(java.lang.String text)
          Creates a new SingleLineComment.
 StatementBlock createStatementBlock()
          Creates a new StatementBlock.
 StatementBlock createStatementBlock(ASTList<Statement> block)
          Creates a new StatementBlock.
 Static createStatic()
          Creates a new Static.
 Import createStaticImport(TypeReference t)
          Creates a new Import.
 Import createStaticImport(TypeReference t, Identifier id)
          Creates a new Import.
 StrictFp createStrictFp()
          Creates a new StrictFp.
 StringLiteral createStringLiteral()
          Creates a new StringLiteral.
 StringLiteral createStringLiteral(java.lang.String value)
          Creates a new StringLiteral.
 SuperConstructorReference createSuperConstructorReference()
          Creates a new SuperConstructorReference.
 SuperConstructorReference createSuperConstructorReference(ASTList<Expression> arguments)
          Creates a new SuperConstructorReference.
 SuperConstructorReference createSuperConstructorReference(ReferencePrefix path, ASTList<Expression> arguments)
          Creates a new SuperConstructorReference.
 SuperReference createSuperReference()
          Creates a new SuperReference.
 SuperReference createSuperReference(ReferencePrefix accessPath)
          Creates a new SuperReference.
 Switch createSwitch()
          Creates a new Switch.
 Switch createSwitch(Expression e)
          Creates a new Switch.
 Switch createSwitch(Expression e, ASTList<Branch> branches)
          Creates a new Switch.
 Synchronized createSynchronized()
          Creates a new Synchronized.
 SynchronizedBlock createSynchronizedBlock()
          Creates a new SynchronizedBlock.
 SynchronizedBlock createSynchronizedBlock(Expression e, StatementBlock body)
          Creates a new SynchronizedBlock.
 SynchronizedBlock createSynchronizedBlock(StatementBlock body)
          Creates a new SynchronizedBlock.
 Then createThen()
          Creates a new Then.
 Then createThen(Statement body)
          Creates a new Then.
 ThisConstructorReference createThisConstructorReference()
          Creates a new ThisConstructorReference.
 ThisConstructorReference createThisConstructorReference(ASTList<Expression> arguments)
          Creates a new ThisConstructorReference.
 ThisReference createThisReference()
          Creates a new ThisReference.
 ThisReference createThisReference(TypeReference outer)
          Creates a new ThisReference.
 Throw createThrow()
          Creates a new Throw.
 Throw createThrow(Expression expr)
          Creates a new Throw.
 Throws createThrows()
          Creates a new Throws.
 Throws createThrows(ASTList<TypeReference> list)
          Creates a new Throws.
 Throws createThrows(TypeReference exception)
          Creates a new Throws.
 Times createTimes()
          Creates a new Times.
 Times createTimes(Expression lhs, Expression rhs)
          Creates a new Times.
 TimesAssignment createTimesAssignment()
          Creates a new TimesAssignment.
 TimesAssignment createTimesAssignment(Expression lhs, Expression rhs)
          Creates a new TimesAssignment.
 Transient createTransient()
          Creates a new Transient.
 Try createTry()
          Creates a new Try.
 Try createTry(StatementBlock body)
          Creates a new Try.
 Try createTry(StatementBlock body, ASTList<Branch> branches)
          Creates a new Try.
 TypeCast createTypeCast()
          Creates a new TypeCast.
 TypeCast createTypeCast(Expression child, TypeReference typeref)
          Creates a new TypeCast.
 TypeReference createTypeReference()
          Creates a new TypeReference.
 TypeReference createTypeReference(Identifier name)
          Creates a new TypeReference.
 TypeReference createTypeReference(Identifier name, int dim)
          Creates a new TypeReference.
 TypeReference createTypeReference(ReferencePrefix prefix, Identifier name)
          Creates a new TypeReference.
 UncollatedReferenceQualifier createUncollatedReferenceQualifier()
          Creates a new UncollatedReferenceQualifier.
 UncollatedReferenceQualifier createUncollatedReferenceQualifier(Identifier id)
          Creates a new UncollatedReferenceQualifier.
 UncollatedReferenceQualifier createUncollatedReferenceQualifier(ReferencePrefix prefix, Identifier id)
          Creates a new UncollatedReferenceQualifier.
 UnsignedShiftRight createUnsignedShiftRight()
          Creates a new UnsignedShiftRight.
 UnsignedShiftRight createUnsignedShiftRight(Expression lhs, Expression rhs)
          Creates a new UnsignedShiftRight.
 UnsignedShiftRightAssignment createUnsignedShiftRightAssignment()
          Creates a new UnsignedShiftRightAssignment.
 UnsignedShiftRightAssignment createUnsignedShiftRightAssignment(Expression lhs, Expression rhs)
          Creates a new UnsignedShiftRightAssignment.
 VariableReference createVariableReference()
          Creates a new VariableReference.
 VariableReference createVariableReference(Identifier id)
          Creates a new VariableReference.
 VariableSpecification createVariableSpecification()
          Creates a new VariableSpecification.
 VariableSpecification createVariableSpecification(Identifier name)
          Creates a new VariableSpecification.
 VariableSpecification createVariableSpecification(Identifier name, Expression init)
          Creates a new VariableSpecification.
 VariableSpecification createVariableSpecification(Identifier name, int dimensions, Expression init)
          Creates a new VariableSpecification.
 Volatile createVolatile()
          Creates a new Volatile.
 While createWhile()
          Creates a new While.
 While createWhile(Expression guard)
          Creates a new While.
 While createWhile(Expression guard, Statement body)
          Creates a new While.
 void detrace(ProgramElement pe)
           
 java.util.Collection<JavaProgramFactory.TraceItem> endTracing()
          debug method
static JavaProgramFactory getInstance()
          Returns the single instance of this class.
 PrettyPrinter getPrettyPrinter(java.io.Writer out)
          Returns a new suitable PrettyPrinterobeying the current project settings for the specified writer,
 ServiceConfiguration getServiceConfiguration()
          Returns the service configuration this service is a part of.
 JavaProgramFactory.TraceItem getTraceItem(ProgramElement pe)
           
 void initialize(ServiceConfiguration cfg)
          Called by the service configuration indicating that all services are known.
static void main(java.lang.String[] args)
          Demo program reading a single source file and writing it back to stdout using the default PrettyPrinter.
 void manTrace(ProgramElement pe)
           
 CompilationUnit parseCompilationUnit(java.io.Reader in)
          Parse a CompilationUnitfrom the given reader.
 CompilationUnit parseCompilationUnit(java.io.Reader in, java.lang.String sourceVersion)
          Parse a CompilationUnitfrom the given reader.
 CompilationUnit parseCompilationUnit(java.lang.String in)
          Parse a CompilationUnitfrom the given string.
 java.util.List<CompilationUnit> parseCompilationUnits(java.lang.String[] ins)
          Parse CompilationUnits from the given string.
 ConstructorDeclaration parseConstructorDeclaration(java.io.Reader in)
          Parse a ConstructorDeclarationfrom the given reader.
 ConstructorDeclaration parseConstructorDeclaration(java.lang.String in)
          Parse a ConstructorDeclarationfrom the given string.
 Expression parseExpression(java.io.Reader in)
          Parse an Expressionfrom the given reader.
 Expression parseExpression(java.lang.String in)
          Parse an Expressionfrom the given string.
 FieldDeclaration parseFieldDeclaration(java.io.Reader in)
          Parse a FieldDeclarationfrom the given reader.
 FieldDeclaration parseFieldDeclaration(java.lang.String in)
          Parse a FieldDeclarationfrom the given string.
static int parseInt(java.lang.String nm)
          Replacement for Integer.parseInt allowing "supercharged" non-decimal constants.
static long parseLong(java.lang.String nm)
          Replacement for Long.parseLong which is not available in JDK 1.1 and does not handle 'l' or 'L' suffices in JDK 1.2.
 MemberDeclaration parseMemberDeclaration(java.io.Reader in)
          Parse a MemberDeclarationfrom the given reader.
 MemberDeclaration parseMemberDeclaration(java.lang.String in)
          Parse a MemberDeclarationfrom the given string.
 MethodDeclaration parseMethodDeclaration(java.io.Reader in)
          Parse a MethodDeclarationfrom the given reader.
 MethodDeclaration parseMethodDeclaration(java.lang.String in)
          Parse a MethodDeclarationfrom the given string.
 PackageReference parsePackageReference(java.io.Reader in)
          Parse a PackageReference from the given reader.
 PackageReference parsePackageReference(java.lang.String in)
          Parse a TypeReferencefrom the given string.
 ParameterDeclaration parseParameterDeclaration(java.io.Reader in)
          Parse a ParameterDeclarationfrom the given reader.
 ParameterDeclaration parseParameterDeclaration(java.lang.String in)
          Parse a ParameterDeclarationfrom the given string.
 StatementBlock parseStatementBlock(java.io.Reader in)
          Parse a StatementBlockfrom the given string.
 StatementBlock parseStatementBlock(java.lang.String in)
           
 ASTList<Statement> parseStatements(java.io.Reader in)
          Parse some Statements from the given reader.
 ASTList<Statement> parseStatements(java.lang.String in)
          Parse a list of Statements from the given string.
 TypeArgumentDeclaration parseTypeArgumentDeclaration(java.io.Reader in)
          parse a TypeArgumentDeclaration from the given reader.
 TypeDeclaration parseTypeDeclaration(java.io.Reader in)
          Parse a TypeDeclarationfrom the given reader.
 TypeDeclaration parseTypeDeclaration(java.lang.String in)
          Parse a TypeDeclarationfrom the given string.
 TypeReference parseTypeReference(java.io.Reader in)
          Parse a TypeReferencefrom the given reader.
 TypeReference parseTypeReference(java.lang.String in)
          Parse a TypeReferencefrom the given string.
 void propertyChange(java.beans.PropertyChangeEvent evt)
           
 void trace(ProgramElement pe)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

beginTracing

public void beginTracing()
debug method

Since:
0.90

detrace

public void detrace(ProgramElement pe)

getTraceItem

public JavaProgramFactory.TraceItem getTraceItem(ProgramElement pe)

endTracing

public java.util.Collection<JavaProgramFactory.TraceItem> endTracing()
debug method

Since:
0.90

trace

public void trace(ProgramElement pe)

manTrace

public void manTrace(ProgramElement pe)

initialize

public void initialize(ServiceConfiguration cfg)
Called by the service configuration indicating that all services are known. Services may now start communicating or linking among their configuration partners. The service configuration can be memorized if it has not been passed in by a constructor already.

Specified by:
initialize in interface Service
Parameters:
cfg - the service configuration this services has been assigned to.

getServiceConfiguration

public ServiceConfiguration getServiceConfiguration()
Returns the service configuration this service is a part of.

Specified by:
getServiceConfiguration in interface Service
Returns:
the configuration of this service.

getInstance

public static JavaProgramFactory getInstance()
Returns the single instance of this class.


parseCompilationUnit

public CompilationUnit parseCompilationUnit(java.io.Reader in)
                                     throws java.io.IOException,
                                            ParserException
Parse a CompilationUnitfrom the given reader.

Specified by:
parseCompilationUnit in interface ProgramFactory
Throws:
java.io.IOException
ParserException

parseCompilationUnit

public CompilationUnit parseCompilationUnit(java.io.Reader in,
                                            java.lang.String sourceVersion)
                                     throws java.io.IOException,
                                            ParserException
Parse a CompilationUnitfrom the given reader. The supplied sourceVersion parameter describes the java version.

Specified by:
parseCompilationUnit in interface ProgramFactory
Parameters:
in -
sourceVersion - allowed values: "1.3", "1.4", "5". Defaults to Java 1.4 behavior if sourceVersion is null or any other string.
Returns:
Throws:
java.io.IOException
ParserException

parseTypeDeclaration

public TypeDeclaration parseTypeDeclaration(java.io.Reader in)
                                     throws java.io.IOException,
                                            ParserException
Parse a TypeDeclarationfrom the given reader.

Specified by:
parseTypeDeclaration in interface ProgramFactory
Throws:
java.io.IOException
ParserException

parseTypeArgumentDeclaration

public TypeArgumentDeclaration parseTypeArgumentDeclaration(java.io.Reader in)
                                                     throws java.io.IOException,
                                                            ParserException
Description copied from interface: ProgramFactory
parse a TypeArgumentDeclaration from the given reader.

Specified by:
parseTypeArgumentDeclaration in interface ProgramFactory
Throws:
java.io.IOException
ParserException

parseFieldDeclaration

public FieldDeclaration parseFieldDeclaration(java.io.Reader in)
                                       throws java.io.IOException,
                                              ParserException
Parse a FieldDeclarationfrom the given reader.

Specified by:
parseFieldDeclaration in interface ProgramFactory
Throws:
java.io.IOException
ParserException

parseMethodDeclaration

public MethodDeclaration parseMethodDeclaration(java.io.Reader in)
                                         throws java.io.IOException,
                                                ParserException
Parse a MethodDeclarationfrom the given reader.

Specified by:
parseMethodDeclaration in interface ProgramFactory
Throws:
java.io.IOException
ParserException

parseMemberDeclaration

public MemberDeclaration parseMemberDeclaration(java.io.Reader in)
                                         throws java.io.IOException,
                                                ParserException
Parse a MemberDeclarationfrom the given reader.

Specified by:
parseMemberDeclaration in interface ProgramFactory
Throws:
java.io.IOException
ParserException

parseParameterDeclaration

public ParameterDeclaration parseParameterDeclaration(java.io.Reader in)
                                               throws java.io.IOException,
                                                      ParserException
Parse a ParameterDeclarationfrom the given reader.

Specified by:
parseParameterDeclaration in interface ProgramFactory
Throws:
java.io.IOException
ParserException

parseConstructorDeclaration

public ConstructorDeclaration parseConstructorDeclaration(java.io.Reader in)
                                                   throws java.io.IOException,
                                                          ParserException
Parse a ConstructorDeclarationfrom the given reader.

Specified by:
parseConstructorDeclaration in interface ProgramFactory
Throws:
java.io.IOException
ParserException

parseTypeReference

public TypeReference parseTypeReference(java.io.Reader in)
                                 throws java.io.IOException,
                                        ParserException
Parse a TypeReferencefrom the given reader.

Specified by:
parseTypeReference in interface ProgramFactory
Throws:
java.io.IOException
ParserException

parsePackageReference

public PackageReference parsePackageReference(java.io.Reader in)
                                       throws java.io.IOException,
                                              ParserException
Description copied from interface: ProgramFactory
Parse a PackageReference from the given reader.

Specified by:
parsePackageReference in interface ProgramFactory
Throws:
java.io.IOException
ParserException

parseExpression

public Expression parseExpression(java.io.Reader in)
                           throws java.io.IOException,
                                  ParserException
Parse an Expressionfrom the given reader.

Specified by:
parseExpression in interface ProgramFactory
Throws:
java.io.IOException
ParserException

parseStatements

public ASTList<Statement> parseStatements(java.io.Reader in)
                                   throws java.io.IOException,
                                          ParserException
Parse some Statements from the given reader.

Specified by:
parseStatements in interface ProgramFactory
Throws:
java.io.IOException
ParserException

parseStatementBlock

public StatementBlock parseStatementBlock(java.io.Reader in)
                                   throws java.io.IOException,
                                          ParserException
Parse a StatementBlockfrom the given string.

Specified by:
parseStatementBlock in interface ProgramFactory
Throws:
java.io.IOException
ParserException

parseCompilationUnit

public CompilationUnit parseCompilationUnit(java.lang.String in)
                                     throws ParserException
Parse a CompilationUnitfrom the given string.

Specified by:
parseCompilationUnit in interface ProgramFactory
Throws:
ParserException

parseCompilationUnits

public java.util.List<CompilationUnit> parseCompilationUnits(java.lang.String[] ins)
                                                      throws ParserException
Parse CompilationUnits from the given string.

Specified by:
parseCompilationUnits in interface ProgramFactory
Throws:
ParserException

parseTypeDeclaration

public TypeDeclaration parseTypeDeclaration(java.lang.String in)
                                     throws ParserException
Parse a TypeDeclarationfrom the given string.

Specified by:
parseTypeDeclaration in interface ProgramFactory
Throws:
ParserException

parseMemberDeclaration

public MemberDeclaration parseMemberDeclaration(java.lang.String in)
                                         throws ParserException
Parse a MemberDeclarationfrom the given string.

Specified by:
parseMemberDeclaration in interface ProgramFactory
Throws:
ParserException

parseFieldDeclaration

public FieldDeclaration parseFieldDeclaration(java.lang.String in)
                                       throws ParserException
Parse a FieldDeclarationfrom the given string.

Specified by:
parseFieldDeclaration in interface ProgramFactory
Throws:
ParserException

parseMethodDeclaration

public MethodDeclaration parseMethodDeclaration(java.lang.String in)
                                         throws ParserException
Parse a MethodDeclarationfrom the given string.

Specified by:
parseMethodDeclaration in interface ProgramFactory
Throws:
ParserException

parseParameterDeclaration

public ParameterDeclaration parseParameterDeclaration(java.lang.String in)
                                               throws ParserException
Parse a ParameterDeclarationfrom the given string.

Specified by:
parseParameterDeclaration in interface ProgramFactory
Throws:
ParserException

parseConstructorDeclaration

public ConstructorDeclaration parseConstructorDeclaration(java.lang.String in)
                                                   throws ParserException
Parse a ConstructorDeclarationfrom the given string.

Specified by:
parseConstructorDeclaration in interface ProgramFactory
Throws:
ParserException

parseTypeReference

public TypeReference parseTypeReference(java.lang.String in)
                                 throws ParserException
Parse a TypeReferencefrom the given string.

Specified by:
parseTypeReference in interface ProgramFactory
Throws:
ParserException

parsePackageReference

public PackageReference parsePackageReference(java.lang.String in)
                                       throws ParserException
Parse a TypeReferencefrom the given string.

Specified by:
parsePackageReference in interface ProgramFactory
Throws:
ParserException

parseExpression

public Expression parseExpression(java.lang.String in)
                           throws ParserException
Parse an Expressionfrom the given string.

Specified by:
parseExpression in interface ProgramFactory
Throws:
ParserException

parseStatements

public ASTList<Statement> parseStatements(java.lang.String in)
                                   throws ParserException
Parse a list of Statements from the given string.

Specified by:
parseStatements in interface ProgramFactory
Throws:
ParserException

parseStatementBlock

public StatementBlock parseStatementBlock(java.lang.String in)
                                   throws ParserException
Specified by:
parseStatementBlock in interface ProgramFactory
Throws:
ParserException

parseInt

public static int parseInt(java.lang.String nm)
                    throws java.lang.NumberFormatException
Replacement for Integer.parseInt allowing "supercharged" non-decimal constants. In contrast to Integer.parseInt, works for 0x80000000 and higher octal and hex constants as well as -MIN_VALUE which is allowed in case that the minus sign has been interpreted as an unary minus. The method will return Integer.MIN_VALUE in that case; this is fine as -MIN_VALUE == MIN_VALUE.

Throws:
java.lang.NumberFormatException

parseLong

public static long parseLong(java.lang.String nm)
                      throws java.lang.NumberFormatException
Replacement for Long.parseLong which is not available in JDK 1.1 and does not handle 'l' or 'L' suffices in JDK 1.2.

Throws:
java.lang.NumberFormatException

getPrettyPrinter

public PrettyPrinter getPrettyPrinter(java.io.Writer out)
Returns a new suitable PrettyPrinterobeying the current project settings for the specified writer,

Specified by:
getPrettyPrinter in interface ProgramFactory
Parameters:
out - the (initial) writer to print to.
Returns:
a new pretty printer.

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent evt)
Specified by:
propertyChange in interface java.beans.PropertyChangeListener

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Demo program reading a single source file and writing it back to stdout using the default PrettyPrinter.

Throws:
java.lang.Exception

createComment

public Comment createComment()
Creates a new Comment.

Specified by:
createComment in interface ProgramFactory
Returns:
a new instance of Comment.

createComment

public Comment createComment(java.lang.String text)
Creates a new Comment.

Specified by:
createComment in interface ProgramFactory
Returns:
a new instance of Comment.

createComment

public Comment createComment(java.lang.String text,
                             boolean prefixed)
Creates a new Comment.

Specified by:
createComment in interface ProgramFactory
Returns:
a new instance of Comment.

createCompilationUnit

public CompilationUnit createCompilationUnit()
Creates a new CompilationUnit.

Specified by:
createCompilationUnit in interface ProgramFactory
Returns:
a new instance of CompilationUnit.

createCompilationUnit

public CompilationUnit createCompilationUnit(PackageSpecification pkg,
                                             ASTList<Import> imports,
                                             ASTList<TypeDeclaration> typeDeclarations)
Creates a new CompilationUnit.

Specified by:
createCompilationUnit in interface ProgramFactory
Returns:
a new instance of CompilationUnit.

createDocComment

public DocComment createDocComment()
Creates a new DocComment.

Specified by:
createDocComment in interface ProgramFactory
Returns:
a new instance of DocComment.

createDocComment

public DocComment createDocComment(java.lang.String text)
Creates a new DocComment.

Specified by:
createDocComment in interface ProgramFactory
Returns:
a new instance of DocComment.

createIdentifier

public Identifier createIdentifier()
Creates a new Identifier.

Specified by:
createIdentifier in interface ProgramFactory
Returns:
a new instance of Identifier.

createIdentifier

public Identifier createIdentifier(java.lang.String text)
Creates a new Identifier.

Specified by:
createIdentifier in interface ProgramFactory
Returns:
a new instance of Identifier.

createImport

public Import createImport()
Creates a new Import.

Specified by:
createImport in interface ProgramFactory
Returns:
a new instance of Import.

createImport

public Import createImport(TypeReference t,
                           boolean multi)
Creates a new Import.

Specified by:
createImport in interface ProgramFactory
Returns:
a new instance of Import.

createImport

public Import createImport(PackageReference t)
Creates a new Import.

Specified by:
createImport in interface ProgramFactory
Returns:
a new instance of Import.

createStaticImport

public Import createStaticImport(TypeReference t)
Description copied from interface: ProgramFactory
Creates a new Import.

Specified by:
createStaticImport in interface ProgramFactory
Returns:
a new instance of Import.

createStaticImport

public Import createStaticImport(TypeReference t,
                                 Identifier id)
Description copied from interface: ProgramFactory
Creates a new Import.

Specified by:
createStaticImport in interface ProgramFactory
Returns:
a new instance of Import.

createPackageSpecification

public PackageSpecification createPackageSpecification()
Creates a new PackageSpecification.

Specified by:
createPackageSpecification in interface ProgramFactory
Returns:
a new instance of PackageSpecification.

createPackageSpecification

public PackageSpecification createPackageSpecification(PackageReference pkg)
Creates a new PackageSpecification.

Specified by:
createPackageSpecification in interface ProgramFactory
Returns:
a new instance of PackageSpecification.

createSingleLineComment

public SingleLineComment createSingleLineComment()
Creates a new SingleLineComment.

Specified by:
createSingleLineComment in interface ProgramFactory
Returns:
a new instance of SingleLineComment.

createSingleLineComment

public SingleLineComment createSingleLineComment(java.lang.String text)
Creates a new SingleLineComment.

Specified by:
createSingleLineComment in interface ProgramFactory
Returns:
a new instance of SingleLineComment.

createTypeReference

public TypeReference createTypeReference()
Creates a new TypeReference.

Specified by:
createTypeReference in interface ProgramFactory
Returns:
a new instance of TypeReference.

createTypeReference

public TypeReference createTypeReference(Identifier name)
Creates a new TypeReference.

Specified by:
createTypeReference in interface ProgramFactory
Returns:
a new instance of TypeReference.

createTypeReference

public TypeReference createTypeReference(ReferencePrefix prefix,
                                         Identifier name)
Creates a new TypeReference.

Specified by:
createTypeReference in interface ProgramFactory
Returns:
a new instance of TypeReference.

createTypeReference

public TypeReference createTypeReference(Identifier name,
                                         int dim)
Creates a new TypeReference.

Specified by:
createTypeReference in interface ProgramFactory
Returns:
a new instance of TypeReference.

createPackageReference

public PackageReference createPackageReference()
Creates a new PackageReference.

Specified by:
createPackageReference in interface ProgramFactory
Returns:
a new instance of PackageReference.

createPackageReference

public PackageReference createPackageReference(Identifier id)
Creates a new PackageReference.

Specified by:
createPackageReference in interface ProgramFactory
Returns:
a new instance of PackageReference.

createPackageReference

public PackageReference createPackageReference(PackageReference path,
                                               Identifier id)
Creates a new PackageReference.

Specified by:
createPackageReference in interface ProgramFactory
Returns:
a new instance of PackageReference.

createUncollatedReferenceQualifier

public UncollatedReferenceQualifier createUncollatedReferenceQualifier()
Creates a new UncollatedReferenceQualifier.

Specified by:
createUncollatedReferenceQualifier in interface ProgramFactory
Returns:
a new instance of UncollatedReferenceQualifier.

createUncollatedReferenceQualifier

public UncollatedReferenceQualifier createUncollatedReferenceQualifier(Identifier id)
Creates a new UncollatedReferenceQualifier.

Specified by:
createUncollatedReferenceQualifier in interface ProgramFactory
Returns:
a new instance of UncollatedReferenceQualifier.

createUncollatedReferenceQualifier

public UncollatedReferenceQualifier createUncollatedReferenceQualifier(ReferencePrefix prefix,
                                                                       Identifier id)
Creates a new UncollatedReferenceQualifier.

Specified by:
createUncollatedReferenceQualifier in interface ProgramFactory
Returns:
a new instance of UncollatedReferenceQualifier.

createClassDeclaration

public ClassDeclaration createClassDeclaration()
Creates a new ClassDeclaration.

Specified by:
createClassDeclaration in interface ProgramFactory
Returns:
a new instance of ClassDeclaration.

createClassDeclaration

public ClassDeclaration createClassDeclaration(ASTList<DeclarationSpecifier> declSpecs,
                                               Identifier name,
                                               Extends extended,
                                               Implements implemented,
                                               ASTList<MemberDeclaration> members)
Creates a new ClassDeclaration.

Specified by:
createClassDeclaration in interface ProgramFactory
Returns:
a new instance of ClassDeclaration.

createClassDeclaration

public ClassDeclaration createClassDeclaration(ASTList<MemberDeclaration> members)
Creates a new ClassDeclaration.

Specified by:
createClassDeclaration in interface ProgramFactory
Returns:
a new instance of ClassDeclaration.

createClassInitializer

public ClassInitializer createClassInitializer()
Creates a new ClassInitializer.

Specified by:
createClassInitializer in interface ProgramFactory
Returns:
a new instance of ClassInitializer.

createClassInitializer

public ClassInitializer createClassInitializer(StatementBlock body)
Creates a new ClassInitializer.

Specified by:
createClassInitializer in interface ProgramFactory
Returns:
a new instance of ClassInitializer.

createClassInitializer

public ClassInitializer createClassInitializer(Static modifier,
                                               StatementBlock body)
Creates a new ClassInitializer.

Specified by:
createClassInitializer in interface ProgramFactory
Returns:
a new instance of ClassInitializer.

createConstructorDeclaration

public ConstructorDeclaration createConstructorDeclaration()
Creates a new ConstructorDeclaration.

Specified by:
createConstructorDeclaration in interface ProgramFactory
Returns:
a new instance of ConstructorDeclaration.

createConstructorDeclaration

public ConstructorDeclaration createConstructorDeclaration(VisibilityModifier modifier,
                                                           Identifier name,
                                                           ASTList<ParameterDeclaration> parameters,
                                                           Throws exceptions,
                                                           StatementBlock body)
Creates a new ConstructorDeclaration.

Specified by:
createConstructorDeclaration in interface ProgramFactory
Returns:
a new instance of ConstructorDeclaration.

createThrows

public Throws createThrows()
Creates a new Throws.

Specified by:
createThrows in interface ProgramFactory
Returns:
a new instance of Throws.

createThrows

public Throws createThrows(TypeReference exception)
Creates a new Throws.

Specified by:
createThrows in interface ProgramFactory
Returns:
a new instance of Throws.

createThrows

public Throws createThrows(ASTList<TypeReference> list)
Creates a new Throws.

Specified by:
createThrows in interface ProgramFactory
Returns:
a new instance of Throws.

createFieldDeclaration

public FieldDeclaration createFieldDeclaration()
Creates a new FieldDeclaration.

Specified by:
createFieldDeclaration in interface ProgramFactory
Returns:
a new instance of FieldDeclaration.

createFieldDeclaration

public FieldDeclaration createFieldDeclaration(TypeReference typeRef,
                                               Identifier name)
Creates a new FieldDeclaration.

Specified by:
createFieldDeclaration in interface ProgramFactory
Returns:
a new instance of FieldDeclaration.

createFieldDeclaration

public FieldDeclaration createFieldDeclaration(ASTList<DeclarationSpecifier> mods,
                                               TypeReference typeRef,
                                               Identifier name,
                                               Expression init)
Creates a new FieldDeclaration.

Specified by:
createFieldDeclaration in interface ProgramFactory
Returns:
a new instance of FieldDeclaration.

createFieldDeclaration

public FieldDeclaration createFieldDeclaration(ASTList<DeclarationSpecifier> mods,
                                               TypeReference typeRef,
                                               ASTList<FieldSpecification> vars)
Creates a new FieldDeclaration.

Specified by:
createFieldDeclaration in interface ProgramFactory
Returns:
a new instance of FieldDeclaration.

createExtends

public Extends createExtends()
Creates a new Extends.

Specified by:
createExtends in interface ProgramFactory
Returns:
a new instance of Extends.

createExtends

public Extends createExtends(TypeReference supertype)
Creates a new Extends.

Specified by:
createExtends in interface ProgramFactory
Returns:
a new instance of Extends.

createExtends

public Extends createExtends(ASTList<TypeReference> list)
Creates a new Extends.

Specified by:
createExtends in interface ProgramFactory
Returns:
a new instance of Extends.

createImplements

public Implements createImplements()
Creates a new Implements.

Specified by:
createImplements in interface ProgramFactory
Returns:
a new instance of Implements.

createImplements

public Implements createImplements(TypeReference supertype)
Creates a new Implements.

Specified by:
createImplements in interface ProgramFactory
Returns:
a new instance of Implements.

createImplements

public Implements createImplements(ASTList<TypeReference> list)
Creates a new Implements.

Specified by:
createImplements in interface ProgramFactory
Returns:
a new instance of Implements.

createInterfaceDeclaration

public InterfaceDeclaration createInterfaceDeclaration()
Creates a new InterfaceDeclaration.

Specified by:
createInterfaceDeclaration in interface ProgramFactory
Returns:
a new instance of InterfaceDeclaration.

createInterfaceDeclaration

public InterfaceDeclaration createInterfaceDeclaration(ASTList<DeclarationSpecifier> modifiers,
                                                       Identifier name,
                                                       Extends extended,
                                                       ASTList<MemberDeclaration> members)
Creates a new InterfaceDeclaration.

Specified by:
createInterfaceDeclaration in interface ProgramFactory
Returns:
a new instance of InterfaceDeclaration.

createAnnotationDeclaration

public AnnotationDeclaration createAnnotationDeclaration()
Specified by:
createAnnotationDeclaration in interface ProgramFactory

createAnnotationDeclaration

public AnnotationDeclaration createAnnotationDeclaration(ASTList<DeclarationSpecifier> modifiers,
                                                         Identifier name,
                                                         ASTList<MemberDeclaration> members)
Specified by:
createAnnotationDeclaration in interface ProgramFactory

createLocalVariableDeclaration

public LocalVariableDeclaration createLocalVariableDeclaration()
Creates a new LocalVariableDeclaration.

Specified by:
createLocalVariableDeclaration in interface ProgramFactory
Returns:
a new instance of LocalVariableDeclaration.

createLocalVariableDeclaration

public LocalVariableDeclaration createLocalVariableDeclaration(TypeReference typeRef,
                                                               Identifier name)
Creates a new LocalVariableDeclaration.

Specified by:
createLocalVariableDeclaration in interface ProgramFactory
Returns:
a new instance of LocalVariableDeclaration.

createLocalVariableDeclaration

public LocalVariableDeclaration createLocalVariableDeclaration(ASTList<DeclarationSpecifier> mods,
                                                               TypeReference typeRef,
                                                               ASTList<VariableSpecification> vars)
Creates a new LocalVariableDeclaration.

Specified by:
createLocalVariableDeclaration in interface ProgramFactory
Returns:
a new instance of LocalVariableDeclaration.

createLocalVariableDeclaration

public LocalVariableDeclaration createLocalVariableDeclaration(ASTList<DeclarationSpecifier> mods,
                                                               TypeReference typeRef,
                                                               Identifier name,
                                                               Expression init)
Creates a new LocalVariableDeclaration.

Specified by:
createLocalVariableDeclaration in interface ProgramFactory
Returns:
a new instance of LocalVariableDeclaration.

createMethodDeclaration

public MethodDeclaration createMethodDeclaration()
Creates a new MethodDeclaration.

Specified by:
createMethodDeclaration in interface ProgramFactory
Returns:
a new instance of MethodDeclaration.

createMethodDeclaration

public MethodDeclaration createMethodDeclaration(ASTList<DeclarationSpecifier> modifiers,
                                                 TypeReference returnType,
                                                 Identifier name,
                                                 ASTList<ParameterDeclaration> parameters,
                                                 Throws exceptions)
Creates a new MethodDeclaration.

Specified by:
createMethodDeclaration in interface ProgramFactory
Returns:
a new instance of MethodDeclaration.

createMethodDeclaration

public MethodDeclaration createMethodDeclaration(ASTList<DeclarationSpecifier> modifiers,
                                                 TypeReference returnType,
                                                 Identifier name,
                                                 ASTList<ParameterDeclaration> parameters,
                                                 Throws exceptions,
                                                 StatementBlock body)
Creates a new MethodDeclaration.

Specified by:
createMethodDeclaration in interface ProgramFactory
Returns:
a new instance of MethodDeclaration.

createAnnotationPropertyDeclaration

public AnnotationPropertyDeclaration createAnnotationPropertyDeclaration(ASTList<DeclarationSpecifier> modifiers,
                                                                         TypeReference returnType,
                                                                         Identifier name,
                                                                         Expression defaultValue)
Specified by:
createAnnotationPropertyDeclaration in interface ProgramFactory

createParameterDeclaration

public ParameterDeclaration createParameterDeclaration()
Creates a new ParameterDeclaration.

Specified by:
createParameterDeclaration in interface ProgramFactory
Returns:
a new instance of ParameterDeclaration.

createParameterDeclaration

public ParameterDeclaration createParameterDeclaration(TypeReference typeRef,
                                                       Identifier name)
Creates a new ParameterDeclaration.

Specified by:
createParameterDeclaration in interface ProgramFactory
Returns:
a new instance of ParameterDeclaration.

createParameterDeclaration

public ParameterDeclaration createParameterDeclaration(ASTList<DeclarationSpecifier> mods,
                                                       TypeReference typeRef,
                                                       Identifier name)
Creates a new ParameterDeclaration.

Specified by:
createParameterDeclaration in interface ProgramFactory
Returns:
a new instance of ParameterDeclaration.

createVariableSpecification

public VariableSpecification createVariableSpecification()
Creates a new VariableSpecification.

Specified by:
createVariableSpecification in interface ProgramFactory
Returns:
a new instance of VariableSpecification.

createVariableSpecification

public VariableSpecification createVariableSpecification(Identifier name)
Creates a new VariableSpecification.

Specified by:
createVariableSpecification in interface ProgramFactory
Returns:
a new instance of VariableSpecification.

createVariableSpecification

public VariableSpecification createVariableSpecification(Identifier name,
                                                         Expression init)
Creates a new VariableSpecification.

Specified by:
createVariableSpecification in interface ProgramFactory
Returns:
a new instance of VariableSpecification.

createVariableSpecification

public VariableSpecification createVariableSpecification(Identifier name,
                                                         int dimensions,
                                                         Expression init)
Creates a new VariableSpecification.

Specified by:
createVariableSpecification in interface ProgramFactory
Returns:
a new instance of VariableSpecification.

createFieldSpecification

public FieldSpecification createFieldSpecification()
Creates a new FieldSpecification.

Specified by:
createFieldSpecification in interface ProgramFactory
Returns:
a new instance of FieldSpecification.

createFieldSpecification

public FieldSpecification createFieldSpecification(Identifier name)
Creates a new FieldSpecification.

Specified by:
createFieldSpecification in interface ProgramFactory
Returns:
a new instance of FieldSpecification.

createFieldSpecification

public FieldSpecification createFieldSpecification(Identifier name,
                                                   Expression init)
Creates a new FieldSpecification.

Specified by:
createFieldSpecification in interface ProgramFactory
Returns:
a new instance of FieldSpecification.

createFieldSpecification

public FieldSpecification createFieldSpecification(Identifier name,
                                                   int dimensions,
                                                   Expression init)
Creates a new FieldSpecification.

Specified by:
createFieldSpecification in interface ProgramFactory
Returns:
a new instance of FieldSpecification.

createArrayInitializer

public ArrayInitializer createArrayInitializer()
Creates a new ArrayInitializer.

Specified by:
createArrayInitializer in interface ProgramFactory
Returns:
a new instance of ArrayInitializer.

createArrayInitializer

public ArrayInitializer createArrayInitializer(ASTList<Expression> args)
Creates a new ArrayInitializer.

Specified by:
createArrayInitializer in interface ProgramFactory
Returns:
a new instance of ArrayInitializer.

createParenthesizedExpression

public ParenthesizedExpression createParenthesizedExpression()
Creates a new ParenthesizedExpression.

Specified by:
createParenthesizedExpression in interface ProgramFactory
Returns:
a new instance of ParenthesizedExpression.

createParenthesizedExpression

public ParenthesizedExpression createParenthesizedExpression(Expression child)
Creates a new ParenthesizedExpression.

Specified by:
createParenthesizedExpression in interface ProgramFactory
Returns:
a new instance of ParenthesizedExpression.

createBooleanLiteral

public BooleanLiteral createBooleanLiteral()
Creates a new BooleanLiteral.

Specified by:
createBooleanLiteral in interface ProgramFactory
Returns:
a new instance of BooleanLiteral.

createBooleanLiteral

public BooleanLiteral createBooleanLiteral(boolean value)
Creates a new BooleanLiteral.

Specified by:
createBooleanLiteral in interface ProgramFactory
Returns:
a new instance of BooleanLiteral.

createCharLiteral

public CharLiteral createCharLiteral()
Creates a new CharLiteral.

Specified by:
createCharLiteral in interface ProgramFactory
Returns:
a new instance of CharLiteral.

createCharLiteral

public CharLiteral createCharLiteral(char value)
Creates a new CharLiteral.

Specified by:
createCharLiteral in interface ProgramFactory
Returns:
a new instance of CharLiteral.

createCharLiteral

public CharLiteral createCharLiteral(java.lang.String value)
Creates a new CharLiteral.

Specified by:
createCharLiteral in interface ProgramFactory
Returns:
a new instance of CharLiteral.

createDoubleLiteral

public DoubleLiteral createDoubleLiteral()
Creates a new DoubleLiteral.

Specified by:
createDoubleLiteral in interface ProgramFactory
Returns:
a new instance of DoubleLiteral.

createDoubleLiteral

public DoubleLiteral createDoubleLiteral(double value)
Creates a new DoubleLiteral.

Specified by:
createDoubleLiteral in interface ProgramFactory
Returns:
a new instance of DoubleLiteral.

createDoubleLiteral

public DoubleLiteral createDoubleLiteral(java.lang.String value)
Creates a new DoubleLiteral.

Specified by:
createDoubleLiteral in interface ProgramFactory
Returns:
a new instance of DoubleLiteral.

createFloatLiteral

public FloatLiteral createFloatLiteral()
Creates a new FloatLiteral.

Specified by:
createFloatLiteral in interface ProgramFactory
Returns:
a new instance of FloatLiteral.

createFloatLiteral

public FloatLiteral createFloatLiteral(float value)
Creates a new FloatLiteral.

Specified by:
createFloatLiteral in interface ProgramFactory
Returns:
a new instance of FloatLiteral.

createFloatLiteral

public FloatLiteral createFloatLiteral(java.lang.String value)
Creates a new FloatLiteral.

Specified by:
createFloatLiteral in interface ProgramFactory
Returns:
a new instance of FloatLiteral.

createIntLiteral

public IntLiteral createIntLiteral()
Creates a new IntLiteral.

Specified by:
createIntLiteral in interface ProgramFactory
Returns:
a new instance of IntLiteral.

createIntLiteral

public IntLiteral createIntLiteral(int value)
Creates a new IntLiteral.

Specified by:
createIntLiteral in interface ProgramFactory
Returns:
a new instance of IntLiteral.

createIntLiteral

public IntLiteral createIntLiteral(java.lang.String value)
Creates a new IntLiteral.

Specified by:
createIntLiteral in interface ProgramFactory
Returns:
a new instance of IntLiteral.

createLongLiteral

public LongLiteral createLongLiteral()
Creates a new LongLiteral.

Specified by:
createLongLiteral in interface ProgramFactory
Returns:
a new instance of LongLiteral.

createLongLiteral

public LongLiteral createLongLiteral(long value)
Creates a new LongLiteral.

Specified by:
createLongLiteral in interface ProgramFactory
Returns:
a new instance of LongLiteral.

createLongLiteral

public LongLiteral createLongLiteral(java.lang.String value)
Creates a new LongLiteral.

Specified by:
createLongLiteral in interface ProgramFactory
Returns:
a new instance of LongLiteral.

createNullLiteral

public NullLiteral createNullLiteral()
Creates a new NullLiteral.

Specified by:
createNullLiteral in interface ProgramFactory
Returns:
a new instance of NullLiteral.

createStringLiteral

public StringLiteral createStringLiteral()
Creates a new StringLiteral.

Specified by:
createStringLiteral in interface ProgramFactory
Returns:
a new instance of StringLiteral.

createStringLiteral

public StringLiteral createStringLiteral(java.lang.String value)
Creates a new StringLiteral.

Specified by:
createStringLiteral in interface ProgramFactory
Returns:
a new instance of StringLiteral.

createArrayReference

public ArrayReference createArrayReference()
Creates a new ArrayReference.

Specified by:
createArrayReference in interface ProgramFactory
Returns:
a new instance of ArrayReference.

createArrayReference

public ArrayReference createArrayReference(ReferencePrefix accessPath,
                                           ASTList<Expression> initializers)
Creates a new ArrayReference.

Specified by:
createArrayReference in interface ProgramFactory
Returns:
a new instance of ArrayReference.

createFieldReference

public FieldReference createFieldReference()
Creates a new FieldReference.

Specified by:
createFieldReference in interface ProgramFactory
Returns:
a new instance of FieldReference.

createFieldReference

public FieldReference createFieldReference(Identifier id)
Creates a new FieldReference.

Specified by:
createFieldReference in interface ProgramFactory
Returns:
a new instance of FieldReference.

createFieldReference

public FieldReference createFieldReference(ReferencePrefix prefix,
                                           Identifier id)
Creates a new FieldReference.

Specified by:
createFieldReference in interface ProgramFactory
Returns:
a new instance of FieldReference.

createMetaClassReference

public MetaClassReference createMetaClassReference()
Creates a new MetaClassReference.

Specified by:
createMetaClassReference in interface ProgramFactory
Returns:
a new instance of MetaClassReference.

createMetaClassReference

public MetaClassReference createMetaClassReference(TypeReference reference)
Creates a new MetaClassReference.

Specified by:
createMetaClassReference in interface ProgramFactory
Returns:
a new instance of MetaClassReference.

createMethodReference

public MethodReference createMethodReference()
Creates a new MethodReference.

Specified by:
createMethodReference in interface ProgramFactory
Returns:
a new instance of MethodReference.

createMethodReference

public MethodReference createMethodReference(Identifier name)
Creates a new MethodReference.

Specified by:
createMethodReference in interface ProgramFactory
Returns:
a new instance of MethodReference.

createMethodReference

public MethodReference createMethodReference(ReferencePrefix accessPath,
                                             Identifier name)
Creates a new MethodReference.

Specified by:
createMethodReference in interface ProgramFactory
Returns:
a new instance of MethodReference.

createMethodReference

public MethodReference createMethodReference(Identifier name,
                                             ASTList<Expression> args)
Creates a new MethodReference.

Specified by:
createMethodReference in interface ProgramFactory
Returns:
a new instance of MethodReference.

createMethodReference

public MethodReference createMethodReference(ReferencePrefix accessPath,
                                             Identifier name,
                                             ASTList<Expression> args)
Creates a new MethodReference.

Specified by:
createMethodReference in interface ProgramFactory
Returns:
a new instance of MethodReference.

createMethodReference

public MethodReference createMethodReference(ReferencePrefix accessPath,
                                             Identifier name,
                                             ASTList<Expression> args,
                                             ASTList<TypeArgumentDeclaration> typeArgs)
Specified by:
createMethodReference in interface ProgramFactory

createAnnotationPropertyReference

public AnnotationPropertyReference createAnnotationPropertyReference(java.lang.String id)
Specified by:
createAnnotationPropertyReference in interface ProgramFactory

createAnnotationPropertyReference

public AnnotationPropertyReference createAnnotationPropertyReference(Identifier id)
Specified by:
createAnnotationPropertyReference in interface ProgramFactory

createSuperConstructorReference

public SuperConstructorReference createSuperConstructorReference()
Creates a new SuperConstructorReference.

Specified by:
createSuperConstructorReference in interface ProgramFactory
Returns:
a new instance of SuperConstructorReference.

createSuperConstructorReference

public SuperConstructorReference createSuperConstructorReference(ASTList<Expression> arguments)
Creates a new SuperConstructorReference.

Specified by:
createSuperConstructorReference in interface ProgramFactory
Returns:
a new instance of SuperConstructorReference.

createSuperConstructorReference

public SuperConstructorReference createSuperConstructorReference(ReferencePrefix path,
                                                                 ASTList<Expression> arguments)
Creates a new SuperConstructorReference.

Specified by:
createSuperConstructorReference in interface ProgramFactory
Returns:
a new instance of SuperConstructorReference.

createSuperReference

public SuperReference createSuperReference()
Creates a new SuperReference.

Specified by:
createSuperReference in interface ProgramFactory
Returns:
a new instance of SuperReference.

createSuperReference

public SuperReference createSuperReference(ReferencePrefix accessPath)
Creates a new SuperReference.

Specified by:
createSuperReference in interface ProgramFactory
Returns:
a new instance of SuperReference.

createThisConstructorReference

public ThisConstructorReference createThisConstructorReference()
Creates a new ThisConstructorReference.

Specified by:
createThisConstructorReference in interface ProgramFactory
Returns:
a new instance of ThisConstructorReference.

createThisConstructorReference

public ThisConstructorReference createThisConstructorReference(ASTList<Expression> arguments)
Creates a new ThisConstructorReference.

Specified by:
createThisConstructorReference in interface ProgramFactory
Returns:
a new instance of ThisConstructorReference.

createThisReference

public ThisReference createThisReference()
Creates a new ThisReference.

Specified by:
createThisReference in interface ProgramFactory
Returns:
a new instance of ThisReference.

createThisReference

public ThisReference createThisReference(TypeReference outer)
Creates a new ThisReference.

Specified by:
createThisReference in interface ProgramFactory
Returns:
a new instance of ThisReference.

createVariableReference

public VariableReference createVariableReference()
Creates a new VariableReference.

Specified by:
createVariableReference in interface ProgramFactory
Returns:
a new instance of VariableReference.

createVariableReference

public VariableReference createVariableReference(Identifier id)
Creates a new VariableReference.

Specified by:
createVariableReference in interface ProgramFactory
Returns:
a new instance of VariableReference.

createBinaryAnd

public BinaryAnd createBinaryAnd()
Creates a new BinaryAnd.

Specified by:
createBinaryAnd in interface ProgramFactory
Returns:
a new instance of BinaryAnd.

createBinaryAnd

public BinaryAnd createBinaryAnd(Expression lhs,
                                 Expression rhs)
Creates a new BinaryAnd.

Specified by:
createBinaryAnd in interface ProgramFactory
Returns:
a new instance of BinaryAnd.

createBinaryAndAssignment

public BinaryAndAssignment createBinaryAndAssignment()
Creates a new BinaryAndAssignment.

Specified by:
createBinaryAndAssignment in interface ProgramFactory
Returns:
a new instance of BinaryAndAssignment.

createBinaryAndAssignment

public BinaryAndAssignment createBinaryAndAssignment(Expression lhs,
                                                     Expression rhs)
Creates a new BinaryAndAssignment.

Specified by:
createBinaryAndAssignment in interface ProgramFactory
Returns:
a new instance of BinaryAndAssignment.

createBinaryNot

public BinaryNot createBinaryNot()
Creates a new BinaryNot.

Specified by:
createBinaryNot in interface ProgramFactory
Returns:
a new instance of BinaryNot.

createBinaryNot

public BinaryNot createBinaryNot(Expression child)
Creates a new BinaryNot.

Specified by:
createBinaryNot in interface ProgramFactory
Returns:
a new instance of BinaryNot.

createBinaryOr

public BinaryOr createBinaryOr()
Creates a new BinaryOr.

Specified by:
createBinaryOr in interface ProgramFactory
Returns:
a new instance of BinaryOr.

createBinaryOr

public BinaryOr createBinaryOr(Expression lhs,
                               Expression rhs)
Creates a new BinaryOr.

Specified by:
createBinaryOr in interface ProgramFactory
Returns:
a new instance of BinaryOr.

createBinaryOrAssignment

public BinaryOrAssignment createBinaryOrAssignment()
Creates a new BinaryOrAssignment.

Specified by:
createBinaryOrAssignment in interface ProgramFactory
Returns:
a new instance of BinaryOrAssignment.

createBinaryOrAssignment

public BinaryOrAssignment createBinaryOrAssignment(Expression lhs,
                                                   Expression rhs)
Creates a new BinaryOrAssignment.

Specified by:
createBinaryOrAssignment in interface ProgramFactory
Returns:
a new instance of BinaryOrAssignment.

createBinaryXOr

public BinaryXOr createBinaryXOr()
Creates a new BinaryXOr.

Specified by:
createBinaryXOr in interface ProgramFactory
Returns:
a new instance of BinaryXOr.

createBinaryXOr

public BinaryXOr createBinaryXOr(Expression lhs,
                                 Expression rhs)
Creates a new BinaryXOr.

Specified by:
createBinaryXOr in interface ProgramFactory
Returns:
a new instance of BinaryXOr.

createBinaryXOrAssignment

public BinaryXOrAssignment createBinaryXOrAssignment()
Creates a new BinaryXOrAssignment.

Specified by:
createBinaryXOrAssignment in interface ProgramFactory
Returns:
a new instance of BinaryXOrAssignment.

createBinaryXOrAssignment

public BinaryXOrAssignment createBinaryXOrAssignment(Expression lhs,
                                                     Expression rhs)
Creates a new BinaryXOrAssignment.

Specified by:
createBinaryXOrAssignment in interface ProgramFactory
Returns:
a new instance of BinaryXOrAssignment.

createConditional

public Conditional createConditional()
Creates a new Conditional.

Specified by:
createConditional in interface ProgramFactory
Returns:
a new instance of Conditional.

createConditional

public Conditional createConditional(Expression guard,
                                     Expression thenExpr,
                                     Expression elseExpr)
Creates a new Conditional.

Specified by:
createConditional in interface ProgramFactory
Returns:
a new instance of Conditional.

createCopyAssignment

public CopyAssignment createCopyAssignment()
Creates a new CopyAssignment.

Specified by:
createCopyAssignment in interface ProgramFactory
Returns:
a new instance of CopyAssignment.

createCopyAssignment

public CopyAssignment createCopyAssignment(Expression lhs,
                                           Expression rhs)
Creates a new CopyAssignment.

Specified by:
createCopyAssignment in interface ProgramFactory
Returns:
a new instance of CopyAssignment.

createDivide

public Divide createDivide()
Creates a new Divide.

Specified by:
createDivide in interface ProgramFactory
Returns:
a new instance of Divide.

createDivide

public Divide createDivide(Expression lhs,
                           Expression rhs)
Creates a new Divide.

Specified by:
createDivide in interface ProgramFactory
Returns:
a new instance of Divide.

createDivideAssignment

public DivideAssignment createDivideAssignment()
Creates a new DivideAssignment.

Specified by:
createDivideAssignment in interface ProgramFactory
Returns:
a new instance of DivideAssignment.

createDivideAssignment

public DivideAssignment createDivideAssignment(Expression lhs,
                                               Expression rhs)
Creates a new DivideAssignment.

Specified by:
createDivideAssignment in interface ProgramFactory
Returns:
a new instance of DivideAssignment.

createEquals

public Equals createEquals()
Creates a new Equals.

Specified by:
createEquals in interface ProgramFactory
Returns:
a new instance of Equals.

createEquals

public Equals createEquals(Expression lhs,
                           Expression rhs)
Creates a new Equals.

Specified by:
createEquals in interface ProgramFactory
Returns:
a new instance of Equals.

createGreaterOrEquals

public GreaterOrEquals createGreaterOrEquals()
Creates a new GreaterOrEquals.

Specified by:
createGreaterOrEquals in interface ProgramFactory
Returns:
a new instance of GreaterOrEquals.

createGreaterOrEquals

public GreaterOrEquals createGreaterOrEquals(Expression lhs,
                                             Expression rhs)
Creates a new GreaterOrEquals.

Specified by:
createGreaterOrEquals in interface ProgramFactory
Returns:
a new instance of GreaterOrEquals.

createGreaterThan

public GreaterThan createGreaterThan()
Creates a new GreaterThan.

Specified by:
createGreaterThan in interface ProgramFactory
Returns:
a new instance of GreaterThan.

createGreaterThan

public GreaterThan createGreaterThan(Expression lhs,
                                     Expression rhs)
Creates a new GreaterThan.

Specified by:
createGreaterThan in interface ProgramFactory
Returns:
a new instance of GreaterThan.

createInstanceof

public Instanceof createInstanceof()
Creates a new Instanceof.

Specified by:
createInstanceof in interface ProgramFactory
Returns:
a new instance of Instanceof.

createInstanceof

public Instanceof createInstanceof(Expression child,
                                   TypeReference typeref)
Creates a new Instanceof.

Specified by:
createInstanceof in interface ProgramFactory
Returns:
a new instance of Instanceof.

createLessOrEquals

public LessOrEquals createLessOrEquals()
Creates a new LessOrEquals.

Specified by:
createLessOrEquals in interface ProgramFactory
Returns:
a new instance of LessOrEquals.

createLessOrEquals

public LessOrEquals createLessOrEquals(Expression lhs,
                                       Expression rhs)
Creates a new LessOrEquals.

Specified by:
createLessOrEquals in interface ProgramFactory
Returns:
a new instance of LessOrEquals.

createLessThan

public LessThan createLessThan()
Creates a new LessThan.

Specified by:
createLessThan in interface ProgramFactory
Returns:
a new instance of LessThan.

createLessThan

public LessThan createLessThan(Expression lhs,
                               Expression rhs)
Creates a new LessThan.

Specified by:
createLessThan in interface ProgramFactory
Returns:
a new instance of LessThan.

createLogicalAnd

public LogicalAnd createLogicalAnd()
Creates a new LogicalAnd.

Specified by:
createLogicalAnd in interface ProgramFactory
Returns:
a new instance of LogicalAnd.

createLogicalAnd

public LogicalAnd createLogicalAnd(Expression lhs,
                                   Expression rhs)
Creates a new LogicalAnd.

Specified by:
createLogicalAnd in interface ProgramFactory
Returns:
a new instance of LogicalAnd.

createLogicalNot

public LogicalNot createLogicalNot()
Creates a new LogicalNot.

Specified by:
createLogicalNot in interface ProgramFactory
Returns:
a new instance of LogicalNot.

createLogicalNot

public LogicalNot createLogicalNot(Expression child)
Creates a new LogicalNot.

Specified by:
createLogicalNot in interface ProgramFactory
Returns:
a new instance of LogicalNot.

createLogicalOr

public LogicalOr createLogicalOr()
Creates a new LogicalOr.

Specified by:
createLogicalOr in interface ProgramFactory
Returns:
a new instance of LogicalOr.

createLogicalOr

public LogicalOr createLogicalOr(Expression lhs,
                                 Expression rhs)
Creates a new LogicalOr.

Specified by:
createLogicalOr in interface ProgramFactory
Returns:
a new instance of LogicalOr.

createMinus

public Minus createMinus()
Creates a new Minus.

Specified by:
createMinus in interface ProgramFactory
Returns:
a new instance of Minus.

createMinus

public Minus createMinus(Expression lhs,
                         Expression rhs)
Creates a new Minus.

Specified by:
createMinus in interface ProgramFactory
Returns:
a new instance of Minus.

createMinusAssignment

public MinusAssignment createMinusAssignment()
Creates a new MinusAssignment.

Specified by:
createMinusAssignment in interface ProgramFactory
Returns:
a new instance of MinusAssignment.

createMinusAssignment

public MinusAssignment createMinusAssignment(Expression lhs,
                                             Expression rhs)
Creates a new MinusAssignment.

Specified by:
createMinusAssignment in interface ProgramFactory
Returns:
a new instance of MinusAssignment.

createModulo

public Modulo createModulo()
Creates a new Modulo.

Specified by:
createModulo in interface ProgramFactory
Returns:
a new instance of Modulo.

createModulo

public Modulo createModulo(Expression lhs,
                           Expression rhs)
Creates a new Modulo.

Specified by:
createModulo in interface ProgramFactory
Returns:
a new instance of Modulo.

createModuloAssignment

public ModuloAssignment createModuloAssignment()
Creates a new ModuloAssignment.

Specified by:
createModuloAssignment in interface ProgramFactory
Returns:
a new instance of ModuloAssignment.

createModuloAssignment

public ModuloAssignment createModuloAssignment(Expression lhs,
                                               Expression rhs)
Creates a new ModuloAssignment.

Specified by:
createModuloAssignment in interface ProgramFactory
Returns:
a new instance of ModuloAssignment.

createNegative

public Negative createNegative()
Creates a new Negative.

Specified by:
createNegative in interface ProgramFactory
Returns:
a new instance of Negative.

createNegative

public Negative createNegative(Expression child)
Creates a new Negative.

Specified by:
createNegative in interface ProgramFactory
Returns:
a new instance of Negative.

createNew

public New createNew()
Creates a new New.

Specified by:
createNew in interface ProgramFactory
Returns:
a new instance of New.

createNew

public New createNew(ReferencePrefix accessPath,
                     TypeReference constructorName,
                     ASTList<Expression> arguments)
Creates a new New.

Specified by:
createNew in interface ProgramFactory
Returns:
a new instance of New.

createNew

public New createNew(ReferencePrefix accessPath,
                     TypeReference constructorName,
                     ASTList<Expression> arguments,
                     ClassDeclaration anonymousClass)
Creates a new New.

Specified by:
createNew in interface ProgramFactory
Returns:
a new instance of New.

createNewArray

public NewArray createNewArray()
Creates a new NewArray.

Specified by:
createNewArray in interface ProgramFactory
Returns:
a new instance of NewArray.

createNewArray

public NewArray createNewArray(TypeReference arrayName,
                               ASTList<Expression> dimExpr)
Creates a new NewArray.

Specified by:
createNewArray in interface ProgramFactory
Returns:
a new instance of NewArray.

createNewArray

public NewArray createNewArray(TypeReference arrayName,
                               int dimensions,
                               ArrayInitializer initializer)
Creates a new NewArray.

Specified by:
createNewArray in interface ProgramFactory
Returns:
a new instance of NewArray.

createNotEquals

public NotEquals createNotEquals()
Creates a new NotEquals.

Specified by:
createNotEquals in interface ProgramFactory
Returns:
a new instance of NotEquals.

createNotEquals

public NotEquals createNotEquals(Expression lhs,
                                 Expression rhs)
Creates a new NotEquals.

Specified by:
createNotEquals in interface ProgramFactory
Returns:
a new instance of NotEquals.

createPlus

public Plus createPlus()
Creates a new Plus.

Specified by:
createPlus in interface ProgramFactory
Returns:
a new instance of Plus.

createPlus

public Plus createPlus(Expression lhs,
                       Expression rhs)
Creates a new Plus.

Specified by:
createPlus in interface ProgramFactory
Returns:
a new instance of Plus.

createPlusAssignment

public PlusAssignment createPlusAssignment()
Creates a new PlusAssignment.

Specified by:
createPlusAssignment in interface ProgramFactory
Returns:
a new instance of PlusAssignment.

createPlusAssignment

public PlusAssignment createPlusAssignment(Expression lhs,
                                           Expression rhs)
Creates a new PlusAssignment.

Specified by:
createPlusAssignment in interface ProgramFactory
Returns:
a new instance of PlusAssignment.

createPositive

public Positive createPositive()
Creates a new Positive.

Specified by:
createPositive in interface ProgramFactory
Returns:
a new instance of Positive.

createPositive

public Positive createPositive(Expression child)
Creates a new Positive.

Specified by:
createPositive in interface ProgramFactory
Returns:
a new instance of Positive.

createPostDecrement

public PostDecrement createPostDecrement()
Creates a new PostDecrement.

Specified by:
createPostDecrement in interface ProgramFactory
Returns:
a new instance of PostDecrement.

createPostDecrement

public PostDecrement createPostDecrement(Expression child)
Creates a new PostDecrement.

Specified by:
createPostDecrement in interface ProgramFactory
Returns:
a new instance of PostDecrement.

createPostIncrement

public PostIncrement createPostIncrement()
Creates a new PostIncrement.

Specified by:
createPostIncrement in interface ProgramFactory
Returns:
a new instance of PostIncrement.

createPostIncrement

public PostIncrement createPostIncrement(Expression child)
Creates a new PostIncrement.

Specified by:
createPostIncrement in interface ProgramFactory
Returns:
a new instance of PostIncrement.

createPreDecrement

public PreDecrement createPreDecrement()
Creates a new PreDecrement.

Specified by:
createPreDecrement in interface ProgramFactory
Returns:
a new instance of PreDecrement.

createPreDecrement

public PreDecrement createPreDecrement(Expression child)
Creates a new PreDecrement.

Specified by:
createPreDecrement in interface ProgramFactory
Returns:
a new instance of PreDecrement.

createPreIncrement

public PreIncrement createPreIncrement()
Creates a new PreIncrement.

Specified by:
createPreIncrement in interface ProgramFactory
Returns:
a new instance of PreIncrement.

createPreIncrement

public PreIncrement createPreIncrement(Expression child)
Creates a new PreIncrement.

Specified by:
createPreIncrement in interface ProgramFactory
Returns:
a new instance of PreIncrement.

createShiftLeft

public ShiftLeft createShiftLeft()
Creates a new ShiftLeft.

Specified by:
createShiftLeft in interface ProgramFactory
Returns:
a new instance of ShiftLeft.

createShiftLeft

public ShiftLeft createShiftLeft(Expression lhs,
                                 Expression rhs)
Creates a new ShiftLeft.

Specified by:
createShiftLeft in interface ProgramFactory
Returns:
a new instance of ShiftLeft.

createShiftLeftAssignment

public ShiftLeftAssignment createShiftLeftAssignment()
Creates a new ShiftLeftAssignment.

Specified by:
createShiftLeftAssignment in interface ProgramFactory
Returns:
a new instance of ShiftLeftAssignment.

createShiftLeftAssignment

public ShiftLeftAssignment createShiftLeftAssignment(Expression lhs,
                                                     Expression rhs)
Creates a new ShiftLeftAssignment.

Specified by:
createShiftLeftAssignment in interface ProgramFactory
Returns:
a new instance of ShiftLeftAssignment.

createShiftRight

public ShiftRight createShiftRight()
Creates a new ShiftRight.

Specified by:
createShiftRight in interface ProgramFactory
Returns:
a new instance of ShiftRight.

createShiftRight

public ShiftRight createShiftRight(Expression lhs,
                                   Expression rhs)
Creates a new ShiftRight.

Specified by:
createShiftRight in interface ProgramFactory
Returns:
a new instance of ShiftRight.

createShiftRightAssignment

public ShiftRightAssignment createShiftRightAssignment()
Creates a new ShiftRightAssignment.

Specified by:
createShiftRightAssignment in interface ProgramFactory
Returns:
a new instance of ShiftRightAssignment.

createShiftRightAssignment

public ShiftRightAssignment createShiftRightAssignment(Expression lhs,
                                                       Expression rhs)
Creates a new ShiftRightAssignment.

Specified by:
createShiftRightAssignment in interface ProgramFactory
Returns:
a new instance of ShiftRightAssignment.

createTimes

public Times createTimes()
Creates a new Times.

Specified by:
createTimes in interface ProgramFactory
Returns:
a new instance of Times.

createTimes

public Times createTimes(Expression lhs,
                         Expression rhs)
Creates a new Times.

Specified by:
createTimes in interface ProgramFactory
Returns:
a new instance of Times.

createTimesAssignment

public TimesAssignment createTimesAssignment()
Creates a new TimesAssignment.

Specified by:
createTimesAssignment in interface ProgramFactory
Returns:
a new instance of TimesAssignment.

createTimesAssignment

public TimesAssignment createTimesAssignment(Expression lhs,
                                             Expression rhs)
Creates a new TimesAssignment.

Specified by:
createTimesAssignment in interface ProgramFactory
Returns:
a new instance of TimesAssignment.

createTypeCast

public TypeCast createTypeCast()
Creates a new TypeCast.

Specified by:
createTypeCast in interface ProgramFactory
Returns:
a new instance of TypeCast.

createTypeCast

public TypeCast createTypeCast(Expression child,
                               TypeReference typeref)
Creates a new TypeCast.

Specified by:
createTypeCast in interface ProgramFactory
Returns:
a new instance of TypeCast.

createUnsignedShiftRight

public UnsignedShiftRight createUnsignedShiftRight()
Creates a new UnsignedShiftRight.

Specified by:
createUnsignedShiftRight in interface ProgramFactory
Returns:
a new instance of UnsignedShiftRight.

createUnsignedShiftRight

public UnsignedShiftRight createUnsignedShiftRight(Expression lhs,
                                                   Expression rhs)
Creates a new UnsignedShiftRight.

Specified by:
createUnsignedShiftRight in interface ProgramFactory
Returns:
a new instance of UnsignedShiftRight.

createUnsignedShiftRightAssignment

public UnsignedShiftRightAssignment createUnsignedShiftRightAssignment()
Creates a new UnsignedShiftRightAssignment.

Specified by:
createUnsignedShiftRightAssignment in interface ProgramFactory
Returns:
a new instance of UnsignedShiftRightAssignment.

createUnsignedShiftRightAssignment

public UnsignedShiftRightAssignment createUnsignedShiftRightAssignment(Expression lhs,
                                                                       Expression rhs)
Creates a new UnsignedShiftRightAssignment.

Specified by:
createUnsignedShiftRightAssignment in interface ProgramFactory
Returns:
a new instance of UnsignedShiftRightAssignment.

createAbstract

public Abstract createAbstract()
Creates a new Abstract.

Specified by:
createAbstract in interface ProgramFactory
Returns:
a new instance of Abstract.

createFinal

public Final createFinal()
Creates a new Final.

Specified by:
createFinal in interface ProgramFactory
Returns:
a new instance of Final.

createNative

public Native createNative()
Creates a new Native.

Specified by:
createNative in interface ProgramFactory
Returns:
a new instance of Native.

createPrivate

public Private createPrivate()
Creates a new Private.

Specified by:
createPrivate in interface ProgramFactory
Returns:
a new instance of Private.

createProtected

public Protected createProtected()
Creates a new Protected.

Specified by:
createProtected in interface ProgramFactory
Returns:
a new instance of Protected.

createPublic

public Public createPublic()
Creates a new Public.

Specified by:
createPublic in interface ProgramFactory
Returns:
a new instance of Public.

createStatic

public Static createStatic()
Creates a new Static.

Specified by:
createStatic in interface ProgramFactory
Returns:
a new instance of Static.

createSynchronized

public Synchronized createSynchronized()
Creates a new Synchronized.

Specified by:
createSynchronized in interface ProgramFactory
Returns:
a new instance of Synchronized.

createTransient

public Transient createTransient()
Creates a new Transient.

Specified by:
createTransient in interface ProgramFactory
Returns:
a new instance of Transient.

createStrictFp

public StrictFp createStrictFp()
Creates a new StrictFp.

Specified by:
createStrictFp in interface ProgramFactory
Returns:
a new instance of StrictFp.

createVolatile

public Volatile createVolatile()
Creates a new Volatile.

Specified by:
createVolatile in interface ProgramFactory
Returns:
a new instance of Volatile.

createAnnotationUseSpecification

public AnnotationUseSpecification createAnnotationUseSpecification()
Description copied from interface: ProgramFactory
Creates a new .

Specified by:
createAnnotationUseSpecification in interface ProgramFactory
Returns:
a new instance of Annotation

createBreak

public Break createBreak()
Creates a new Break.

Specified by:
createBreak in interface ProgramFactory
Returns:
a new instance of Break.

createBreak

public Break createBreak(Identifier label)
Creates a new Break.

Specified by:
createBreak in interface ProgramFactory
Returns:
a new instance of Break.

createCase

public Case createCase()
Creates a new Case.

Specified by:
createCase in interface ProgramFactory
Returns:
a new instance of Case.

createCase

public Case createCase(Expression e)
Creates a new Case.

Specified by:
createCase in interface ProgramFactory
Returns:
a new instance of Case.

createCase

public Case createCase(Expression e,
                       ASTList<Statement> body)
Creates a new Case.

Specified by:
createCase in interface ProgramFactory
Returns:
a new instance of Case.

createCatch

public Catch createCatch()
Creates a new Catch.

Specified by:
createCatch in interface ProgramFactory
Returns:
a new instance of Catch.

createCatch

public Catch createCatch(ParameterDeclaration e,
                         StatementBlock body)
Creates a new Catch.

Specified by:
createCatch in interface ProgramFactory
Returns:
a new instance of Catch.

createContinue

public Continue createContinue()
Creates a new Continue.

Specified by:
createContinue in interface ProgramFactory
Returns:
a new instance of Continue.

createContinue

public Continue createContinue(Identifier label)
Creates a new Continue.

Specified by:
createContinue in interface ProgramFactory
Returns:
a new instance of Continue.

createDefault

public Default createDefault()
Creates a new Default.

Specified by:
createDefault in interface ProgramFactory
Returns:
a new instance of Default.

createDefault

public Default createDefault(ASTList<Statement> body)
Creates a new Default.

Specified by:
createDefault in interface ProgramFactory
Returns:
a new instance of Default.

createDo

public Do createDo()
Creates a new Do.

Specified by:
createDo in interface ProgramFactory
Returns:
a new instance of Do.

createDo

public Do createDo(Expression guard)
Creates a new Do.

Specified by:
createDo in interface ProgramFactory
Returns:
a new instance of Do.

createDo

public Do createDo(Expression guard,
                   Statement body)
Creates a new Do.

Specified by:
createDo in interface ProgramFactory
Returns:
a new instance of Do.

createElse

public Else createElse()
Creates a new Else.

Specified by:
createElse in interface ProgramFactory
Returns:
a new instance of Else.

createElse

public Else createElse(Statement body)
Creates a new Else.

Specified by:
createElse in interface ProgramFactory
Returns:
a new instance of Else.

createEmptyStatement

public EmptyStatement createEmptyStatement()
Creates a new EmptyStatement.

Specified by:
createEmptyStatement in interface ProgramFactory
Returns:
a new instance of EmptyStatement.

createFinally

public Finally createFinally()
Creates a new Finally.

Specified by:
createFinally in interface ProgramFactory
Returns:
a new instance of Finally.

createFinally

public Finally createFinally(StatementBlock body)
Creates a new Finally.

Specified by:
createFinally in interface ProgramFactory
Returns:
a new instance of Finally.

createFor

public For createFor()
Creates a new For.

Specified by:
createFor in interface ProgramFactory
Returns:
a new instance of For.

createFor

public For createFor(ASTList<LoopInitializer> inits,
                     Expression guard,
                     ASTList<Expression> updates,
                     Statement body)
Creates a new For.

Specified by:
createFor in interface ProgramFactory
Returns:
a new instance of For.

createEnhancedFor

public EnhancedFor createEnhancedFor()
Description copied from interface: ProgramFactory
Creates a new .

Specified by:
createEnhancedFor in interface ProgramFactory
Returns:
a new instance of EnhancedFor.

createAssert

public Assert createAssert()
Creates a new Assert.

Specified by:
createAssert in interface ProgramFactory
Returns:
a new instance of Assert.

createAssert

public Assert createAssert(Expression cond)
Creates a new Assert.

Specified by:
createAssert in interface ProgramFactory
Returns:
a new instance of Assert.

createAssert

public Assert createAssert(Expression cond,
                           Expression msg)
Creates a new Assert.

Specified by:
createAssert in interface ProgramFactory
Returns:
a new instance of Assert.

createIf

public If createIf()
Creates a new If.

Specified by:
createIf in interface ProgramFactory
Returns:
a new instance of If.

createIf

public If createIf(Expression e,
                   Statement thenStatement)
Creates a new If.

Specified by:
createIf in interface ProgramFactory
Returns:
a new instance of If.

createIf

public If createIf(Expression e,
                   Then thenBranch)
Creates a new If.

Specified by:
createIf in interface ProgramFactory
Returns:
a new instance of If.

createIf

public If createIf(Expression e,
                   Then thenBranch,
                   Else elseBranch)
Creates a new If.

Specified by:
createIf in interface ProgramFactory
Returns:
a new instance of If.

createIf

public If createIf(Expression e,
                   Statement thenStatement,
                   Statement elseStatement)
Creates a new If.

Specified by:
createIf in interface ProgramFactory
Returns:
a new instance of If.

createLabeledStatement

public LabeledStatement createLabeledStatement()
Creates a new LabeledStatement.

Specified by:
createLabeledStatement in interface ProgramFactory
Returns:
a new instance of LabeledStatement.

createLabeledStatement

public LabeledStatement createLabeledStatement(Identifier id)
Creates a new LabeledStatement.

Specified by:
createLabeledStatement in interface ProgramFactory
Returns:
a new instance of LabeledStatement.

createLabeledStatement

public LabeledStatement createLabeledStatement(Identifier id,
                                               Statement statement)
Creates a new LabeledStatement.

Specified by:
createLabeledStatement in interface ProgramFactory
Returns:
a new instance of LabeledStatement.

createReturn

public Return createReturn()
Creates a new Return.

Specified by:
createReturn in interface ProgramFactory
Returns:
a new instance of Return.

createReturn

public Return createReturn(Expression expr)
Creates a new Return.

Specified by:
createReturn in interface ProgramFactory
Returns:
a new instance of Return.

createStatementBlock

public StatementBlock createStatementBlock()
Creates a new StatementBlock.

Specified by:
createStatementBlock in interface ProgramFactory
Returns:
a new instance of StatementBlock.

createStatementBlock

public StatementBlock createStatementBlock(ASTList<Statement> block)
Creates a new StatementBlock.

Specified by:
createStatementBlock in interface ProgramFactory
Returns:
a new instance of StatementBlock.

createSwitch

public Switch createSwitch()
Creates a new Switch.

Specified by:
createSwitch in interface ProgramFactory
Returns:
a new instance of Switch.

createSwitch

public Switch createSwitch(Expression e)
Creates a new Switch.

Specified by:
createSwitch in interface ProgramFactory
Returns:
a new instance of Switch.

createSwitch

public Switch createSwitch(Expression e,
                           ASTList<Branch> branches)
Creates a new Switch.

Specified by:
createSwitch in interface ProgramFactory
Returns:
a new instance of Switch.

createSynchronizedBlock

public SynchronizedBlock createSynchronizedBlock()
Creates a new SynchronizedBlock.

Specified by:
createSynchronizedBlock in interface ProgramFactory
Returns:
a new instance of SynchronizedBlock.

createSynchronizedBlock

public SynchronizedBlock createSynchronizedBlock(StatementBlock body)
Creates a new SynchronizedBlock.

Specified by:
createSynchronizedBlock in interface ProgramFactory
Returns:
a new instance of SynchronizedBlock.

createSynchronizedBlock

public SynchronizedBlock createSynchronizedBlock(Expression e,
                                                 StatementBlock body)
Creates a new SynchronizedBlock.

Specified by:
createSynchronizedBlock in interface ProgramFactory
Returns:
a new instance of SynchronizedBlock.

createThen

public Then createThen()
Creates a new Then.

Specified by:
createThen in interface ProgramFactory
Returns:
a new instance of Then.

createThen

public Then createThen(Statement body)
Creates a new Then.

Specified by:
createThen in interface ProgramFactory
Returns:
a new instance of Then.

createThrow

public Throw createThrow()
Creates a new Throw.

Specified by:
createThrow in interface ProgramFactory
Returns:
a new instance of Throw.

createThrow

public Throw createThrow(Expression expr)
Creates a new Throw.

Specified by:
createThrow in interface ProgramFactory
Returns:
a new instance of Throw.

createTry

public Try createTry()
Creates a new Try.

Specified by:
createTry in interface ProgramFactory
Returns:
a new instance of Try.

createTry

public Try createTry(StatementBlock body)
Creates a new Try.

Specified by:
createTry in interface ProgramFactory
Returns:
a new instance of Try.

createTry

public Try createTry(StatementBlock body,
                     ASTList<Branch> branches)
Creates a new Try.

Specified by:
createTry in interface ProgramFactory
Returns:
a new instance of Try.

createWhile

public While createWhile()
Creates a new While.

Specified by:
createWhile in interface ProgramFactory
Returns:
a new instance of While.

createWhile

public While createWhile(Expression guard)
Creates a new While.

Specified by:
createWhile in interface ProgramFactory
Returns:
a new instance of While.

createWhile

public While createWhile(Expression guard,
                         Statement body)
Creates a new While.

Specified by:
createWhile in interface ProgramFactory
Returns:
a new instance of While.

RECODER 0.92