|
From: <ls...@us...> - 2007-06-10 12:27:18
|
Revision: 3240
http://jnode.svn.sourceforge.net/jnode/?rev=3240&view=rev
Author: lsantha
Date: 2007-06-10 05:27:16 -0700 (Sun, 10 Jun 2007)
Log Message:
-----------
javac integration from openjdk in progress.
Added Paths:
-----------
trunk/core/src/openjdk/com/
trunk/core/src/openjdk/com/com/
trunk/core/src/openjdk/com/com/sun/
trunk/core/src/openjdk/com/com/sun/mirror/
trunk/core/src/openjdk/com/com/sun/mirror/apt/
trunk/core/src/openjdk/com/com/sun/mirror/apt/AnnotationProcessor.java
trunk/core/src/openjdk/com/com/sun/mirror/apt/AnnotationProcessorEnvironment.java
trunk/core/src/openjdk/com/com/sun/mirror/apt/AnnotationProcessorFactory.java
trunk/core/src/openjdk/com/com/sun/mirror/apt/AnnotationProcessorListener.java
trunk/core/src/openjdk/com/com/sun/mirror/apt/AnnotationProcessors.java
trunk/core/src/openjdk/com/com/sun/mirror/apt/Filer.java
trunk/core/src/openjdk/com/com/sun/mirror/apt/Messager.java
trunk/core/src/openjdk/com/com/sun/mirror/apt/RoundCompleteEvent.java
trunk/core/src/openjdk/com/com/sun/mirror/apt/RoundCompleteListener.java
trunk/core/src/openjdk/com/com/sun/mirror/apt/RoundState.java
trunk/core/src/openjdk/com/com/sun/mirror/apt/package.html
trunk/core/src/openjdk/com/com/sun/mirror/declaration/
trunk/core/src/openjdk/com/com/sun/mirror/declaration/AnnotationMirror.java
trunk/core/src/openjdk/com/com/sun/mirror/declaration/AnnotationTypeDeclaration.java
trunk/core/src/openjdk/com/com/sun/mirror/declaration/AnnotationTypeElementDeclaration.java
trunk/core/src/openjdk/com/com/sun/mirror/declaration/AnnotationValue.java
trunk/core/src/openjdk/com/com/sun/mirror/declaration/ClassDeclaration.java
trunk/core/src/openjdk/com/com/sun/mirror/declaration/ConstructorDeclaration.java
trunk/core/src/openjdk/com/com/sun/mirror/declaration/Declaration.java
trunk/core/src/openjdk/com/com/sun/mirror/declaration/EnumConstantDeclaration.java
trunk/core/src/openjdk/com/com/sun/mirror/declaration/EnumDeclaration.java
trunk/core/src/openjdk/com/com/sun/mirror/declaration/ExecutableDeclaration.java
trunk/core/src/openjdk/com/com/sun/mirror/declaration/FieldDeclaration.java
trunk/core/src/openjdk/com/com/sun/mirror/declaration/InterfaceDeclaration.java
trunk/core/src/openjdk/com/com/sun/mirror/declaration/MemberDeclaration.java
trunk/core/src/openjdk/com/com/sun/mirror/declaration/MethodDeclaration.java
trunk/core/src/openjdk/com/com/sun/mirror/declaration/Modifier.java
trunk/core/src/openjdk/com/com/sun/mirror/declaration/PackageDeclaration.java
trunk/core/src/openjdk/com/com/sun/mirror/declaration/ParameterDeclaration.java
trunk/core/src/openjdk/com/com/sun/mirror/declaration/TypeDeclaration.java
trunk/core/src/openjdk/com/com/sun/mirror/declaration/TypeParameterDeclaration.java
trunk/core/src/openjdk/com/com/sun/mirror/declaration/package.html
trunk/core/src/openjdk/com/com/sun/mirror/overview.html
trunk/core/src/openjdk/com/com/sun/mirror/type/
trunk/core/src/openjdk/com/com/sun/mirror/type/AnnotationType.java
trunk/core/src/openjdk/com/com/sun/mirror/type/ArrayType.java
trunk/core/src/openjdk/com/com/sun/mirror/type/ClassType.java
trunk/core/src/openjdk/com/com/sun/mirror/type/DeclaredType.java
trunk/core/src/openjdk/com/com/sun/mirror/type/EnumType.java
trunk/core/src/openjdk/com/com/sun/mirror/type/InterfaceType.java
trunk/core/src/openjdk/com/com/sun/mirror/type/MirroredTypeException.java
trunk/core/src/openjdk/com/com/sun/mirror/type/MirroredTypesException.java
trunk/core/src/openjdk/com/com/sun/mirror/type/PrimitiveType.java
trunk/core/src/openjdk/com/com/sun/mirror/type/ReferenceType.java
trunk/core/src/openjdk/com/com/sun/mirror/type/TypeMirror.java
trunk/core/src/openjdk/com/com/sun/mirror/type/TypeVariable.java
trunk/core/src/openjdk/com/com/sun/mirror/type/VoidType.java
trunk/core/src/openjdk/com/com/sun/mirror/type/WildcardType.java
trunk/core/src/openjdk/com/com/sun/mirror/type/package.html
trunk/core/src/openjdk/com/com/sun/mirror/util/
trunk/core/src/openjdk/com/com/sun/mirror/util/DeclarationFilter.java
trunk/core/src/openjdk/com/com/sun/mirror/util/DeclarationScanner.java
trunk/core/src/openjdk/com/com/sun/mirror/util/DeclarationVisitor.java
trunk/core/src/openjdk/com/com/sun/mirror/util/DeclarationVisitors.java
trunk/core/src/openjdk/com/com/sun/mirror/util/Declarations.java
trunk/core/src/openjdk/com/com/sun/mirror/util/SimpleDeclarationVisitor.java
trunk/core/src/openjdk/com/com/sun/mirror/util/SimpleTypeVisitor.java
trunk/core/src/openjdk/com/com/sun/mirror/util/SourceOrderDeclScanner.java
trunk/core/src/openjdk/com/com/sun/mirror/util/SourcePosition.java
trunk/core/src/openjdk/com/com/sun/mirror/util/TypeVisitor.java
trunk/core/src/openjdk/com/com/sun/mirror/util/Types.java
trunk/core/src/openjdk/com/com/sun/mirror/util/package.html
trunk/core/src/openjdk/com/com/sun/source/
trunk/core/src/openjdk/com/com/sun/source/tree/
trunk/core/src/openjdk/com/com/sun/source/tree/AnnotationTree.java
trunk/core/src/openjdk/com/com/sun/source/tree/ArrayAccessTree.java
trunk/core/src/openjdk/com/com/sun/source/tree/ArrayTypeTree.java
trunk/core/src/openjdk/com/com/sun/source/tree/AssertTree.java
trunk/core/src/openjdk/com/com/sun/source/tree/AssignmentTree.java
trunk/core/src/openjdk/com/com/sun/source/tree/BinaryTree.java
trunk/core/src/openjdk/com/com/sun/source/tree/BlockTree.java
trunk/core/src/openjdk/com/com/sun/source/tree/BreakTree.java
trunk/core/src/openjdk/com/com/sun/source/tree/CaseTree.java
trunk/core/src/openjdk/com/com/sun/source/tree/CatchTree.java
trunk/core/src/openjdk/com/com/sun/source/tree/ClassTree.java
trunk/core/src/openjdk/com/com/sun/source/tree/CompilationUnitTree.java
trunk/core/src/openjdk/com/com/sun/source/tree/CompoundAssignmentTree.java
trunk/core/src/openjdk/com/com/sun/source/tree/ConditionalExpressionTree.java
trunk/core/src/openjdk/com/com/sun/source/tree/ContinueTree.java
trunk/core/src/openjdk/com/com/sun/source/tree/DoWhileLoopTree.java
trunk/core/src/openjdk/com/com/sun/source/tree/EmptyStatementTree.java
trunk/core/src/openjdk/com/com/sun/source/tree/EnhancedForLoopTree.java
trunk/core/src/openjdk/com/com/sun/source/tree/ErroneousTree.java
trunk/core/src/openjdk/com/com/sun/source/tree/ExpressionStatementTree.java
trunk/core/src/openjdk/com/com/sun/source/tree/ExpressionTree.java
trunk/core/src/openjdk/com/com/sun/source/tree/ForLoopTree.java
trunk/core/src/openjdk/com/com/sun/source/tree/IdentifierTree.java
trunk/core/src/openjdk/com/com/sun/source/tree/IfTree.java
trunk/core/src/openjdk/com/com/sun/source/tree/ImportTree.java
trunk/core/src/openjdk/com/com/sun/source/tree/InstanceOfTree.java
trunk/core/src/openjdk/com/com/sun/source/tree/LabeledStatementTree.java
trunk/core/src/openjdk/com/com/sun/source/tree/LineMap.java
trunk/core/src/openjdk/com/com/sun/source/tree/LiteralTree.java
trunk/core/src/openjdk/com/com/sun/source/tree/MemberSelectTree.java
trunk/core/src/openjdk/com/com/sun/source/tree/MethodInvocationTree.java
trunk/core/src/openjdk/com/com/sun/source/tree/MethodTree.java
trunk/core/src/openjdk/com/com/sun/source/tree/ModifiersTree.java
trunk/core/src/openjdk/com/com/sun/source/tree/NewArrayTree.java
trunk/core/src/openjdk/com/com/sun/source/tree/NewClassTree.java
trunk/core/src/openjdk/com/com/sun/source/tree/ParameterizedTypeTree.java
trunk/core/src/openjdk/com/com/sun/source/tree/ParenthesizedTree.java
trunk/core/src/openjdk/com/com/sun/source/tree/PrimitiveTypeTree.java
trunk/core/src/openjdk/com/com/sun/source/tree/ReturnTree.java
trunk/core/src/openjdk/com/com/sun/source/tree/Scope.java
trunk/core/src/openjdk/com/com/sun/source/tree/StatementTree.java
trunk/core/src/openjdk/com/com/sun/source/tree/SwitchTree.java
trunk/core/src/openjdk/com/com/sun/source/tree/SynchronizedTree.java
trunk/core/src/openjdk/com/com/sun/source/tree/ThrowTree.java
trunk/core/src/openjdk/com/com/sun/source/tree/Tree.java
trunk/core/src/openjdk/com/com/sun/source/tree/TreeVisitor.java
trunk/core/src/openjdk/com/com/sun/source/tree/TryTree.java
trunk/core/src/openjdk/com/com/sun/source/tree/TypeCastTree.java
trunk/core/src/openjdk/com/com/sun/source/tree/TypeParameterTree.java
trunk/core/src/openjdk/com/com/sun/source/tree/UnaryTree.java
trunk/core/src/openjdk/com/com/sun/source/tree/VariableTree.java
trunk/core/src/openjdk/com/com/sun/source/tree/WhileLoopTree.java
trunk/core/src/openjdk/com/com/sun/source/tree/WildcardTree.java
trunk/core/src/openjdk/com/com/sun/source/tree/package-info.java
trunk/core/src/openjdk/com/com/sun/source/util/
trunk/core/src/openjdk/com/com/sun/source/util/JavacTask.java
trunk/core/src/openjdk/com/com/sun/source/util/SimpleTreeVisitor.java
trunk/core/src/openjdk/com/com/sun/source/util/SourcePositions.java
trunk/core/src/openjdk/com/com/sun/source/util/TaskEvent.java
trunk/core/src/openjdk/com/com/sun/source/util/TaskListener.java
trunk/core/src/openjdk/com/com/sun/source/util/TreePath.java
trunk/core/src/openjdk/com/com/sun/source/util/TreePathScanner.java
trunk/core/src/openjdk/com/com/sun/source/util/TreeScanner.java
trunk/core/src/openjdk/com/com/sun/source/util/Trees.java
trunk/core/src/openjdk/com/com/sun/source/util/package-info.java
trunk/core/src/openjdk/com/com/sun/tools/
trunk/core/src/openjdk/com/com/sun/tools/apt/
trunk/core/src/openjdk/com/com/sun/tools/apt/Main.java
trunk/core/src/openjdk/com/com/sun/tools/apt/comp/
trunk/core/src/openjdk/com/com/sun/tools/apt/comp/AnnotationProcessingError.java
trunk/core/src/openjdk/com/com/sun/tools/apt/comp/Apt.java
trunk/core/src/openjdk/com/com/sun/tools/apt/comp/BootstrapAPF.java
trunk/core/src/openjdk/com/com/sun/tools/apt/comp/PrintAP.java
trunk/core/src/openjdk/com/com/sun/tools/apt/comp/UsageMessageNeededException.java
trunk/core/src/openjdk/com/com/sun/tools/apt/main/
trunk/core/src/openjdk/com/com/sun/tools/apt/main/CommandLine.java
trunk/core/src/openjdk/com/com/sun/tools/apt/main/JavaCompiler.java
trunk/core/src/openjdk/com/com/sun/tools/apt/main/Main.java
trunk/core/src/openjdk/com/com/sun/tools/apt/mirror/
trunk/core/src/openjdk/com/com/sun/tools/apt/mirror/AptEnv.java
trunk/core/src/openjdk/com/com/sun/tools/apt/mirror/apt/
trunk/core/src/openjdk/com/com/sun/tools/apt/mirror/apt/AnnotationProcessorEnvironmentImpl.java
trunk/core/src/openjdk/com/com/sun/tools/apt/mirror/apt/FilerImpl.java
trunk/core/src/openjdk/com/com/sun/tools/apt/mirror/apt/MessagerImpl.java
trunk/core/src/openjdk/com/com/sun/tools/apt/mirror/apt/RoundCompleteEventImpl.java
trunk/core/src/openjdk/com/com/sun/tools/apt/mirror/apt/RoundStateImpl.java
trunk/core/src/openjdk/com/com/sun/tools/apt/mirror/declaration/
trunk/core/src/openjdk/com/com/sun/tools/apt/mirror/declaration/AnnotationMirrorImpl.java
trunk/core/src/openjdk/com/com/sun/tools/apt/mirror/declaration/AnnotationProxyMaker.java
trunk/core/src/openjdk/com/com/sun/tools/apt/mirror/declaration/AnnotationTypeDeclarationImpl.java
trunk/core/src/openjdk/com/com/sun/tools/apt/mirror/declaration/AnnotationTypeElementDeclarationImpl.java
trunk/core/src/openjdk/com/com/sun/tools/apt/mirror/declaration/AnnotationValueImpl.java
trunk/core/src/openjdk/com/com/sun/tools/apt/mirror/declaration/ClassDeclarationImpl.java
trunk/core/src/openjdk/com/com/sun/tools/apt/mirror/declaration/Constants.java
trunk/core/src/openjdk/com/com/sun/tools/apt/mirror/declaration/ConstructorDeclarationImpl.java
trunk/core/src/openjdk/com/com/sun/tools/apt/mirror/declaration/DeclarationImpl.java
trunk/core/src/openjdk/com/com/sun/tools/apt/mirror/declaration/DeclarationMaker.java
trunk/core/src/openjdk/com/com/sun/tools/apt/mirror/declaration/EnumConstantDeclarationImpl.java
trunk/core/src/openjdk/com/com/sun/tools/apt/mirror/declaration/EnumDeclarationImpl.java
trunk/core/src/openjdk/com/com/sun/tools/apt/mirror/declaration/ExecutableDeclarationImpl.java
trunk/core/src/openjdk/com/com/sun/tools/apt/mirror/declaration/FieldDeclarationImpl.java
trunk/core/src/openjdk/com/com/sun/tools/apt/mirror/declaration/InterfaceDeclarationImpl.java
trunk/core/src/openjdk/com/com/sun/tools/apt/mirror/declaration/MemberDeclarationImpl.java
trunk/core/src/openjdk/com/com/sun/tools/apt/mirror/declaration/MethodDeclarationImpl.java
trunk/core/src/openjdk/com/com/sun/tools/apt/mirror/declaration/PackageDeclarationImpl.java
trunk/core/src/openjdk/com/com/sun/tools/apt/mirror/declaration/ParameterDeclarationImpl.java
trunk/core/src/openjdk/com/com/sun/tools/apt/mirror/declaration/TypeDeclarationImpl.java
trunk/core/src/openjdk/com/com/sun/tools/apt/mirror/declaration/TypeParameterDeclarationImpl.java
trunk/core/src/openjdk/com/com/sun/tools/apt/mirror/type/
trunk/core/src/openjdk/com/com/sun/tools/apt/mirror/type/AnnotationTypeImpl.java
trunk/core/src/openjdk/com/com/sun/tools/apt/mirror/type/ArrayTypeImpl.java
trunk/core/src/openjdk/com/com/sun/tools/apt/mirror/type/ClassTypeImpl.java
trunk/core/src/openjdk/com/com/sun/tools/apt/mirror/type/DeclaredTypeImpl.java
trunk/core/src/openjdk/com/com/sun/tools/apt/mirror/type/EnumTypeImpl.java
trunk/core/src/openjdk/com/com/sun/tools/apt/mirror/type/InterfaceTypeImpl.java
trunk/core/src/openjdk/com/com/sun/tools/apt/mirror/type/PrimitiveTypeImpl.java
trunk/core/src/openjdk/com/com/sun/tools/apt/mirror/type/TypeMaker.java
trunk/core/src/openjdk/com/com/sun/tools/apt/mirror/type/TypeMirrorImpl.java
trunk/core/src/openjdk/com/com/sun/tools/apt/mirror/type/TypeVariableImpl.java
trunk/core/src/openjdk/com/com/sun/tools/apt/mirror/type/VoidTypeImpl.java
trunk/core/src/openjdk/com/com/sun/tools/apt/mirror/type/WildcardTypeImpl.java
trunk/core/src/openjdk/com/com/sun/tools/apt/mirror/util/
trunk/core/src/openjdk/com/com/sun/tools/apt/mirror/util/DeclarationsImpl.java
trunk/core/src/openjdk/com/com/sun/tools/apt/mirror/util/SourcePositionImpl.java
trunk/core/src/openjdk/com/com/sun/tools/apt/mirror/util/TypesImpl.java
trunk/core/src/openjdk/com/com/sun/tools/apt/resources/
trunk/core/src/openjdk/com/com/sun/tools/apt/resources/apt.properties
trunk/core/src/openjdk/com/com/sun/tools/apt/resources/apt_ja.properties
trunk/core/src/openjdk/com/com/sun/tools/apt/resources/apt_zh_CN.properties
trunk/core/src/openjdk/com/com/sun/tools/apt/util/
trunk/core/src/openjdk/com/com/sun/tools/apt/util/Bark.java
trunk/core/src/openjdk/com/com/sun/tools/javac/
trunk/core/src/openjdk/com/com/sun/tools/javac/Launcher.java
trunk/core/src/openjdk/com/com/sun/tools/javac/Main.java
trunk/core/src/openjdk/com/com/sun/tools/javac/Server.java
trunk/core/src/openjdk/com/com/sun/tools/javac/api/
trunk/core/src/openjdk/com/com/sun/tools/javac/api/JavacScope.java
trunk/core/src/openjdk/com/com/sun/tools/javac/api/JavacTaskImpl.java
trunk/core/src/openjdk/com/com/sun/tools/javac/api/JavacTool.java
trunk/core/src/openjdk/com/com/sun/tools/javac/api/JavacTrees.java
trunk/core/src/openjdk/com/com/sun/tools/javac/api/WrappingJavaFileManager.java
trunk/core/src/openjdk/com/com/sun/tools/javac/code/
trunk/core/src/openjdk/com/com/sun/tools/javac/code/Attribute.java
trunk/core/src/openjdk/com/com/sun/tools/javac/code/BoundKind.java
trunk/core/src/openjdk/com/com/sun/tools/javac/code/Flags.java
trunk/core/src/openjdk/com/com/sun/tools/javac/code/Kinds.java
trunk/core/src/openjdk/com/com/sun/tools/javac/code/Lint.java
trunk/core/src/openjdk/com/com/sun/tools/javac/code/Scope.java
trunk/core/src/openjdk/com/com/sun/tools/javac/code/Source.java
trunk/core/src/openjdk/com/com/sun/tools/javac/code/Symbol.java
trunk/core/src/openjdk/com/com/sun/tools/javac/code/Symtab.java
trunk/core/src/openjdk/com/com/sun/tools/javac/code/Type.java
trunk/core/src/openjdk/com/com/sun/tools/javac/code/TypeTags.java
trunk/core/src/openjdk/com/com/sun/tools/javac/code/Types.java
trunk/core/src/openjdk/com/com/sun/tools/javac/comp/
trunk/core/src/openjdk/com/com/sun/tools/javac/comp/Annotate.java
trunk/core/src/openjdk/com/com/sun/tools/javac/comp/Attr.java
trunk/core/src/openjdk/com/com/sun/tools/javac/comp/AttrContext.java
trunk/core/src/openjdk/com/com/sun/tools/javac/comp/AttrContextEnv.java
trunk/core/src/openjdk/com/com/sun/tools/javac/comp/Check.java
trunk/core/src/openjdk/com/com/sun/tools/javac/comp/ConstFold.java
trunk/core/src/openjdk/com/com/sun/tools/javac/comp/Enter.java
trunk/core/src/openjdk/com/com/sun/tools/javac/comp/Env.java
trunk/core/src/openjdk/com/com/sun/tools/javac/comp/Flow.java
trunk/core/src/openjdk/com/com/sun/tools/javac/comp/Infer.java
trunk/core/src/openjdk/com/com/sun/tools/javac/comp/Lower.java
trunk/core/src/openjdk/com/com/sun/tools/javac/comp/MemberEnter.java
trunk/core/src/openjdk/com/com/sun/tools/javac/comp/Resolve.java
trunk/core/src/openjdk/com/com/sun/tools/javac/comp/Todo.java
trunk/core/src/openjdk/com/com/sun/tools/javac/comp/TransTypes.java
trunk/core/src/openjdk/com/com/sun/tools/javac/jvm/
trunk/core/src/openjdk/com/com/sun/tools/javac/jvm/ByteCodes.java
trunk/core/src/openjdk/com/com/sun/tools/javac/jvm/CRTFlags.java
trunk/core/src/openjdk/com/com/sun/tools/javac/jvm/CRTable.java
trunk/core/src/openjdk/com/com/sun/tools/javac/jvm/ClassFile.java
trunk/core/src/openjdk/com/com/sun/tools/javac/jvm/ClassReader.java
trunk/core/src/openjdk/com/com/sun/tools/javac/jvm/ClassWriter.java
trunk/core/src/openjdk/com/com/sun/tools/javac/jvm/Code.java
trunk/core/src/openjdk/com/com/sun/tools/javac/jvm/Gen.java
trunk/core/src/openjdk/com/com/sun/tools/javac/jvm/Items.java
trunk/core/src/openjdk/com/com/sun/tools/javac/jvm/Pool.java
trunk/core/src/openjdk/com/com/sun/tools/javac/jvm/Target.java
trunk/core/src/openjdk/com/com/sun/tools/javac/jvm/UninitializedType.java
trunk/core/src/openjdk/com/com/sun/tools/javac/main/
trunk/core/src/openjdk/com/com/sun/tools/javac/main/CommandLine.java
trunk/core/src/openjdk/com/com/sun/tools/javac/main/JavaCompiler.java
trunk/core/src/openjdk/com/com/sun/tools/javac/main/JavacOption.java
trunk/core/src/openjdk/com/com/sun/tools/javac/main/Main.java
trunk/core/src/openjdk/com/com/sun/tools/javac/main/OptionName.java
trunk/core/src/openjdk/com/com/sun/tools/javac/main/RecognizedOptions.java
trunk/core/src/openjdk/com/com/sun/tools/javac/model/
trunk/core/src/openjdk/com/com/sun/tools/javac/model/AnnotationProxyMaker.java
trunk/core/src/openjdk/com/com/sun/tools/javac/model/FilteredMemberList.java
trunk/core/src/openjdk/com/com/sun/tools/javac/model/JavacElements.java
trunk/core/src/openjdk/com/com/sun/tools/javac/model/JavacSourcePosition.java
trunk/core/src/openjdk/com/com/sun/tools/javac/model/JavacTypes.java
trunk/core/src/openjdk/com/com/sun/tools/javac/parser/
trunk/core/src/openjdk/com/com/sun/tools/javac/parser/DocCommentScanner.java
trunk/core/src/openjdk/com/com/sun/tools/javac/parser/EndPosParser.java
trunk/core/src/openjdk/com/com/sun/tools/javac/parser/Keywords.java
trunk/core/src/openjdk/com/com/sun/tools/javac/parser/Lexer.java
trunk/core/src/openjdk/com/com/sun/tools/javac/parser/Parser.java
trunk/core/src/openjdk/com/com/sun/tools/javac/parser/Scanner.java
trunk/core/src/openjdk/com/com/sun/tools/javac/parser/Token.java
trunk/core/src/openjdk/com/com/sun/tools/javac/processing/
trunk/core/src/openjdk/com/com/sun/tools/javac/processing/AnnotationProcessingError.java
trunk/core/src/openjdk/com/com/sun/tools/javac/processing/JavacFiler.java
trunk/core/src/openjdk/com/com/sun/tools/javac/processing/JavacMessager.java
trunk/core/src/openjdk/com/com/sun/tools/javac/processing/JavacProcessingEnvironment.java
trunk/core/src/openjdk/com/com/sun/tools/javac/processing/JavacRoundEnvironment.java
trunk/core/src/openjdk/com/com/sun/tools/javac/processing/PrintingProcessor.java
trunk/core/src/openjdk/com/com/sun/tools/javac/processing/ServiceProxy.java
trunk/core/src/openjdk/com/com/sun/tools/javac/resources/
trunk/core/src/openjdk/com/com/sun/tools/javac/resources/compiler.properties
trunk/core/src/openjdk/com/com/sun/tools/javac/resources/compiler_ja.properties
trunk/core/src/openjdk/com/com/sun/tools/javac/resources/compiler_zh_CN.properties
trunk/core/src/openjdk/com/com/sun/tools/javac/resources/javac.properties
trunk/core/src/openjdk/com/com/sun/tools/javac/resources/javac_ja.properties
trunk/core/src/openjdk/com/com/sun/tools/javac/resources/javac_zh_CN.properties
trunk/core/src/openjdk/com/com/sun/tools/javac/resources/legacy.properties
trunk/core/src/openjdk/com/com/sun/tools/javac/resources/version-template.java
trunk/core/src/openjdk/com/com/sun/tools/javac/services/
trunk/core/src/openjdk/com/com/sun/tools/javac/services/javax.tools.JavaCompilerTool
trunk/core/src/openjdk/com/com/sun/tools/javac/sym/
trunk/core/src/openjdk/com/com/sun/tools/javac/sym/CreateSymbols.java
trunk/core/src/openjdk/com/com/sun/tools/javac/tree/
trunk/core/src/openjdk/com/com/sun/tools/javac/tree/JCTree.java
trunk/core/src/openjdk/com/com/sun/tools/javac/tree/Pretty.java
trunk/core/src/openjdk/com/com/sun/tools/javac/tree/TreeCopier.java
trunk/core/src/openjdk/com/com/sun/tools/javac/tree/TreeInfo.java
trunk/core/src/openjdk/com/com/sun/tools/javac/tree/TreeMaker.java
trunk/core/src/openjdk/com/com/sun/tools/javac/tree/TreeScanner.java
trunk/core/src/openjdk/com/com/sun/tools/javac/tree/TreeTranslator.java
trunk/core/src/openjdk/com/com/sun/tools/javac/util/
trunk/core/src/openjdk/com/com/sun/tools/javac/util/Abort.java
trunk/core/src/openjdk/com/com/sun/tools/javac/util/BaseFileObject.java
trunk/core/src/openjdk/com/com/sun/tools/javac/util/Bits.java
trunk/core/src/openjdk/com/com/sun/tools/javac/util/ByteBuffer.java
trunk/core/src/openjdk/com/com/sun/tools/javac/util/ClientCodeException.java
trunk/core/src/openjdk/com/com/sun/tools/javac/util/Constants.java
trunk/core/src/openjdk/com/com/sun/tools/javac/util/Context.java
trunk/core/src/openjdk/com/com/sun/tools/javac/util/Convert.java
trunk/core/src/openjdk/com/com/sun/tools/javac/util/DiagnosticFormatter.java
trunk/core/src/openjdk/com/com/sun/tools/javac/util/FatalError.java
trunk/core/src/openjdk/com/com/sun/tools/javac/util/JCDiagnostic.java
trunk/core/src/openjdk/com/com/sun/tools/javac/util/JavacFileManager.java
trunk/core/src/openjdk/com/com/sun/tools/javac/util/LayoutCharacters.java
trunk/core/src/openjdk/com/com/sun/tools/javac/util/List.java
trunk/core/src/openjdk/com/com/sun/tools/javac/util/ListBuffer.java
trunk/core/src/openjdk/com/com/sun/tools/javac/util/Log.java
trunk/core/src/openjdk/com/com/sun/tools/javac/util/MandatoryWarningHandler.java
trunk/core/src/openjdk/com/com/sun/tools/javac/util/Messages.java
trunk/core/src/openjdk/com/com/sun/tools/javac/util/Name.java
trunk/core/src/openjdk/com/com/sun/tools/javac/util/Old199.java
trunk/core/src/openjdk/com/com/sun/tools/javac/util/Options.java
trunk/core/src/openjdk/com/com/sun/tools/javac/util/Pair.java
trunk/core/src/openjdk/com/com/sun/tools/javac/util/Paths.java
trunk/core/src/openjdk/com/com/sun/tools/javac/util/Position.java
trunk/core/src/openjdk/com/com/sun/tools/javac/util/PropagatedException.java
trunk/core/src/openjdk/com/com/sun/tools/javac/util/Version.java
trunk/core/src/openjdk/com/com/sun/tools/javac/util/Warner.java
Added: trunk/core/src/openjdk/com/com/sun/mirror/apt/AnnotationProcessor.java
===================================================================
--- trunk/core/src/openjdk/com/com/sun/mirror/apt/AnnotationProcessor.java (rev 0)
+++ trunk/core/src/openjdk/com/com/sun/mirror/apt/AnnotationProcessor.java 2007-06-10 12:27:16 UTC (rev 3240)
@@ -0,0 +1,65 @@
+/*
+ * Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation. Sun designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Sun in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
+ * CA 95054 USA or visit www.sun.com if you need additional information or
+ * have any questions.
+ */
+
+package com.sun.mirror.apt;
+
+
+import java.io.IOException;
+import java.util.Collection;
+
+
+/**
+ * An annotation processor, used to examine and process the
+ * annotations of program elements. An annotation processor may,
+ * for example, create new source files and XML documents to be used
+ * in conjunction with the original code.
+ *
+ * <p> An annotation processor is constructed by a
+ * {@linkplain AnnotationProcessorFactory factory}, which provides it with an
+ * {@linkplain AnnotationProcessorEnvironment environment} that
+ * encapsulates the state it needs.
+ * Messages regarding warnings and errors encountered during processing
+ * should be directed to the environment's {@link Messager},
+ * and new files may be created using the environment's {@link Filer}.
+ *
+ * <p> Each annotation processor is created to process annotations
+ * of a particular annotation type or set of annotation types.
+ * It may use its environment to find the program elements with
+ * annotations of those types. It may freely examine any other program
+ * elements in the course of its processing.
+ *
+ * @author Joseph D. Darcy
+ * @author Scott Seligman
+ * @version 1.9 07/05/05
+ * @since 1.5
+ */
+
+public interface AnnotationProcessor {
+
+ /**
+ * Process all program elements supported by this annotation processor.
+ */
+ void process();
+}
Added: trunk/core/src/openjdk/com/com/sun/mirror/apt/AnnotationProcessorEnvironment.java
===================================================================
--- trunk/core/src/openjdk/com/com/sun/mirror/apt/AnnotationProcessorEnvironment.java (rev 0)
+++ trunk/core/src/openjdk/com/com/sun/mirror/apt/AnnotationProcessorEnvironment.java 2007-06-10 12:27:16 UTC (rev 3240)
@@ -0,0 +1,178 @@
+/*
+ * Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation. Sun designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Sun in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
+ * CA 95054 USA or visit www.sun.com if you need additional information or
+ * have any questions.
+ */
+
+package com.sun.mirror.apt;
+
+
+import java.util.Collection;
+import java.util.Map;
+
+import com.sun.mirror.declaration.*;
+import com.sun.mirror.util.*;
+
+
+/**
+ * The environment encapsulating the state needed by an annotation processor.
+ * An annotation processing tool makes this environment available
+ * to all annotation processors.
+ *
+ * <p> When an annotation processing tool is invoked, it is given a
+ * set of type declarations on which to operate. These
+ * are refered to as the <i>specified</i> types.
+ * The type declarations said to be <i>included</i> in this invocation
+ * consist of the specified types and any types nested within them.
+ *
+ * <p> {@link DeclarationFilter}
+ * provides a simple way to select just the items of interest
+ * when a method returns a collection of declarations.
+ *
+ * @author Joseph D. Darcy
+ * @author Scott Seligman
+ * @version 1.14 07/05/05
+ * @since 1.5
+ */
+
+public interface AnnotationProcessorEnvironment {
+
+ /**
+ * Returns the options passed to the annotation processing tool.
+ * Options are returned in the form of a map from option name
+ * (such as <tt>"-encoding"</tt>) to option value.
+ * For an option with no value (such as <tt>"-help"</tt>), the
+ * corresponding value in the map is <tt>null</tt>.
+ *
+ * <p> Options beginning with <tt>"-A"</tt> are <i>processor-specific.</i>
+ * Such options are unrecognized by the tool, but intended to be used by
+ * some annotation processor.
+ *
+ * @return the options passed to the tool
+ */
+ Map<String,String> getOptions();
+
+ /**
+ * Returns the messager used to report errors, warnings, and other
+ * notices.
+ *
+ * @return the messager
+ */
+ Messager getMessager();
+
+ /**
+ * Returns the filer used to create new source, class, or auxiliary
+ * files.
+ *
+ * @return the filer
+ */
+ Filer getFiler();
+
+
+
+ /**
+ * Returns the declarations of the types specified when the
+ * annotation processing tool was invoked.
+ *
+ * @return the types specified when the tool was invoked, or an
+ * empty collection if there were none
+ */
+ Collection<TypeDeclaration> getSpecifiedTypeDeclarations();
+
+ /**
+ * Returns the declaration of a package given its fully qualified name.
+ *
+ * @param name fully qualified package name, or "" for the unnamed package
+ * @return the declaration of the named package, or null if it cannot
+ * be found
+ */
+ PackageDeclaration getPackage(String name);
+
+ /**
+ * Returns the declaration of a type given its fully qualified name.
+ *
+ * @param name fully qualified type name
+ * @return the declaration of the named type, or null if it cannot be
+ * found
+ */
+ TypeDeclaration getTypeDeclaration(String name);
+
+ /**
+ * A convenience method that returns the declarations of the types
+ * {@linkplain AnnotationProcessorEnvironment <i>included</i>}
+ * in this invocation of the annotation processing tool.
+ *
+ * @return the declarations of the types included in this invocation
+ * of the tool, or an empty collection if there are none
+ */
+ Collection<TypeDeclaration> getTypeDeclarations();
+
+ /**
+ * Returns the declarations annotated with the given annotation type.
+ * Only declarations of the types
+ * {@linkplain AnnotationProcessorEnvironment <i>included</i>}
+ * in this invocation of the annotation processing tool, or
+ * declarations of members, parameters, or type parameters
+ * declared within those, are returned.
+ *
+ * @param a annotation type being requested
+ * @return the declarations annotated with the given annotation type,
+ * or an empty collection if there are none
+ */
+ Collection<Declaration> getDeclarationsAnnotatedWith(
+ AnnotationTypeDeclaration a);
+
+ /**
+ * Returns an implementation of some utility methods for
+ * operating on declarations.
+ *
+ * @return declaration utilities
+ */
+ Declarations getDeclarationUtils();
+
+ /**
+ * Returns an implementation of some utility methods for
+ * operating on types.
+ *
+ * @return type utilities
+ */
+ Types getTypeUtils();
+
+ /**
+ * Add a listener. If the listener is currently registered to listen,
+ * adding it again will have no effect.
+ *
+ * @param listener The listener to add.
+ * @throws NullPointerException if the listener is null
+ */
+ void addListener(AnnotationProcessorListener listener);
+
+
+ /**
+ * Remove a listener. If the listener is not currently listening,
+ * the method call does nothing.
+ *
+ * @param listener The listener to remove.
+ * @throws NullPointerException if the listener is null
+ */
+ void removeListener(AnnotationProcessorListener listener);
+}
Added: trunk/core/src/openjdk/com/com/sun/mirror/apt/AnnotationProcessorFactory.java
===================================================================
--- trunk/core/src/openjdk/com/com/sun/mirror/apt/AnnotationProcessorFactory.java (rev 0)
+++ trunk/core/src/openjdk/com/com/sun/mirror/apt/AnnotationProcessorFactory.java 2007-06-10 12:27:16 UTC (rev 3240)
@@ -0,0 +1,104 @@
+/*
+ * Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation. Sun designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Sun in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
+ * CA 95054 USA or visit www.sun.com if you need additional information or
+ * have any questions.
+ */
+
+package com.sun.mirror.apt;
+
+
+import java.util.Collection;
+import java.util.Set;
+
+import com.sun.mirror.declaration.AnnotationTypeDeclaration;
+
+
+/**
+ * A factory for creating annotation processors.
+ * Each factory is responsible for creating processors for one or more
+ * annotation types.
+ * The factory is said to <i>support</i> these types.
+ *
+ * <p> Each implementation of an <tt>AnnotationProcessorFactory</tt>
+ * must provide a public no-argument constructor to be used by tools to
+ * instantiate the factory.
+ *
+ * @author Joseph D. Darcy
+ * @author Scott Seligman
+ * @version 1.16 07/05/05
+ * @since 1.5
+ */
+
+public interface AnnotationProcessorFactory {
+
+ /**
+ * Returns the options recognized by this factory or by any of the
+ * processors it may create.
+ * Only {@linkplain AnnotationProcessorEnvironment#getOptions()
+ * processor-specific} options are included, each of which begins
+ * with <tt>"-A"</tt>. For example, if this factory recognizes
+ * options such as <tt>-Adebug -Aloglevel=3</tt>, it will
+ * return the strings <tt>"-Adebug"</tt> and <tt>"-Aloglevel"</tt>.
+ *
+ * <p> A tool might use this information to determine if any
+ * options provided by a user are unrecognized by any processor,
+ * in which case it may wish to report an error.
+ *
+ * @return the options recognized by this factory or by any of the
+ * processors it may create, or an empty collection if none
+ */
+ Collection<String> supportedOptions();
+
+ /**
+ * Returns the names of the annotation types supported by this factory.
+ * An element of the result may be the canonical (fully qualified) name
+ * of a supported annotation type. Alternately it may be of the form
+ * <tt>"<i>name</i>.*"</tt>
+ * representing the set of all annotation types
+ * with canonical names beginning with <tt>"<i>name</i>."</tt>
+ * Finally, <tt>"*"</tt> by itself represents the set of all
+ * annotation types.
+ *
+ * @return the names of the annotation types supported by this factory
+ */
+ Collection<String> supportedAnnotationTypes();
+
+ /**
+ * Returns an annotation processor for a set of annotation
+ * types. The set will be empty if the factory supports
+ * "<tt>*</tt>" and the specified type declarations have
+ * no annotations. Note that the set of annotation types may be
+ * empty for other reasons, such as giving the factory an
+ * opportunity to register a listener. An
+ * <tt>AnnotationProcessorFactory</tt> must gracefully handle an
+ * empty set of annotations; an appropriate response to an empty
+ * set will often be returning {@link AnnotationProcessors#NO_OP}.
+ *
+ * @param atds type declarations of the annotation types to be processed
+ * @param env environment to use during processing
+ * @return an annotation processor for the given annotation types,
+ * or <tt>null</tt> if the types are not supported or the
+ * processor cannot be created
+ */
+ AnnotationProcessor getProcessorFor(Set<AnnotationTypeDeclaration> atds,
+ AnnotationProcessorEnvironment env);
+}
Added: trunk/core/src/openjdk/com/com/sun/mirror/apt/AnnotationProcessorListener.java
===================================================================
--- trunk/core/src/openjdk/com/com/sun/mirror/apt/AnnotationProcessorListener.java (rev 0)
+++ trunk/core/src/openjdk/com/com/sun/mirror/apt/AnnotationProcessorListener.java 2007-06-10 12:27:16 UTC (rev 3240)
@@ -0,0 +1,36 @@
+/*
+ * Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation. Sun designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Sun in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
+ * CA 95054 USA or visit www.sun.com if you need additional information or
+ * have any questions.
+ */
+
+package com.sun.mirror.apt;
+
+/**
+ * Superinterface for all annotation processor event listeners.
+ *
+ * @author Joseph D. Darcy
+ * @author Scott Seligman
+ * @version 1.8 07/05/05
+ * @since 1.5
+ */
+public interface AnnotationProcessorListener extends java.util.EventListener {}
Added: trunk/core/src/openjdk/com/com/sun/mirror/apt/AnnotationProcessors.java
===================================================================
--- trunk/core/src/openjdk/com/com/sun/mirror/apt/AnnotationProcessors.java (rev 0)
+++ trunk/core/src/openjdk/com/com/sun/mirror/apt/AnnotationProcessors.java 2007-06-10 12:27:16 UTC (rev 3240)
@@ -0,0 +1,120 @@
+/*
+ * Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation. Sun designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Sun in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
+ * CA 95054 USA or visit www.sun.com if you need additional information or
+ * have any questions.
+ */
+
+package com.sun.mirror.apt;
+
+import com.sun.mirror.apt.*;
+import java.util.*;
+
+/**
+ * Utilities to create specialized annotation processors.
+ *
+ * @since 1.5
+ * @author Joseph D. Darcy
+ * @author Scott Seligman
+ */
+public class AnnotationProcessors {
+ static class NoOpAP implements AnnotationProcessor {
+ NoOpAP() {}
+ public void process(){}
+ }
+
+ /**
+ * Combines multiple annotation processors into a simple composite
+ * processor.
+ * The composite processor functions by invoking each of its component
+ * processors in sequence.
+ */
+ static class CompositeAnnotationProcessor implements AnnotationProcessor {
+
+ private List<AnnotationProcessor> aps =
+ new LinkedList<AnnotationProcessor>();
+
+ /**
+ * Constructs a new composite annotation processor.
+ * @param aps the component annotation processors
+ */
+ public CompositeAnnotationProcessor(Collection<AnnotationProcessor> aps) {
+ this.aps.addAll(aps);
+ }
+
+ /**
+ * Constructs a new composite annotation processor.
+ * @param aps the component annotation processors
+ */
+ public CompositeAnnotationProcessor(AnnotationProcessor... aps) {
+ for(AnnotationProcessor ap: aps)
+ this.aps.add(ap);
+ }
+
+ /**
+ * Invokes the <tt>process</tt> method of each component processor,
+ * in the order in which the processors were passed to the constructor.
+ */
+ public void process() {
+ for(AnnotationProcessor ap: aps)
+ ap.process();
+ }
+ }
+
+
+ /**
+ * An annotation processor that does nothing and has no state.
+ * May be used multiple times.
+ *
+ * @since 1.5
+ */
+ public final static AnnotationProcessor NO_OP = new NoOpAP();
+
+ /**
+ * Constructs a new composite annotation processor. A composite
+ * annotation processor combines multiple annotation processors
+ * into one and functions by invoking each of its component
+ * processors' process methods in sequence.
+ *
+ * @param aps The processors to create a composite of
+ * @since 1.5
+ */
+ public static AnnotationProcessor getCompositeAnnotationProcessor(AnnotationProcessor... aps) {
+ return new CompositeAnnotationProcessor(aps);
+ }
+
+ /**
+ * Constructs a new composite annotation processor. A composite
+ * annotation processor combines multiple annotation processors
+ * into one and functions by invoking each of its component
+ * processors' process methods in the sequence the processors are
+ * returned by the collection's iterator.
+ *
+ * @param aps A collection of processors to create a composite of
+ * @since 1.5
+ */
+ public static AnnotationProcessor getCompositeAnnotationProcessor(Collection<AnnotationProcessor> aps) {
+ return new CompositeAnnotationProcessor(aps);
+ }
+}
+
+
+
Added: trunk/core/src/openjdk/com/com/sun/mirror/apt/Filer.java
===================================================================
--- trunk/core/src/openjdk/com/com/sun/mirror/apt/Filer.java (rev 0)
+++ trunk/core/src/openjdk/com/com/sun/mirror/apt/Filer.java 2007-06-10 12:27:16 UTC (rev 3240)
@@ -0,0 +1,151 @@
+/*
+ * Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation. Sun designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Sun in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
+ * CA 95054 USA or visit www.sun.com if you need additional information or
+ * have any questions.
+ */
+
+package com.sun.mirror.apt;
+
+
+import java.io.*;
+
+
+/**
+ * This interface supports the creation of new files by an
+ * annotation processor.
+ * Files created in this way will be known to the annotation processing
+ * tool implementing this interface, better enabling the tool to manage them.
+ * Four kinds of files are distinguished:
+ * source files, class files, other text files, and other binary files.
+ * The latter two are collectively referred to as <i>auxiliary</i> files.
+ *
+ * <p> There are two distinguished locations (subtrees within the
+ * file system) where newly created files are placed:
+ * one for new source files, and one for new class files.
+ * (These might be specified on a tool's command line, for example,
+ * using flags such as <tt>-s</tt> and <tt>-d</tt>.)
+ * Auxiliary files may be created in either location.
+ *
+ * <p> During each run of an annotation processing tool, a file
+ * with a given pathname may be created only once. If that file already
+ * exists before the first attempt to create it, the old contents will
+ * be deleted. Any subsequent attempt to create the same file during
+ * a run will fail.
+ *
+ * @author Joseph D. Darcy
+ * @author Scott Seligman
+ * @version 1.8 07/05/05
+ * @since 1.5
+ */
+
+public interface Filer {
+
+ /**
+ * Creates a new source file and returns a writer for it.
+ * The file's name and path (relative to the root of all newly created
+ * source files) is based on the type to be declared in that file.
+ * If more than one type is being declared, the name of the principal
+ * top-level type (the public one, for example) should be used.
+ *
+ * <p> The {@linkplain java.nio.charset.Charset charset} used to
+ * encode the file is determined by the implementation.
+ * An annotation processing tool may have an <tt>-encoding</tt>
+ * flag or the like for specifying this. It will typically use
+ * the platform's default encoding if none is specified.
+ *
+ * @param name canonical (fully qualified) name of the principal type
+ * being declared in this file
+ * @return a writer for the new file
+ * @throws IOException if the file cannot be created
+ */
+ PrintWriter createSourceFile(String name) throws IOException;
+
+ /**
+ * Creates a new class file, and returns a stream for writing to it.
+ * The file's name and path (relative to the root of all newly created
+ * class files) is based on the name of the type being written.
+ *
+ * @param name canonical (fully qualified) name of the type being written
+ * @return a stream for writing to the new file
+ * @throws IOException if the file cannot be created
+ */
+ OutputStream createClassFile(String name) throws IOException;
+
+ /**
+ * Creates a new text file, and returns a writer for it.
+ * The file is located along with either the
+ * newly created source or newly created binary files. It may be
+ * named relative to some package (as are source and binary files),
+ * and from there by an arbitrary pathname. In a loose sense, the
+ * pathname of the new file will be the concatenation of
+ * <tt>loc</tt>, <tt>pkg</tt>, and <tt>relPath</tt>.
+ *
+ * <p> A {@linkplain java.nio.charset.Charset charset} for
+ * encoding the file may be provided. If none is given, the
+ * charset used to encode source files
+ * (see {@link #createSourceFile(String)}) will be used.
+ *
+ * @param loc location of the new file
+ * @param pkg package relative to which the file should be named,
+ * or the empty string if none
+ * @param relPath final pathname components of the file
+ * @param charsetName the name of the charset to use, or null if none
+ * is being explicitly specified
+ * @return a writer for the new file
+ * @throws IOException if the file cannot be created
+ */
+ PrintWriter createTextFile(Location loc,
+ String pkg,
+ File relPath,
+ String charsetName) throws IOException;
+
+ /**
+ * Creates a new binary file, and returns a stream for writing to it.
+ * The file is located along with either the
+ * newly created source or newly created binary files. It may be
+ * named relative to some package (as are source and binary files),
+ * and from there by an arbitrary pathname. In a loose sense, the
+ * pathname of the new file will be the concatenation of
+ * <tt>loc</tt>, <tt>pkg</tt>, and <tt>relPath</tt>.
+ *
+ * @param loc location of the new file
+ * @param pkg package relative to which the file should be named,
+ * or the empty string if none
+ * @param relPath final pathname components of the file
+ * @return a stream for writing to the new file
+ * @throws IOException if the file cannot be created
+ */
+ OutputStream createBinaryFile(Location loc,
+ String pkg,
+ File relPath) throws IOException;
+
+
+ /**
+ * Locations (subtrees within the file system) where new files are created.
+ */
+ enum Location {
+ /** The location of new source files. */
+ SOURCE_TREE,
+ /** The location of new class files. */
+ CLASS_TREE
+ }
+}
Added: trunk/core/src/openjdk/com/com/sun/mirror/apt/Messager.java
===================================================================
--- trunk/core/src/openjdk/com/com/sun/mirror/apt/Messager.java (rev 0)
+++ trunk/core/src/openjdk/com/com/sun/mirror/apt/Messager.java 2007-06-10 12:27:16 UTC (rev 3240)
@@ -0,0 +1,89 @@
+/*
+ * Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation. Sun designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Sun in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
+ * CA 95054 USA or visit www.sun.com if you need additional information or
+ * have any questions.
+ */
+
+package com.sun.mirror.apt;
+
+
+import com.sun.mirror.util.SourcePosition;
+
+
+/**
+ * A <tt>Messager</tt> provides the way for
+ * an annotation processor to report error messages, warnings, and
+ * other notices.
+ *
+ * @author Joseph D. Darcy
+ * @author Scott Seligman
+ * @version 1.9 07/05/05
+ * @since 1.5
+ */
+
+public interface Messager {
+
+ /**
+ * Prints an error message.
+ * Equivalent to <tt>printError(null, msg)</tt>.
+ * @param msg the message, or an empty string if none
+ */
+ void printError(String msg);
+
+ /**
+ * Prints an error message.
+ * @param pos the position where the error occured, or null if it is
+ * unknown or not applicable
+ * @param msg the message, or an empty string if none
+ */
+ void printError(SourcePosition pos, String msg);
+
+ /**
+ * Prints a warning message.
+ * Equivalent to <tt>printWarning(null, msg)</tt>.
+ * @param msg the message, or an empty string if none
+ */
+ void printWarning(String msg);
+
+ /**
+ * Prints a warning message.
+ * @param pos the position where the warning occured, or null if it is
+ * unknown or not applicable
+ * @param msg the message, or an empty string if none
+ */
+ void printWarning(SourcePosition pos, String msg);
+
+ /**
+ * Prints a notice.
+ * Equivalent to <tt>printNotice(null, msg)</tt>.
+ * @param msg the message, or an empty string if none
+ */
+ void printNotice(String msg);
+
+ /**
+ * Prints a notice.
+ * @param pos the position where the noticed occured, or null if it is
+ * unknown or not applicable
+ * @param msg the message, or an empty string if none
+ */
+ void printNotice(SourcePosition pos, String msg);
+}
Added: trunk/core/src/openjdk/com/com/sun/mirror/apt/RoundCompleteEvent.java
===================================================================
--- trunk/core/src/openjdk/com/com/sun/mirror/apt/RoundCompleteEvent.java (rev 0)
+++ trunk/core/src/openjdk/com/com/sun/mirror/apt/RoundCompleteEvent.java 2007-06-10 12:27:16 UTC (rev 3240)
@@ -0,0 +1,69 @@
+/*
+ * Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation. Sun designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Sun in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
+ * CA 95054 USA or visit www.sun.com if you need additional information or
+ * have any questions.
+ */
+
+package com.sun.mirror.apt;
+
+/**
+ * Event for the completion of a round of annotation processing.
+ *
+ * <p>While this class extends the serializable <tt>EventObject</tt>, it
+ * cannot meaningfully be serialized because all of the annotation
+ * processing tool's internal state would potentially be needed.
+ *
+ * @author Joseph D. Darcy
+ * @author Scott Seligman
+ * @version 1.9 07/05/05
+ * @since 1.5
+ */
+public abstract class RoundCompleteEvent extends java.util.EventObject {
+ private RoundState rs;
+
+ /**
+ * The current <tt>AnnotationProcessorEnvironment</tt> is regarded
+ * as the source of events.
+ *
+ * @param source The source of events
+ * @param rs The state of the round
+ */
+ protected RoundCompleteEvent(AnnotationProcessorEnvironment source,
+ RoundState rs) {
+ super(source);
+ this.rs = rs;
+ }
+
+ /**
+ * Return round state.
+ */
+ public RoundState getRoundState() {
+ return rs;
+ }
+
+ /**
+ * Return source.
+ */
+ public AnnotationProcessorEnvironment getSource() {
+ return (AnnotationProcessorEnvironment)super.getSource();
+ }
+}
Added: trunk/core/src/openjdk/com/com/sun/mirror/apt/RoundCompleteListener.java
===================================================================
--- trunk/core/src/openjdk/com/com/sun/mirror/apt/RoundCompleteListener.java (rev 0)
+++ trunk/core/src/openjdk/com/com/sun/mirror/apt/RoundCompleteListener.java 2007-06-10 12:27:16 UTC (rev 3240)
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation. Sun designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Sun in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
+ * CA 95054 USA or visit www.sun.com if you need additional information or
+ * have any questions.
+ */
+
+package com.sun.mirror.apt;
+
+/**
+ * Listener for the completion of a round of annotation processing.
+ *
+ * @author Joseph D. Darcy
+ * @author Scott Seligman
+ * @version 1.8 07/05/05
+ * @since 1.5
+ */
+public interface RoundCompleteListener extends AnnotationProcessorListener {
+ /**
+ * Invoked after all processors for a round have run to completion.
+ *
+ * @param event An event for round completion
+ */
+ void roundComplete(RoundCompleteEvent event);
+}
Added: trunk/core/src/openjdk/com/com/sun/mirror/apt/RoundState.java
===================================================================
--- trunk/core/src/openjdk/com/com/sun/mirror/apt/RoundState.java (rev 0)
+++ trunk/core/src/openjdk/com/com/sun/mirror/apt/RoundState.java 2007-06-10 12:27:16 UTC (rev 3240)
@@ -0,0 +1,60 @@
+/*
+ * Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License ver...
[truncated message content] |