├── .gitignore ├── LICENSE ├── README.markdown ├── THIRD_PARTY_README ├── pom.xml └── src └── main └── java └── openjdk7 ├── com └── sun │ ├── javadoc │ ├── AnnotationDesc.java │ ├── AnnotationTypeDoc.java │ ├── AnnotationTypeElementDoc.java │ ├── AnnotationValue.java │ ├── ClassDoc.java │ ├── ConstructorDoc.java │ ├── Doc.java │ ├── DocErrorReporter.java │ ├── Doclet.java │ ├── ExecutableMemberDoc.java │ ├── FieldDoc.java │ ├── LanguageVersion.java │ ├── MemberDoc.java │ ├── MethodDoc.java │ ├── PackageDoc.java │ ├── ParamTag.java │ ├── Parameter.java │ ├── ParameterizedType.java │ ├── ProgramElementDoc.java │ ├── RootDoc.java │ ├── SeeTag.java │ ├── SerialFieldTag.java │ ├── SourcePosition.java │ ├── Tag.java │ ├── ThrowsTag.java │ ├── Type.java │ ├── TypeVariable.java │ ├── WildcardType.java │ └── package.html │ ├── mirror │ ├── apt │ │ ├── AnnotationProcessor.java │ │ ├── AnnotationProcessorEnvironment.java │ │ ├── AnnotationProcessorFactory.java │ │ ├── AnnotationProcessorListener.java │ │ ├── AnnotationProcessors.java │ │ ├── Filer.java │ │ ├── Messager.java │ │ ├── RoundCompleteEvent.java │ │ ├── RoundCompleteListener.java │ │ ├── RoundState.java │ │ └── package-info.java │ ├── declaration │ │ ├── AnnotationMirror.java │ │ ├── AnnotationTypeDeclaration.java │ │ ├── AnnotationTypeElementDeclaration.java │ │ ├── AnnotationValue.java │ │ ├── ClassDeclaration.java │ │ ├── ConstructorDeclaration.java │ │ ├── Declaration.java │ │ ├── EnumConstantDeclaration.java │ │ ├── EnumDeclaration.java │ │ ├── ExecutableDeclaration.java │ │ ├── FieldDeclaration.java │ │ ├── InterfaceDeclaration.java │ │ ├── MemberDeclaration.java │ │ ├── MethodDeclaration.java │ │ ├── Modifier.java │ │ ├── PackageDeclaration.java │ │ ├── ParameterDeclaration.java │ │ ├── TypeDeclaration.java │ │ ├── TypeParameterDeclaration.java │ │ └── package-info.java │ ├── overview.html │ ├── type │ │ ├── AnnotationType.java │ │ ├── ArrayType.java │ │ ├── ClassType.java │ │ ├── DeclaredType.java │ │ ├── EnumType.java │ │ ├── InterfaceType.java │ │ ├── MirroredTypeException.java │ │ ├── MirroredTypesException.java │ │ ├── PrimitiveType.java │ │ ├── ReferenceType.java │ │ ├── TypeMirror.java │ │ ├── TypeVariable.java │ │ ├── VoidType.java │ │ ├── WildcardType.java │ │ └── package-info.java │ └── util │ │ ├── DeclarationFilter.java │ │ ├── DeclarationScanner.java │ │ ├── DeclarationVisitor.java │ │ ├── DeclarationVisitors.java │ │ ├── Declarations.java │ │ ├── SimpleDeclarationVisitor.java │ │ ├── SimpleTypeVisitor.java │ │ ├── SourceOrderDeclScanner.java │ │ ├── SourcePosition.java │ │ ├── TypeVisitor.java │ │ ├── Types.java │ │ └── package-info.java │ ├── source │ ├── tree │ │ ├── AnnotationTree.java │ │ ├── ArrayAccessTree.java │ │ ├── ArrayTypeTree.java │ │ ├── AssertTree.java │ │ ├── AssignmentTree.java │ │ ├── BinaryTree.java │ │ ├── BlockTree.java │ │ ├── BreakTree.java │ │ ├── CaseTree.java │ │ ├── CatchTree.java │ │ ├── ClassTree.java │ │ ├── CompilationUnitTree.java │ │ ├── CompoundAssignmentTree.java │ │ ├── ConditionalExpressionTree.java │ │ ├── ContinueTree.java │ │ ├── DoWhileLoopTree.java │ │ ├── EmptyStatementTree.java │ │ ├── EnhancedForLoopTree.java │ │ ├── ErroneousTree.java │ │ ├── ExpressionStatementTree.java │ │ ├── ExpressionTree.java │ │ ├── ForLoopTree.java │ │ ├── IdentifierTree.java │ │ ├── IfTree.java │ │ ├── ImportTree.java │ │ ├── InstanceOfTree.java │ │ ├── LabeledStatementTree.java │ │ ├── LineMap.java │ │ ├── LiteralTree.java │ │ ├── MemberSelectTree.java │ │ ├── MethodInvocationTree.java │ │ ├── MethodTree.java │ │ ├── ModifiersTree.java │ │ ├── NewArrayTree.java │ │ ├── NewClassTree.java │ │ ├── ParameterizedTypeTree.java │ │ ├── ParenthesizedTree.java │ │ ├── PrimitiveTypeTree.java │ │ ├── ReturnTree.java │ │ ├── Scope.java │ │ ├── StatementTree.java │ │ ├── SwitchTree.java │ │ ├── SynchronizedTree.java │ │ ├── ThrowTree.java │ │ ├── Tree.java │ │ ├── TreeVisitor.java │ │ ├── TryTree.java │ │ ├── TypeCastTree.java │ │ ├── TypeParameterTree.java │ │ ├── UnaryTree.java │ │ ├── UnionTypeTree.java │ │ ├── VariableTree.java │ │ ├── WhileLoopTree.java │ │ ├── WildcardTree.java │ │ └── package-info.java │ └── util │ │ ├── JavacTask.java │ │ ├── SimpleTreeVisitor.java │ │ ├── SourcePositions.java │ │ ├── TaskEvent.java │ │ ├── TaskListener.java │ │ ├── TreePath.java │ │ ├── TreePathScanner.java │ │ ├── TreeScanner.java │ │ ├── Trees.java │ │ └── package-info.java │ └── tools │ ├── apt │ ├── Main.java │ ├── comp │ │ ├── AnnotationProcessingError.java │ │ ├── Apt.java │ │ ├── BootstrapAPF.java │ │ ├── PrintAP.java │ │ └── UsageMessageNeededException.java │ ├── main │ │ ├── AptJavaCompiler.java │ │ ├── CommandLine.java │ │ └── Main.java │ ├── mirror │ │ ├── AptEnv.java │ │ ├── apt │ │ │ ├── AnnotationProcessorEnvironmentImpl.java │ │ │ ├── FilerImpl.java │ │ │ ├── MessagerImpl.java │ │ │ ├── RoundCompleteEventImpl.java │ │ │ └── RoundStateImpl.java │ │ ├── declaration │ │ │ ├── AnnotationMirrorImpl.java │ │ │ ├── AnnotationProxyMaker.java │ │ │ ├── AnnotationTypeDeclarationImpl.java │ │ │ ├── AnnotationTypeElementDeclarationImpl.java │ │ │ ├── AnnotationValueImpl.java │ │ │ ├── ClassDeclarationImpl.java │ │ │ ├── Constants.java │ │ │ ├── ConstructorDeclarationImpl.java │ │ │ ├── DeclarationImpl.java │ │ │ ├── DeclarationMaker.java │ │ │ ├── EnumConstantDeclarationImpl.java │ │ │ ├── EnumDeclarationImpl.java │ │ │ ├── ExecutableDeclarationImpl.java │ │ │ ├── FieldDeclarationImpl.java │ │ │ ├── InterfaceDeclarationImpl.java │ │ │ ├── MemberDeclarationImpl.java │ │ │ ├── MethodDeclarationImpl.java │ │ │ ├── PackageDeclarationImpl.java │ │ │ ├── ParameterDeclarationImpl.java │ │ │ ├── TypeDeclarationImpl.java │ │ │ └── TypeParameterDeclarationImpl.java │ │ ├── type │ │ │ ├── AnnotationTypeImpl.java │ │ │ ├── ArrayTypeImpl.java │ │ │ ├── ClassTypeImpl.java │ │ │ ├── DeclaredTypeImpl.java │ │ │ ├── EnumTypeImpl.java │ │ │ ├── InterfaceTypeImpl.java │ │ │ ├── PrimitiveTypeImpl.java │ │ │ ├── TypeMaker.java │ │ │ ├── TypeMirrorImpl.java │ │ │ ├── TypeVariableImpl.java │ │ │ ├── VoidTypeImpl.java │ │ │ └── WildcardTypeImpl.java │ │ └── util │ │ │ ├── DeclarationsImpl.java │ │ │ ├── SourcePositionImpl.java │ │ │ └── TypesImpl.java │ ├── resources │ │ ├── apt.properties │ │ ├── apt_ja.properties │ │ └── apt_zh_CN.properties │ └── util │ │ └── Bark.java │ ├── classfile │ ├── AccessFlags.java │ ├── Annotation.java │ ├── AnnotationDefault_attribute.java │ ├── Attribute.java │ ├── AttributeException.java │ ├── Attributes.java │ ├── BootstrapMethods_attribute.java │ ├── CharacterRangeTable_attribute.java │ ├── ClassFile.java │ ├── ClassReader.java │ ├── ClassTranslator.java │ ├── ClassWriter.java │ ├── Code_attribute.java │ ├── CompilationID_attribute.java │ ├── ConstantPool.java │ ├── ConstantPoolException.java │ ├── ConstantValue_attribute.java │ ├── DefaultAttribute.java │ ├── Dependencies.java │ ├── Dependency.java │ ├── Deprecated_attribute.java │ ├── Descriptor.java │ ├── DescriptorException.java │ ├── EnclosingMethod_attribute.java │ ├── Exceptions_attribute.java │ ├── Field.java │ ├── InnerClasses_attribute.java │ ├── Instruction.java │ ├── LineNumberTable_attribute.java │ ├── LocalVariableTable_attribute.java │ ├── LocalVariableTypeTable_attribute.java │ ├── Method.java │ ├── Opcode.java │ ├── RuntimeAnnotations_attribute.java │ ├── RuntimeInvisibleAnnotations_attribute.java │ ├── RuntimeInvisibleParameterAnnotations_attribute.java │ ├── RuntimeParameterAnnotations_attribute.java │ ├── RuntimeVisibleAnnotations_attribute.java │ ├── RuntimeVisibleParameterAnnotations_attribute.java │ ├── Signature.java │ ├── Signature_attribute.java │ ├── SourceDebugExtension_attribute.java │ ├── SourceFile_attribute.java │ ├── SourceID_attribute.java │ ├── StackMapTable_attribute.java │ ├── StackMap_attribute.java │ ├── Synthetic_attribute.java │ ├── Type.java │ └── package.html │ ├── doclets │ ├── Taglet.java │ ├── formats │ │ └── html │ │ │ ├── AbstractExecutableMemberWriter.java │ │ │ ├── AbstractIndexWriter.java │ │ │ ├── AbstractMemberWriter.java │ │ │ ├── AbstractPackageIndexWriter.java │ │ │ ├── AbstractTreeWriter.java │ │ │ ├── AllClassesFrameWriter.java │ │ │ ├── AnnotationTypeOptionalMemberWriterImpl.java │ │ │ ├── AnnotationTypeRequiredMemberWriterImpl.java │ │ │ ├── AnnotationTypeWriterImpl.java │ │ │ ├── ClassUseWriter.java │ │ │ ├── ClassWriterImpl.java │ │ │ ├── ConfigurationImpl.java │ │ │ ├── ConstantsSummaryWriterImpl.java │ │ │ ├── ConstructorWriterImpl.java │ │ │ ├── DeprecatedListWriter.java │ │ │ ├── EnumConstantWriterImpl.java │ │ │ ├── FieldWriterImpl.java │ │ │ ├── FrameOutputWriter.java │ │ │ ├── HelpWriter.java │ │ │ ├── HtmlDoclet.java │ │ │ ├── HtmlDocletWriter.java │ │ │ ├── HtmlSerialFieldWriter.java │ │ │ ├── HtmlSerialMethodWriter.java │ │ │ ├── LinkFactoryImpl.java │ │ │ ├── LinkInfoImpl.java │ │ │ ├── LinkOutputImpl.java │ │ │ ├── MethodWriterImpl.java │ │ │ ├── NestedClassWriterImpl.java │ │ │ ├── PackageFrameWriter.java │ │ │ ├── PackageIndexFrameWriter.java │ │ │ ├── PackageIndexWriter.java │ │ │ ├── PackageTreeWriter.java │ │ │ ├── PackageUseWriter.java │ │ │ ├── PackageWriterImpl.java │ │ │ ├── PropertyWriterImpl.java │ │ │ ├── SerializedFormWriterImpl.java │ │ │ ├── SingleIndexWriter.java │ │ │ ├── SourceToHTMLConverter.java │ │ │ ├── SplitIndexWriter.java │ │ │ ├── SubWriterHolderWriter.java │ │ │ ├── TagletOutputImpl.java │ │ │ ├── TagletWriterImpl.java │ │ │ ├── TreeWriter.java │ │ │ ├── WriterFactoryImpl.java │ │ │ ├── markup │ │ │ ├── Comment.java │ │ │ ├── DocType.java │ │ │ ├── HtmlAttr.java │ │ │ ├── HtmlConstants.java │ │ │ ├── HtmlDocWriter.java │ │ │ ├── HtmlDocument.java │ │ │ ├── HtmlStyle.java │ │ │ ├── HtmlTag.java │ │ │ ├── HtmlTree.java │ │ │ ├── HtmlWriter.java │ │ │ ├── RawHtml.java │ │ │ ├── StringContent.java │ │ │ └── package.html │ │ │ ├── package.html │ │ │ └── resources │ │ │ ├── standard.properties │ │ │ ├── standard_ja.properties │ │ │ └── standard_zh_CN.properties │ ├── internal │ │ └── toolkit │ │ │ ├── AbstractDoclet.java │ │ │ ├── AnnotationTypeOptionalMemberWriter.java │ │ │ ├── AnnotationTypeRequiredMemberWriter.java │ │ │ ├── AnnotationTypeWriter.java │ │ │ ├── ClassWriter.java │ │ │ ├── Configuration.java │ │ │ ├── ConstantsSummaryWriter.java │ │ │ ├── ConstructorWriter.java │ │ │ ├── Content.java │ │ │ ├── EnumConstantWriter.java │ │ │ ├── FieldWriter.java │ │ │ ├── MemberSummaryWriter.java │ │ │ ├── MethodWriter.java │ │ │ ├── NestedClassWriter.java │ │ │ ├── PackageSummaryWriter.java │ │ │ ├── PropertyWriter.java │ │ │ ├── SerializedFormWriter.java │ │ │ ├── WriterFactory.java │ │ │ ├── builders │ │ │ ├── AbstractBuilder.java │ │ │ ├── AbstractMemberBuilder.java │ │ │ ├── AnnotationTypeBuilder.java │ │ │ ├── AnnotationTypeOptionalMemberBuilder.java │ │ │ ├── AnnotationTypeRequiredMemberBuilder.java │ │ │ ├── BuilderFactory.java │ │ │ ├── ClassBuilder.java │ │ │ ├── ConstantsSummaryBuilder.java │ │ │ ├── ConstructorBuilder.java │ │ │ ├── EnumConstantBuilder.java │ │ │ ├── FieldBuilder.java │ │ │ ├── LayoutParser.java │ │ │ ├── MemberSummaryBuilder.java │ │ │ ├── MethodBuilder.java │ │ │ ├── PackageSummaryBuilder.java │ │ │ ├── PropertyBuilder.java │ │ │ ├── SerializedFormBuilder.java │ │ │ ├── XMLNode.java │ │ │ └── package.html │ │ │ ├── package.html │ │ │ ├── resources │ │ │ ├── background.gif │ │ │ ├── doclet.xml │ │ │ ├── doclets.properties │ │ │ ├── doclets_ja.properties │ │ │ ├── doclets_zh_CN.properties │ │ │ ├── stylesheet.css │ │ │ ├── tab.gif │ │ │ ├── titlebar.gif │ │ │ └── titlebar_end.gif │ │ │ ├── taglets │ │ │ ├── BaseExecutableMemberTaglet.java │ │ │ ├── BaseInlineTaglet.java │ │ │ ├── BasePropertyTaglet.java │ │ │ ├── BaseTaglet.java │ │ │ ├── CodeTaglet.java │ │ │ ├── DeprecatedTaglet.java │ │ │ ├── DocRootTaglet.java │ │ │ ├── ExpertTaglet.java │ │ │ ├── InheritDocTaglet.java │ │ │ ├── InheritableTaglet.java │ │ │ ├── LegacyTaglet.java │ │ │ ├── LiteralTaglet.java │ │ │ ├── ParamTaglet.java │ │ │ ├── PropertyGetterTaglet.java │ │ │ ├── PropertySetterTaglet.java │ │ │ ├── ReturnTaglet.java │ │ │ ├── SeeTaglet.java │ │ │ ├── SimpleTaglet.java │ │ │ ├── Taglet.java │ │ │ ├── TagletManager.java │ │ │ ├── TagletOutput.java │ │ │ ├── TagletWriter.java │ │ │ ├── ThrowsTaglet.java │ │ │ ├── ValueTaglet.java │ │ │ └── package.html │ │ │ └── util │ │ │ ├── ClassDocCatalog.java │ │ │ ├── ClassTree.java │ │ │ ├── ClassUseMapper.java │ │ │ ├── CommentedMethodFinder.java │ │ │ ├── DeprecatedAPIListBuilder.java │ │ │ ├── DirectoryManager.java │ │ │ ├── DocFinder.java │ │ │ ├── DocletAbortException.java │ │ │ ├── DocletConstants.java │ │ │ ├── Extern.java │ │ │ ├── Group.java │ │ │ ├── ImplementedMethods.java │ │ │ ├── IndexBuilder.java │ │ │ ├── MessageRetriever.java │ │ │ ├── MetaKeywords.java │ │ │ ├── MethodFinder.java │ │ │ ├── PackageListWriter.java │ │ │ ├── SourcePath.java │ │ │ ├── TaggedMethodFinder.java │ │ │ ├── TextTag.java │ │ │ ├── Util.java │ │ │ ├── VisibleMemberMap.java │ │ │ ├── links │ │ │ ├── LinkFactory.java │ │ │ ├── LinkInfo.java │ │ │ ├── LinkOutput.java │ │ │ └── package.html │ │ │ └── package.html │ ├── package.html │ └── standard │ │ └── Standard.java │ ├── javac │ ├── Launcher.java │ ├── Main.java │ ├── Server.java │ ├── api │ │ ├── ClientCodeWrapper.java │ │ ├── DiagnosticFormatter.java │ │ ├── Formattable.java │ │ ├── JavacScope.java │ │ ├── JavacTaskImpl.java │ │ ├── JavacTool.java │ │ ├── JavacTrees.java │ │ ├── Messages.java │ │ └── WrappingJavaFileManager.java │ ├── code │ │ ├── Attribute.java │ │ ├── BoundKind.java │ │ ├── DeferredLintHandler.java │ │ ├── Flags.java │ │ ├── Kinds.java │ │ ├── Lint.java │ │ ├── Printer.java │ │ ├── Scope.java │ │ ├── Source.java │ │ ├── Symbol.java │ │ ├── Symtab.java │ │ ├── TargetType.java │ │ ├── Type.java │ │ ├── TypeAnnotationPosition.java │ │ ├── TypeTags.java │ │ └── Types.java │ ├── comp │ │ ├── Annotate.java │ │ ├── Attr.java │ │ ├── AttrContext.java │ │ ├── AttrContextEnv.java │ │ ├── Check.java │ │ ├── ConstFold.java │ │ ├── Enter.java │ │ ├── Env.java │ │ ├── Flow.java │ │ ├── Infer.java │ │ ├── Lower.java │ │ ├── MemberEnter.java │ │ ├── Resolve.java │ │ ├── Todo.java │ │ └── TransTypes.java │ ├── file │ │ ├── BaseFileObject.java │ │ ├── CacheFSInfo.java │ │ ├── FSInfo.java │ │ ├── JavacFileManager.java │ │ ├── Paths.java │ │ ├── RegularFileObject.java │ │ ├── RelativePath.java │ │ ├── SymbolArchive.java │ │ ├── ZipArchive.java │ │ ├── ZipFileIndex.java │ │ ├── ZipFileIndexArchive.java │ │ └── ZipFileIndexCache.java │ ├── jvm │ │ ├── ByteCodes.java │ │ ├── CRTFlags.java │ │ ├── CRTable.java │ │ ├── ClassFile.java │ │ ├── ClassReader.java │ │ ├── ClassWriter.java │ │ ├── Code.java │ │ ├── Gen.java │ │ ├── Items.java │ │ ├── Pool.java │ │ ├── Target.java │ │ └── UninitializedType.java │ ├── main │ │ ├── CommandLine.java │ │ ├── JavaCompiler.java │ │ ├── JavacOption.java │ │ ├── Main.java │ │ ├── OptionName.java │ │ └── RecognizedOptions.java │ ├── model │ │ ├── AnnotationProxyMaker.java │ │ ├── FilteredMemberList.java │ │ ├── JavacElements.java │ │ ├── JavacSourcePosition.java │ │ └── JavacTypes.java │ ├── nio │ │ ├── JavacPathFileManager.java │ │ ├── PathFileManager.java │ │ └── PathFileObject.java │ ├── parser │ │ ├── DocCommentScanner.java │ │ ├── EndPosParser.java │ │ ├── JavacParser.java │ │ ├── Keywords.java │ │ ├── Lexer.java │ │ ├── Parser.java │ │ ├── ParserFactory.java │ │ ├── Scanner.java │ │ ├── ScannerFactory.java │ │ └── Token.java │ ├── processing │ │ ├── AnnotationProcessingError.java │ │ ├── JavacFiler.java │ │ ├── JavacMessager.java │ │ ├── JavacProcessingEnvironment.java │ │ ├── JavacRoundEnvironment.java │ │ ├── PrintingProcessor.java │ │ └── ServiceProxy.java │ ├── resources │ │ ├── compiler.properties │ │ ├── compiler_ja.properties │ │ ├── compiler_zh_CN.properties │ │ ├── javac.properties │ │ ├── javac_ja.properties │ │ ├── javac_zh_CN.properties │ │ ├── legacy.properties │ │ └── version.properties-template │ ├── services │ │ └── javax.tools.JavaCompilerTool │ ├── sym │ │ └── CreateSymbols.java │ ├── tree │ │ ├── JCTree.java │ │ ├── Pretty.java │ │ ├── TreeCopier.java │ │ ├── TreeInfo.java │ │ ├── TreeMaker.java │ │ ├── TreeScanner.java │ │ └── TreeTranslator.java │ └── util │ │ ├── Abort.java │ │ ├── AbstractDiagnosticFormatter.java │ │ ├── AbstractLog.java │ │ ├── Assert.java │ │ ├── BaseFileManager.java │ │ ├── BasicDiagnosticFormatter.java │ │ ├── Bits.java │ │ ├── ByteBuffer.java │ │ ├── ClientCodeException.java │ │ ├── CloseableURLClassLoader.java │ │ ├── Constants.java │ │ ├── Context.java │ │ ├── Convert.java │ │ ├── DiagnosticSource.java │ │ ├── FatalError.java │ │ ├── Filter.java │ │ ├── ForwardingDiagnosticFormatter.java │ │ ├── JCDiagnostic.java │ │ ├── JavacMessages.java │ │ ├── LayoutCharacters.java │ │ ├── List.java │ │ ├── ListBuffer.java │ │ ├── Log.java │ │ ├── MandatoryWarningHandler.java │ │ ├── Name.java │ │ ├── Names.java │ │ ├── Options.java │ │ ├── Pair.java │ │ ├── Position.java │ │ ├── PropagatedException.java │ │ ├── RawDiagnosticFormatter.java │ │ ├── RichDiagnosticFormatter.java │ │ ├── SharedNameTable.java │ │ ├── UnsharedNameTable.java │ │ └── Warner.java │ ├── javadoc │ ├── AbstractTypeImpl.java │ ├── AnnotationDescImpl.java │ ├── AnnotationTypeDocImpl.java │ ├── AnnotationTypeElementDocImpl.java │ ├── AnnotationValueImpl.java │ ├── ClassDocImpl.java │ ├── Comment.java │ ├── ConstructorDocImpl.java │ ├── DocEnv.java │ ├── DocImpl.java │ ├── DocLocale.java │ ├── DocletInvoker.java │ ├── ExecutableMemberDocImpl.java │ ├── FieldDocImpl.java │ ├── JavadocClassReader.java │ ├── JavadocEnter.java │ ├── JavadocMemberEnter.java │ ├── JavadocTodo.java │ ├── JavadocTool.java │ ├── Main.java │ ├── MemberDocImpl.java │ ├── Messager.java │ ├── MethodDocImpl.java │ ├── ModifierFilter.java │ ├── PackageDocImpl.java │ ├── ParamTagImpl.java │ ├── ParameterImpl.java │ ├── ParameterizedTypeImpl.java │ ├── PrimitiveType.java │ ├── ProgramElementDocImpl.java │ ├── RootDocImpl.java │ ├── SeeTagImpl.java │ ├── SerialFieldTagImpl.java │ ├── SerializedForm.java │ ├── SourcePositionImpl.java │ ├── Start.java │ ├── TagImpl.java │ ├── ThrowsTagImpl.java │ ├── TypeMaker.java │ ├── TypeVariableImpl.java │ ├── WildcardTypeImpl.java │ └── resources │ │ ├── javadoc.properties │ │ ├── javadoc_ja.properties │ │ └── javadoc_zh_CN.properties │ ├── javah │ ├── Gen.java │ ├── InternalError.java │ ├── JNI.java │ ├── JavahFileManager.java │ ├── JavahTask.java │ ├── JavahTool.java │ ├── LLNI.java │ ├── Main.java │ ├── Mangle.java │ ├── NativeHeaderTool.java │ ├── TypeSignature.java │ ├── Util.java │ └── resources │ │ ├── l10n.properties │ │ ├── l10n_ja.properties │ │ ├── l10n_zh_CN.properties │ │ └── version.properties-template │ └── javap │ ├── AnnotationWriter.java │ ├── AttributeWriter.java │ ├── BasicWriter.java │ ├── ClassWriter.java │ ├── CodeWriter.java │ ├── ConstantWriter.java │ ├── Context.java │ ├── DisassemblerTool.java │ ├── InstructionDetailWriter.java │ ├── InternalError.java │ ├── JavapFileManager.java │ ├── JavapTask.java │ ├── LocalVariableTableWriter.java │ ├── LocalVariableTypeTableWriter.java │ ├── Main.java │ ├── Messages.java │ ├── Options.java │ ├── SourceWriter.java │ ├── StackMapWriter.java │ ├── TryBlockWriter.java │ ├── overview.html │ ├── package.html │ └── resources │ ├── javap.properties │ └── version.properties-template └── javax ├── annotation └── processing │ ├── AbstractProcessor.java │ ├── Completion.java │ ├── Completions.java │ ├── Filer.java │ ├── FilerException.java │ ├── Messager.java │ ├── ProcessingEnvironment.java │ ├── Processor.java │ ├── RoundEnvironment.java │ ├── SupportedAnnotationTypes.java │ ├── SupportedOptions.java │ ├── SupportedSourceVersion.java │ └── package-info.java ├── lang └── model │ ├── SourceVersion.java │ ├── UnknownEntityException.java │ ├── element │ ├── AnnotationMirror.java │ ├── AnnotationValue.java │ ├── AnnotationValueVisitor.java │ ├── Element.java │ ├── ElementKind.java │ ├── ElementVisitor.java │ ├── ExecutableElement.java │ ├── Modifier.java │ ├── Name.java │ ├── NestingKind.java │ ├── PackageElement.java │ ├── Parameterizable.java │ ├── QualifiedNameable.java │ ├── TypeElement.java │ ├── TypeParameterElement.java │ ├── UnknownAnnotationValueException.java │ ├── UnknownElementException.java │ ├── VariableElement.java │ └── package-info.java │ ├── overview.html │ ├── package-info.java │ ├── type │ ├── ArrayType.java │ ├── DeclaredType.java │ ├── ErrorType.java │ ├── ExecutableType.java │ ├── MirroredTypeException.java │ ├── MirroredTypesException.java │ ├── NoType.java │ ├── NullType.java │ ├── PrimitiveType.java │ ├── ReferenceType.java │ ├── TypeKind.java │ ├── TypeMirror.java │ ├── TypeVariable.java │ ├── TypeVisitor.java │ ├── UnionType.java │ ├── UnknownTypeException.java │ ├── WildcardType.java │ └── package-info.java │ └── util │ ├── AbstractAnnotationValueVisitor6.java │ ├── AbstractAnnotationValueVisitor7.java │ ├── AbstractElementVisitor6.java │ ├── AbstractElementVisitor7.java │ ├── AbstractTypeVisitor6.java │ ├── AbstractTypeVisitor7.java │ ├── ElementFilter.java │ ├── ElementKindVisitor6.java │ ├── ElementKindVisitor7.java │ ├── ElementScanner6.java │ ├── ElementScanner7.java │ ├── Elements.java │ ├── SimpleAnnotationValueVisitor6.java │ ├── SimpleAnnotationValueVisitor7.java │ ├── SimpleElementVisitor6.java │ ├── SimpleElementVisitor7.java │ ├── SimpleTypeVisitor6.java │ ├── SimpleTypeVisitor7.java │ ├── TypeKindVisitor6.java │ ├── TypeKindVisitor7.java │ ├── Types.java │ └── package-info.java └── tools ├── Diagnostic.java ├── DiagnosticCollector.java ├── DiagnosticListener.java ├── FileObject.java ├── ForwardingFileObject.java ├── ForwardingJavaFileManager.java ├── ForwardingJavaFileObject.java ├── JavaCompiler.java ├── JavaFileManager.java ├── JavaFileObject.java ├── OptionChecker.java ├── SimpleJavaFileObject.java ├── StandardJavaFileManager.java ├── StandardLocation.java ├── Tool.java ├── ToolProvider.java ├── overview.html └── package-info.java /.gitignore: -------------------------------------------------------------------------------- 1 | out 2 | build 3 | .idea 4 | *.iml 5 | target 6 | npm-debug.log 7 | .classpath 8 | .settings/ 9 | .project 10 | -------------------------------------------------------------------------------- /README.markdown: -------------------------------------------------------------------------------- 1 | ### javac-openjdk7 2 | 3 | These are just the javac sources from openjdk, repackaged using `openjdk7` as top-level package and with a simple `pom.xml` to build the jar file in an easy way. 4 | 5 | The code comes from the _langtools_ of `openjdk7` but this is not a complete copy of the original tree contents. The intention is to have a standalone jar with the full `javac` machinery, as a stable reference point for research & fun. 6 | 7 | The license and copyright are those coming from the original sources. 8 | 9 | -------------------------------------------------------------------------------- /pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 4.0.0 6 | 7 | openjdk7 8 | javac-openjdk7 9 | 1.7.6 10 | 11 | 12 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/javadoc/AnnotationTypeDoc.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003, 2004, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.javadoc; 27 | 28 | 29 | /** 30 | * Represents an annotation type. 31 | * 32 | * @author Scott Seligman 33 | * @since 1.5 34 | */ 35 | public interface AnnotationTypeDoc extends ClassDoc { 36 | 37 | /** 38 | * Returns the elements of this annotation type. 39 | * Returns an empty array if there are none. 40 | * 41 | * @return the elements of this annotation type. 42 | */ 43 | AnnotationTypeElementDoc[] elements(); 44 | } 45 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/javadoc/AnnotationTypeElementDoc.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003, 2004, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.javadoc; 27 | 28 | 29 | /** 30 | * Represents an element of an annotation type. 31 | * 32 | * @author Scott Seligman 33 | * @since 1.5 34 | */ 35 | public interface AnnotationTypeElementDoc extends MethodDoc { 36 | 37 | /** 38 | * Returns the default value of this element. 39 | * Returns null if this element has no default. 40 | * 41 | * @return the default value of this element. 42 | */ 43 | AnnotationValue defaultValue(); 44 | } 45 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/javadoc/ConstructorDoc.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 1998, 2006, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.javadoc; 27 | 28 | /** 29 | * Represents a constructor of a java class. 30 | * 31 | * @since 1.2 32 | * @author Robert Field 33 | */ 34 | public interface ConstructorDoc extends ExecutableMemberDoc { 35 | } 36 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/javadoc/LanguageVersion.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.javadoc; 27 | 28 | 29 | /** 30 | * Java Programming Language version. The constants of this enum 31 | * identify the JDK and J2SE releases containing language changes 32 | * relevant to doclets. 33 | *

34 | * All doclets support at least the 1.1 language version. 35 | * The first release subsequent to this with language changes 36 | * affecting doclets is 1.5. 37 | * 38 | * @since 1.5 39 | */ 40 | public enum LanguageVersion { 41 | 42 | /** 1.1 added nested classes and interfaces. */ 43 | JAVA_1_1, 44 | 45 | /** 1.5 added generic types, annotations, enums, and varArgs. */ 46 | JAVA_1_5 47 | } 48 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/javadoc/MemberDoc.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 1998, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.javadoc; 27 | 28 | /** 29 | * Represents a member of a java class: field, constructor, or method. 30 | * This is an abstract class dealing with information common to 31 | * method, constructor and field members. Class members of a class 32 | * (innerclasses) are represented instead by ClassDoc. 33 | * 34 | * @see MethodDoc 35 | * @see FieldDoc 36 | * @see ClassDoc 37 | * 38 | * @author Kaiyang Liu (original) 39 | * @author Robert Field (rewrite) 40 | */ 41 | public interface MemberDoc extends ProgramElementDoc { 42 | 43 | /** 44 | * Returns true if this member was synthesized by the compiler. 45 | */ 46 | boolean isSynthetic(); 47 | } 48 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/mirror/apt/AnnotationProcessorListener.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.mirror.apt; 27 | 28 | /** 29 | * Superinterface for all annotation processor event listeners. 30 | * 31 | * @deprecated All components of this API have been superseded by the 32 | * standardized annotation processing API. This interface has no 33 | * direct analog in the standardized API because the different round 34 | * model renders it unnecessary. 35 | * 36 | * @author Joseph D. Darcy 37 | * @author Scott Seligman 38 | * @since 1.5 39 | */ 40 | @Deprecated 41 | @SuppressWarnings("deprecation") 42 | public interface AnnotationProcessorListener extends java.util.EventListener {} 43 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/mirror/apt/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | /** 27 | * Classes used to communicate information between {@linkplain 28 | * openjdk7.com.sun.mirror.apt.AnnotationProcessor annotation processors} and 29 | * an annotation processing tool. 30 | * 31 | *

The {@code apt} tool and its associated API have been superseded 32 | * by the standardized annotation processing API. The replacement for 33 | * the functionality in this package is {@link 34 | * javax.annotation.processing}. 35 | * 36 | * @since 1.5 37 | */ 38 | package openjdk7.com.sun.mirror.apt; 39 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/mirror/declaration/ConstructorDeclaration.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.mirror.declaration; 27 | 28 | 29 | /** 30 | * Represents a constructor of a class or interface. 31 | * 32 | * @deprecated All components of this API have been superseded by the 33 | * standardized annotation processing API. The replacement for the 34 | * functionality of this interface is included in {@link 35 | * javax.lang.model.element.ExecutableElement}. 36 | * 37 | * @author Joe Darcy 38 | * @author Scott Seligman 39 | * @since 1.5 40 | */ 41 | @Deprecated 42 | @SuppressWarnings("deprecation") 43 | public interface ConstructorDeclaration extends ExecutableDeclaration { 44 | } 45 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/mirror/declaration/EnumConstantDeclaration.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.mirror.declaration; 27 | 28 | 29 | /** 30 | * Represents an enum constant declaration. 31 | * 32 | * @deprecated All components of this API have been superseded by the 33 | * standardized annotation processing API. The replacement for the 34 | * functionality of this interface is included in {@link 35 | * javax.lang.model.element.VariableElement}. 36 | * 37 | * @author Joseph D. Darcy 38 | * @author Scott Seligman 39 | * @since 1.5 40 | */ 41 | @Deprecated 42 | @SuppressWarnings("deprecation") 43 | public interface EnumConstantDeclaration extends FieldDeclaration { 44 | /** 45 | * {@inheritDoc} 46 | */ 47 | EnumDeclaration getDeclaringType(); 48 | } 49 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/mirror/declaration/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | /** 27 | * Interfaces used to model program element declarations. A 28 | * declaration is represented by the appropriate subinterface of 29 | * {@link openjdk7.com.sun.mirror.declaration.Declaration}, and an annotation 30 | * is represented as an {@link 31 | * openjdk7.com.sun.mirror.declaration.AnnotationMirror}. 32 | * 33 | *

The {@code apt} tool and its associated API have been superseded 34 | * by the standardized annotation processing API. The replacement for 35 | * the functionality in this package is {@link 36 | * javax.lang.model.element}. 37 | * 38 | * @since 1.5 39 | */ 40 | package openjdk7.com.sun.mirror.declaration; 41 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/mirror/type/AnnotationType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.mirror.type; 27 | 28 | 29 | import openjdk7.com.sun.mirror.declaration.AnnotationTypeDeclaration; 30 | 31 | 32 | /** 33 | * Represents an annotation type. 34 | * 35 | * @deprecated All components of this API have been superseded by the 36 | * standardized annotation processing API. The replacement for the 37 | * functionality of this interface is included in {@link 38 | * javax.lang.model.type.DeclaredType}. 39 | * 40 | * @author Joseph D. Darcy 41 | * @author Scott Seligman 42 | * @since 1.5 43 | */ 44 | @Deprecated 45 | @SuppressWarnings("deprecation") 46 | public interface AnnotationType extends InterfaceType { 47 | 48 | /** 49 | * {@inheritDoc} 50 | */ 51 | AnnotationTypeDeclaration getDeclaration(); 52 | } 53 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/mirror/type/EnumType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.mirror.type; 27 | 28 | 29 | import openjdk7.com.sun.mirror.declaration.EnumDeclaration; 30 | 31 | 32 | /** 33 | * Represents an enum type. 34 | * 35 | * @deprecated All components of this API have been superseded by the 36 | * standardized annotation processing API. The replacement for the 37 | * functionality of this interface is included in {@link 38 | * javax.lang.model.type.DeclaredType}. 39 | * 40 | * @author Joseph D. Darcy 41 | * @author Scott Seligman 42 | * @since 1.5 43 | */ 44 | @Deprecated 45 | @SuppressWarnings("deprecation") 46 | public interface EnumType extends ClassType { 47 | 48 | /** 49 | * {@inheritDoc} 50 | */ 51 | EnumDeclaration getDeclaration(); 52 | } 53 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/mirror/type/ReferenceType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.mirror.type; 27 | 28 | 29 | /** 30 | * Represents a reference type. 31 | * These include class and interface types, array types, and type variables. 32 | * 33 | * @deprecated All components of this API have been superseded by the 34 | * standardized annotation processing API. The replacement for the 35 | * functionality of this interface is {@link 36 | * javax.lang.model.type.ReferenceType}. 37 | * 38 | * @author Joseph D. Darcy 39 | * @author Scott Seligman 40 | * @since 1.5 41 | */ 42 | @Deprecated 43 | @SuppressWarnings("deprecation") 44 | public interface ReferenceType extends TypeMirror { 45 | } 46 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/mirror/type/VoidType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.mirror.type; 27 | 28 | 29 | import openjdk7.com.sun.mirror.declaration.MethodDeclaration; 30 | 31 | 32 | /** 33 | * A pseudo-type representing the type of void. 34 | * 35 | * @author Joseph D. Darcy 36 | * @author Scott Seligman 37 | * 38 | * @deprecated All components of this API have been superseded by the 39 | * standardized annotation processing API. The replacement for the 40 | * functionality of this interface is included in {@link 41 | * javax.lang.model.type.NoType}. 42 | * 43 | * @see MethodDeclaration#getReturnType() 44 | * @since 1.5 45 | */ 46 | @Deprecated 47 | @SuppressWarnings("deprecation") 48 | public interface VoidType extends TypeMirror { 49 | } 50 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/mirror/type/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | /** 27 | * Interfaces used to model types. A type is represented by the 28 | * appropriate subinterface of {@link openjdk7.com.sun.mirror.type.TypeMirror}. 29 | * 30 | *

The {@code apt} tool and its associated API have been 31 | * superseded by the standardized annotation processing API. The 32 | * replacement for the functionality in this package is {@link 33 | * javax.lang.model.type}. 34 | * 35 | * @since 1.5 36 | */ 37 | package openjdk7.com.sun.mirror.type; 38 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/mirror/util/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | /** 27 | * Utilities to assist in the processing of {@linkplain 28 | * openjdk7.com.sun.mirror.declaration declarations} and {@linkplain 29 | * openjdk7.com.sun.mirror.type types}. 30 | * 31 | *

The {@code apt} tool and its associated API have been superseded 32 | * by the standardized annotation processing API. The replacement for 33 | * the functionality in this package is {@link javax.lang.model.util}. 34 | * 35 | * @since 1.5 36 | */ 37 | package openjdk7.com.sun.mirror.util; 38 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/source/tree/AnnotationTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.source.tree; 27 | 28 | import java.util.List; 29 | 30 | /** 31 | * A tree node for an annotation. 32 | * 33 | * For example: 34 | *

35 |  *    {@code @}annotationType
36 |  *    {@code @}annotationType ( arguments )
37 |  * 
38 | * 39 | * @jls section 9.7 40 | * 41 | * @author Peter von der Ahé 42 | * @author Jonathan Gibbons 43 | * @since 1.6 44 | */ 45 | public interface AnnotationTree extends ExpressionTree { 46 | Tree getAnnotationType(); 47 | List getArguments(); 48 | } 49 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/source/tree/ArrayAccessTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.source.tree; 27 | 28 | /** 29 | * A tree node for an array access expression. 30 | * 31 | * For example: 32 | *
33 |  *   expression [ index ]
34 |  * 
35 | * 36 | * @jls section 15.13 37 | * 38 | * @author Peter von der Ahé 39 | * @author Jonathan Gibbons 40 | * @since 1.6 41 | */ 42 | public interface ArrayAccessTree extends ExpressionTree { 43 | ExpressionTree getExpression(); 44 | ExpressionTree getIndex(); 45 | } 46 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/source/tree/ArrayTypeTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.source.tree; 27 | 28 | /** 29 | * A tree node for an array type. 30 | * 31 | * For example: 32 | *
33 |  *   type []
34 |  * 
35 | * 36 | * @jls section 10.1 37 | * 38 | * @author Peter von der Ahé 39 | * @author Jonathan Gibbons 40 | * @since 1.6 41 | */ 42 | public interface ArrayTypeTree extends Tree { 43 | Tree getType(); 44 | } 45 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/source/tree/AssertTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.source.tree; 27 | 28 | /** 29 | * A tree node for an 'assert' statement. 30 | * 31 | * For example: 32 | *
33 |  *   assert condition ;
34 |  *
35 |  *   assert condition : detail ;
36 |  * 
37 | * 38 | * @jls section 14.10 39 | * 40 | * @author Peter von der Ahé 41 | * @author Jonathan Gibbons 42 | * @since 1.6 43 | */ 44 | public interface AssertTree extends StatementTree { 45 | ExpressionTree getCondition(); 46 | ExpressionTree getDetail(); 47 | } 48 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/source/tree/AssignmentTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.source.tree; 27 | 28 | /** 29 | * A tree node for an assignment expression. 30 | * 31 | * For example: 32 | *
33 |  *   variable = expression
34 |  * 
35 | * 36 | * @jls section 15.26.1 37 | * 38 | * @author Peter von der Ahé 39 | * @author Jonathan Gibbons 40 | * @since 1.6 41 | */ 42 | public interface AssignmentTree extends ExpressionTree { 43 | ExpressionTree getVariable(); 44 | ExpressionTree getExpression(); 45 | } 46 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/source/tree/BinaryTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.source.tree; 27 | 28 | /** 29 | * A tree node for a binary expression. 30 | * Use {@link #getKind getKind} to determine the kind of operator. 31 | * 32 | * For example: 33 | *
34 |  *   leftOperand operator rightOperand
35 |  * 
36 | * 37 | * @jls sections 15.17 to 15.24 38 | * 39 | * @author Peter von der Ahé 40 | * @author Jonathan Gibbons 41 | * @since 1.6 42 | */ 43 | public interface BinaryTree extends ExpressionTree { 44 | ExpressionTree getLeftOperand(); 45 | ExpressionTree getRightOperand(); 46 | } 47 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/source/tree/BlockTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.source.tree; 27 | 28 | import java.util.List; 29 | 30 | /** 31 | * A tree node for a statement block. 32 | * 33 | * For example: 34 | *
35 |  *   { }
36 |  *
37 |  *   { statements }
38 |  *
39 |  *   static { statements }
40 |  * 
41 | * 42 | * @jls section 14.2 43 | * 44 | * @author Peter von der Ahé 45 | * @author Jonathan Gibbons 46 | * @since 1.6 47 | */ 48 | public interface BlockTree extends StatementTree { 49 | boolean isStatic(); 50 | List getStatements(); 51 | } 52 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/source/tree/BreakTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.source.tree; 27 | 28 | import javax.lang.model.element.Name; 29 | 30 | /** 31 | * A tree node for a 'break' statement. 32 | * 33 | * For example: 34 | *
35 |  *   break;
36 |  *
37 |  *   break label ;
38 |  * 
39 | * 40 | * @jls section 14.15 41 | * 42 | * @author Peter von der Ahé 43 | * @author Jonathan Gibbons 44 | * @since 1.6 45 | */ 46 | public interface BreakTree extends StatementTree { 47 | Name getLabel(); 48 | } 49 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/source/tree/CaseTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.source.tree; 27 | 28 | import java.util.List; 29 | 30 | /** 31 | * A tree node for a 'case' in a 'switch' statement. 32 | * 33 | * For example: 34 | *
35 |  *   case expression :
36 |  *       statements
37 |  *
38 |  *   default :
39 |  *       statements
40 |  * 
41 | * 42 | * @jls section 14.11 43 | * 44 | * @author Peter von der Ahé 45 | * @author Jonathan Gibbons 46 | * @since 1.6 47 | */ 48 | public interface CaseTree extends Tree { 49 | /** 50 | * @return null if and only if this Case is {@code default:} 51 | */ 52 | ExpressionTree getExpression(); 53 | List getStatements(); 54 | } 55 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/source/tree/CatchTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.source.tree; 27 | 28 | /** 29 | * A tree node for a 'catch' block in a 'try' statement. 30 | * 31 | * For example: 32 | *
33 |  *   catch ( parameter )
34 |  *       block
35 |  * 
36 | * 37 | * @jls section 14.20 38 | * 39 | * @author Peter von der Ahé 40 | * @author Jonathan Gibbons 41 | * @since 1.6 42 | */ 43 | public interface CatchTree extends Tree { 44 | VariableTree getParameter(); 45 | BlockTree getBlock(); 46 | } 47 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/source/tree/CompoundAssignmentTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.source.tree; 27 | 28 | /** 29 | * A tree node for compound assignment operator. 30 | * Use {@link #getKind getKind} to determine the kind of operator. 31 | * 32 | * For example: 33 | *
34 |  *   variable operator expression
35 |  * 
36 | * 37 | * @jls section 15.26.2 38 | * 39 | * @author Peter von der Ahé 40 | * @author Jonathan Gibbons 41 | * @since 1.6 42 | */ 43 | public interface CompoundAssignmentTree extends ExpressionTree { 44 | ExpressionTree getVariable(); 45 | ExpressionTree getExpression(); 46 | } 47 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/source/tree/ConditionalExpressionTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.source.tree; 27 | 28 | /** 29 | * A tree node for the conditional operator ? :. 30 | * 31 | * For example: 32 | *
33 |  *   condition ? trueExpression : falseExpression
34 |  * 
35 | * 36 | * @jls section 15.25 37 | * 38 | * @author Peter von der Ahé 39 | * @author Jonathan Gibbons 40 | * @since 1.6 41 | */ 42 | public interface ConditionalExpressionTree extends ExpressionTree { 43 | ExpressionTree getCondition(); 44 | ExpressionTree getTrueExpression(); 45 | ExpressionTree getFalseExpression(); 46 | } 47 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/source/tree/ContinueTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.source.tree; 27 | 28 | import javax.lang.model.element.Name; 29 | 30 | /** 31 | * A tree node for a 'continue' statement. 32 | * 33 | * For example: 34 | *
35 |  *   continue;
36 |  *   continue label ;
37 |  * 
38 | * 39 | * @jls section 14.16 40 | * 41 | * @author Peter von der Ahé 42 | * @author Jonathan Gibbons 43 | * @since 1.6 44 | */ 45 | public interface ContinueTree extends StatementTree { 46 | Name getLabel(); 47 | } 48 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/source/tree/DoWhileLoopTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.source.tree; 27 | 28 | /** 29 | * A tree node for a 'do' statement. 30 | * 31 | * For example: 32 | *
33 |  *   do
34 |  *       statement
35 |  *   while ( expression );
36 |  * 
37 | * 38 | * @jls section 14.13 39 | * 40 | * @author Peter von der Ahé 41 | * @author Jonathan Gibbons 42 | * @since 1.6 43 | */ 44 | public interface DoWhileLoopTree extends StatementTree { 45 | ExpressionTree getCondition(); 46 | StatementTree getStatement(); 47 | } 48 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/source/tree/EmptyStatementTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.source.tree; 27 | 28 | /** 29 | * A tree node for an empty (skip) statement. 30 | * 31 | * For example: 32 | *
33 |  *    ;
34 |  * 
35 | * 36 | * @jls section 14.6 37 | * 38 | * @author Peter von der Ahé 39 | * @author Jonathan Gibbons 40 | * @since 1.6 41 | */ 42 | public interface EmptyStatementTree extends StatementTree {} 43 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/source/tree/EnhancedForLoopTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.source.tree; 27 | 28 | /** 29 | * A tree node for an "enhanced" 'for' loop statement. 30 | * 31 | * For example: 32 | *
33 |  *   for ( variable : expression )
34 |  *       statement
35 |  * 
36 | * 37 | * @jls section 14.14.2 38 | * 39 | * @author Peter von der Ahé 40 | * @author Jonathan Gibbons 41 | * @since 1.6 42 | */ 43 | public interface EnhancedForLoopTree extends StatementTree { 44 | VariableTree getVariable(); 45 | ExpressionTree getExpression(); 46 | StatementTree getStatement(); 47 | } 48 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/source/tree/ErroneousTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.source.tree; 27 | 28 | import java.util.List; 29 | 30 | /** 31 | * A tree node to stand in for a malformed expression. 32 | * 33 | * @author Peter von der Ahé 34 | * @author Jonathan Gibbons 35 | * @since 1.6 36 | */ 37 | public interface ErroneousTree extends ExpressionTree { 38 | List getErrorTrees(); 39 | } 40 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/source/tree/ExpressionStatementTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.source.tree; 27 | 28 | /** 29 | * A tree node for an expression statement. 30 | * 31 | * For example: 32 | *
33 |  *   expression ;
34 |  * 
35 | * 36 | * @jls section 14.8 37 | * 38 | * @author Peter von der Ahé 39 | * @author Jonathan Gibbons 40 | * @since 1.6 41 | */ 42 | public interface ExpressionStatementTree extends StatementTree { 43 | ExpressionTree getExpression(); 44 | } 45 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/source/tree/ExpressionTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.source.tree; 27 | 28 | /** 29 | * A tree node used as the base class for the different types of 30 | * expressions. 31 | * 32 | * @jls chapter 15 33 | * 34 | * @author Peter von der Ahé 35 | * @author Jonathan Gibbons 36 | * @since 1.6 37 | */ 38 | public interface ExpressionTree extends Tree {} 39 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/source/tree/ForLoopTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.source.tree; 27 | 28 | import java.util.List; 29 | 30 | /** 31 | * A tree node for a basic 'for' loop statement. 32 | * 33 | * For example: 34 | *
35 |  *   for ( initializer ; condition ; update )
36 |  *       statement
37 |  * 
38 | * 39 | * @jls section 14.14.1 40 | * 41 | * @author Peter von der Ahé 42 | * @author Jonathan Gibbons 43 | * @since 1.6 44 | */ 45 | public interface ForLoopTree extends StatementTree { 46 | List getInitializer(); 47 | ExpressionTree getCondition(); 48 | List getUpdate(); 49 | StatementTree getStatement(); 50 | } 51 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/source/tree/IdentifierTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.source.tree; 27 | 28 | import javax.lang.model.element.Name; 29 | 30 | /** 31 | * A tree node for an identifier expression. 32 | * 33 | * For example: 34 | *
35 |  *   name
36 |  * 
37 | * 38 | * @jls section 6.5.6.1 39 | * 40 | * @author Peter von der Ahé 41 | * @author Jonathan Gibbons 42 | * @since 1.6 43 | */ 44 | public interface IdentifierTree extends ExpressionTree { 45 | Name getName(); 46 | } 47 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/source/tree/IfTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.source.tree; 27 | 28 | /** 29 | * A tree node for an 'if' statement. 30 | * 31 | * For example: 32 | *
33 |  *   if ( condition )
34 |  *      thenStatement
35 |  *
36 |  *   if ( condition )
37 |  *       thenStatement
38 |  *   else
39 |  *       elseStatement
40 |  * 
41 | * 42 | * @jls section 14.9 43 | * 44 | * @author Peter von der Ahé 45 | * @author Jonathan Gibbons 46 | * @since 1.6 47 | */ 48 | public interface IfTree extends StatementTree { 49 | ExpressionTree getCondition(); 50 | StatementTree getThenStatement(); 51 | /** 52 | * @return null if this if statement has no else branch. 53 | */ 54 | StatementTree getElseStatement(); 55 | } 56 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/source/tree/ImportTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.source.tree; 27 | 28 | /** 29 | * A tree node for an import statement. 30 | * 31 | * For example: 32 | *
33 |  *   import qualifiedIdentifier ;
34 |  *
35 |  *   static import qualifiedIdentifier ;
36 |  * 
37 | * 38 | * @jls section 7.5 39 | * 40 | * @author Peter von der Ahé 41 | * @author Jonathan Gibbons 42 | * @since 1.6 43 | */ 44 | public interface ImportTree extends Tree { 45 | boolean isStatic(); 46 | /** 47 | * @return a qualified identifier ending in "*" if and only if 48 | * this is an import-on-demand. 49 | */ 50 | Tree getQualifiedIdentifier(); 51 | } 52 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/source/tree/InstanceOfTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.source.tree; 27 | 28 | /** 29 | * A tree node for an 'instanceof' expression. 30 | * 31 | * For example: 32 | *
33 |  *   expression instanceof type
34 |  * 
35 | * 36 | * @jls section 15.20.2 37 | * 38 | * @author Peter von der Ahé 39 | * @author Jonathan Gibbons 40 | * @since 1.6 41 | */ 42 | public interface InstanceOfTree extends ExpressionTree { 43 | ExpressionTree getExpression(); 44 | Tree getType(); 45 | } 46 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/source/tree/LabeledStatementTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.source.tree; 27 | 28 | import javax.lang.model.element.Name; 29 | 30 | /** 31 | * A tree node for a labeled statement. 32 | * 33 | * For example: 34 | *
35 |  *   label : statement
36 |  * 
37 | * 38 | * @jls section 14.7 39 | * 40 | * @author Peter von der Ahé 41 | * @author Jonathan Gibbons 42 | * @since 1.6 43 | */ 44 | public interface LabeledStatementTree extends StatementTree { 45 | Name getLabel(); 46 | StatementTree getStatement(); 47 | } 48 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/source/tree/LiteralTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.source.tree; 27 | 28 | /** 29 | * A tree node for a literal expression. 30 | * Use {@link #getKind getKind} to determine the kind of literal. 31 | * 32 | * For example: 33 | *
34 |  *   value
35 |  * 
36 | * 37 | * @jls section 15.28 38 | * 39 | * @author Peter von der Ahé 40 | * @author Jonathan Gibbons 41 | * @since 1.6 42 | */ 43 | public interface LiteralTree extends ExpressionTree { 44 | Object getValue(); 45 | } 46 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/source/tree/MemberSelectTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.source.tree; 27 | 28 | import javax.lang.model.element.Name; 29 | 30 | /** 31 | * A tree node for a member access expression. 32 | * 33 | * For example: 34 | *
35 |  *   expression . identifier
36 |  * 
37 | * 38 | * @jls sections 6.5, 15.11,and 15.12 39 | * 40 | * @author Peter von der Ahé 41 | * @author Jonathan Gibbons 42 | * @since 1.6 43 | */ 44 | public interface MemberSelectTree extends ExpressionTree { 45 | ExpressionTree getExpression(); 46 | Name getIdentifier(); 47 | } 48 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/source/tree/MethodInvocationTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.source.tree; 27 | 28 | import java.util.List; 29 | 30 | /** 31 | * A tree node for a method invocation expression. 32 | * 33 | * For example: 34 | *
35 |  *   identifier ( arguments )
36 |  *
37 |  *   this . typeArguments identifier ( arguments )
38 |  * 
39 | * 40 | * @jls section 15.12 41 | * 42 | * @author Peter von der Ahé 43 | * @author Jonathan Gibbons 44 | * @since 1.6 45 | */ 46 | public interface MethodInvocationTree extends ExpressionTree { 47 | List getTypeArguments(); 48 | ExpressionTree getMethodSelect(); 49 | List getArguments(); 50 | } 51 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/source/tree/ModifiersTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.source.tree; 27 | 28 | import java.util.List; 29 | import java.util.Set; 30 | import javax.lang.model.element.Modifier; 31 | 32 | /** 33 | * A tree node for the modifiers, including annotations, for a declaration. 34 | * 35 | * For example: 36 | *
37 |  *   flags
38 |  *
39 |  *   flags annotations
40 |  * 
41 | * 42 | * @jls sections 8.1.1, 8.3.1, 8.4.3, 8.5.1, 8.8.3, 9.1.1, and 9.7 43 | * 44 | * @author Peter von der Ahé 45 | * @author Jonathan Gibbons 46 | * @since 1.6 47 | */ 48 | public interface ModifiersTree extends Tree { 49 | Set getFlags(); 50 | List getAnnotations(); 51 | } 52 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/source/tree/NewArrayTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.source.tree; 27 | 28 | import java.util.List; 29 | 30 | /** 31 | * A tree node for an expression to create a new instance of an array. 32 | * 33 | * For example: 34 | *
35 |  *   new type dimensions initializers
36 |  *
37 |  *   new type dimensions [ ] initializers
38 |  * 
39 | * 40 | * @jls section 15.10 41 | * 42 | * @author Peter von der Ahé 43 | * @author Jonathan Gibbons 44 | * @since 1.6 45 | */ 46 | public interface NewArrayTree extends ExpressionTree { 47 | Tree getType(); 48 | List getDimensions(); 49 | List getInitializers(); 50 | } 51 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/source/tree/ParameterizedTypeTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.source.tree; 27 | 28 | import java.util.List; 29 | 30 | /** 31 | * A tree node for a type expression involving type parameters. 32 | * 33 | * For example: 34 | *
35 |  *   type < typeArguments >
36 |  * 
37 | * 38 | * @jls section 4.5.1 39 | * 40 | * @author Peter von der Ahé 41 | * @author Jonathan Gibbons 42 | * @since 1.6 43 | */ 44 | public interface ParameterizedTypeTree extends Tree { 45 | Tree getType(); 46 | List getTypeArguments(); 47 | } 48 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/source/tree/ParenthesizedTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.source.tree; 27 | 28 | /** 29 | * A tree node for a parenthesized expression. Note: parentheses 30 | * not be preserved by the parser. 31 | * 32 | * For example: 33 | *
34 |  *   ( expression )
35 |  * 
36 | * 37 | * @jls section 15.8.5 38 | * 39 | * @author Peter von der Ahé 40 | * @author Jonathan Gibbons 41 | * @since 1.6 42 | */ 43 | public interface ParenthesizedTree extends ExpressionTree { 44 | ExpressionTree getExpression(); 45 | } 46 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/source/tree/PrimitiveTypeTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.source.tree; 27 | 28 | import javax.lang.model.type.TypeKind; 29 | 30 | /** 31 | * A tree node for a primitive type. 32 | * 33 | * For example: 34 | *
35 |  *   primitiveTypeKind
36 |  * 
37 | * 38 | * @jls section 4.2 39 | * 40 | * @author Peter von der Ahé 41 | * @author Jonathan Gibbons 42 | * @since 1.6 43 | */ 44 | public interface PrimitiveTypeTree extends Tree { 45 | TypeKind getPrimitiveTypeKind(); 46 | } 47 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/source/tree/ReturnTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.source.tree; 27 | 28 | /** 29 | * A tree node for a 'return' statement. 30 | * 31 | * For example: 32 | *
33 |  *   return;
34 |  *   return expression;
35 |  * 
36 | * 37 | * @jls section 14.17 38 | * 39 | * @author Peter von der Ahé 40 | * @author Jonathan Gibbons 41 | * @since 1.6 42 | */ 43 | public interface ReturnTree extends StatementTree { 44 | ExpressionTree getExpression(); 45 | } 46 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/source/tree/StatementTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.source.tree; 27 | 28 | /** 29 | * A tree node used as the base class for the different kinds of 30 | * statements. 31 | * 32 | * @jls chapter 14 33 | * 34 | * @author Peter von der Ahé 35 | * @author Jonathan Gibbons 36 | * @since 1.6 37 | */ 38 | public interface StatementTree extends Tree {} 39 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/source/tree/SwitchTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.source.tree; 27 | 28 | import java.util.List; 29 | 30 | /** 31 | * A tree node for a 'switch' statement. 32 | * 33 | * For example: 34 | *
35 |  *   switch ( expression ) {
36 |  *     cases
37 |  *   }
38 |  * 
39 | * 40 | * @jls section 14.11 41 | * 42 | * @author Peter von der Ahé 43 | * @author Jonathan Gibbons 44 | * @since 1.6 45 | */ 46 | public interface SwitchTree extends StatementTree { 47 | ExpressionTree getExpression(); 48 | List getCases(); 49 | } 50 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/source/tree/SynchronizedTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.source.tree; 27 | 28 | /** 29 | * A tree node for a 'synchronized' statement. 30 | * 31 | * For example: 32 | *
33 |  *   synchronized ( expression )
34 |  *       block
35 |  * 
36 | * 37 | * @jls section 14.19 38 | * 39 | * @author Peter von der Ahé 40 | * @author Jonathan Gibbons 41 | * @since 1.6 42 | */ 43 | public interface SynchronizedTree extends StatementTree { 44 | ExpressionTree getExpression(); 45 | BlockTree getBlock(); 46 | } 47 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/source/tree/ThrowTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.source.tree; 27 | 28 | /** 29 | * A tree node for a 'throw' statement. 30 | * 31 | * For example: 32 | *
33 |  *   throw expression;
34 |  * 
35 | * 36 | * @jls section 14.18 37 | * 38 | * @author Peter von der Ahé 39 | * @author Jonathan Gibbons 40 | * @since 1.6 41 | */ 42 | public interface ThrowTree extends StatementTree { 43 | ExpressionTree getExpression(); 44 | } 45 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/source/tree/TryTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.source.tree; 27 | 28 | import java.util.List; 29 | 30 | /** 31 | * A tree node for a 'try' statement. 32 | * 33 | * For example: 34 | *
35 |  *   try
36 |  *       block
37 |  *   catches
38 |  *   finally
39 |  *       finallyBlock
40 |  * 
41 | * 42 | * @jls section 14.20 43 | * 44 | * @author Peter von der Ahé 45 | * @author Jonathan Gibbons 46 | * @since 1.6 47 | */ 48 | public interface TryTree extends StatementTree { 49 | BlockTree getBlock(); 50 | List getCatches(); 51 | BlockTree getFinallyBlock(); 52 | List getResources(); 53 | } 54 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/source/tree/TypeCastTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.source.tree; 27 | 28 | /** 29 | * A tree node for a type cast expression. 30 | * 31 | * For example: 32 | *
33 |  *   ( type ) expression
34 |  * 
35 | * 36 | * @jls section 15.16 37 | * 38 | * @author Peter von der Ahé 39 | * @author Jonathan Gibbons 40 | * @since 1.6 41 | */ 42 | public interface TypeCastTree extends ExpressionTree { 43 | Tree getType(); 44 | ExpressionTree getExpression(); 45 | } 46 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/source/tree/TypeParameterTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, 2011, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.source.tree; 27 | 28 | import java.util.List; 29 | import javax.lang.model.element.Name; 30 | 31 | /** 32 | * A tree node for a type parameter. 33 | * 34 | * For example: 35 | *
36 |  *   name
37 |  *
38 |  *   name extends bounds
39 |  * 
40 | * 41 | * @jls section 4.4 42 | * 43 | * @author Peter von der Ahé 44 | * @author Jonathan Gibbons 45 | * @since 1.6 46 | */ 47 | public interface TypeParameterTree extends Tree { 48 | Name getName(); 49 | List getBounds(); 50 | } 51 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/source/tree/UnaryTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.source.tree; 27 | 28 | /** 29 | * A tree node for postfix and unary expressions. 30 | * Use {@link #getKind getKind} to determine the kind of operator. 31 | * 32 | * For example: 33 | *
34 |  *   operator expression
35 |  *
36 |  *   expression operator
37 |  * 
38 | * 39 | * @jls sections 15.14 and 15.15 40 | * 41 | * @author Peter von der Ahé 42 | * @author Jonathan Gibbons 43 | * @since 1.6 44 | */ 45 | public interface UnaryTree extends ExpressionTree { 46 | ExpressionTree getExpression(); 47 | } 48 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/source/tree/UnionTypeTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.source.tree; 27 | 28 | import java.util.List; 29 | 30 | /** 31 | * A tree node for a union type expression in a multicatch var declaration. 32 | * 33 | * @author Maurizio Cimadamore 34 | * 35 | * @since 1.7 36 | */ 37 | public interface UnionTypeTree extends Tree { 38 | List getTypeAlternatives(); 39 | } 40 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/source/tree/VariableTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.source.tree; 27 | 28 | import javax.lang.model.element.Name; 29 | 30 | /** 31 | * A tree node for a variable declaration. 32 | * 33 | * For example: 34 | *
35 |  *   modifiers type name initializer ;
36 |  * 
37 | * 38 | * @jls sections 8.3 and 14.4 39 | * 40 | * @author Peter von der Ahé 41 | * @author Jonathan Gibbons 42 | * @since 1.6 43 | */ 44 | public interface VariableTree extends StatementTree { 45 | ModifiersTree getModifiers(); 46 | Name getName(); 47 | Tree getType(); 48 | ExpressionTree getInitializer(); 49 | } 50 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/source/tree/WhileLoopTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.source.tree; 27 | 28 | /** 29 | * A tree node for a 'while' loop statement. 30 | * 31 | * For example: 32 | *
33 |  *   while ( condition )
34 |  *     statement
35 |  * 
36 | * 37 | * 38 | * @jls section 14.12 39 | * 40 | * @author Peter von der Ahé 41 | * @author Jonathan Gibbons 42 | * @since 1.6 43 | */ 44 | public interface WhileLoopTree extends StatementTree { 45 | ExpressionTree getCondition(); 46 | StatementTree getStatement(); 47 | } 48 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/source/tree/WildcardTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.source.tree; 27 | 28 | /** 29 | * A tree node for a wildcard type argument. 30 | * Use {@link #getKind getKind} to determine the kind of bound. 31 | * 32 | * For example: 33 | *
34 |  *   ?
35 |  *
36 |  *   ? extends bound
37 |  *
38 |  *   ? super bound
39 |  * 
40 | * 41 | * @jls section 4.5.1 42 | * 43 | * @author Peter von der Ahé 44 | * @author Jonathan Gibbons 45 | * @since 1.6 46 | */ 47 | public interface WildcardTree extends Tree { 48 | Tree getBound(); 49 | } 50 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/source/tree/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | /** 27 | * Provides interfaces to represent source code as abstract syntax 28 | * trees (AST). 29 | * 30 | * @author Peter von der Ahé 31 | * @author Jonathan Gibbons 32 | * @since 1.6 33 | */ 34 | package openjdk7.com.sun.source.tree; 35 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/source/util/TaskListener.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.source.util; 27 | 28 | 29 | /** 30 | * Provides a listener to monitor the activity of the JDK Java Compiler, javac. 31 | * 32 | * @author Jonathan Gibbons 33 | * @since 1.6 34 | */ 35 | public interface TaskListener 36 | { 37 | public void started(TaskEvent e); 38 | 39 | public void finished(TaskEvent e); 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/source/util/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | /** 27 | * Provides utilities for operations on abstract syntax trees (AST). 28 | * 29 | * @author Peter von der Ahé 30 | * @author Jonathan Gibbons 31 | * @since 1.6 32 | */ 33 | package openjdk7.com.sun.source.util; 34 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/tools/apt/comp/AnnotationProcessingError.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2004, 2009, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.tools.apt.comp; 27 | 28 | public class AnnotationProcessingError extends Error { 29 | private static final long serialVersionUID = 3279196183341719287L; 30 | AnnotationProcessingError(Throwable cause) { 31 | super(cause); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/tools/apt/comp/UsageMessageNeededException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2004, 2009, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.tools.apt.comp; 27 | 28 | 29 | public class UsageMessageNeededException extends RuntimeException { 30 | private static final long serialVersionUID = -3265159608992825840L; 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/tools/apt/mirror/apt/RoundCompleteEventImpl.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2004, 2009, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.tools.apt.mirror.apt; 27 | 28 | import openjdk7.com.sun.mirror.apt.AnnotationProcessorEnvironment; 29 | import openjdk7.com.sun.mirror.apt.RoundCompleteEvent; 30 | import openjdk7.com.sun.mirror.apt.RoundState; 31 | 32 | @SuppressWarnings("deprecation") 33 | public class RoundCompleteEventImpl extends RoundCompleteEvent { 34 | private static final long serialVersionUID = 7067621446720784300L; 35 | 36 | public RoundCompleteEventImpl(AnnotationProcessorEnvironment source, 37 | RoundState rs) { 38 | super(source, rs); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/tools/apt/mirror/type/VoidTypeImpl.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.tools.apt.mirror.type; 27 | 28 | 29 | import openjdk7.com.sun.mirror.type.VoidType; 30 | import openjdk7.com.sun.mirror.util.TypeVisitor; 31 | import openjdk7.com.sun.tools.apt.mirror.AptEnv; 32 | 33 | 34 | /** 35 | * Implementation of VoidType. 36 | */ 37 | @SuppressWarnings("deprecation") 38 | class VoidTypeImpl extends TypeMirrorImpl implements VoidType { 39 | 40 | VoidTypeImpl(AptEnv env) { 41 | super(env, env.symtab.voidType); 42 | } 43 | 44 | /** 45 | * {@inheritDoc} 46 | */ 47 | public void accept(TypeVisitor v) { 48 | v.visitVoidType(this); 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/tools/classfile/AttributeException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.tools.classfile; 27 | 28 | /* 29 | *

This is NOT part of any supported API. 30 | * If you write code that depends on this, you do so at your own risk. 31 | * This code and its internal interfaces are subject to change or 32 | * deletion without notice. 33 | */ 34 | public class AttributeException extends Exception { 35 | private static final long serialVersionUID = -4231486387714867770L; 36 | AttributeException() { } 37 | 38 | AttributeException(String msg) { 39 | super(msg); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/tools/classfile/ConstantPoolException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | 27 | package openjdk7.com.sun.tools.classfile; 28 | 29 | /* 30 | *

This is NOT part of any supported API. 31 | * If you write code that depends on this, you do so at your own risk. 32 | * This code and its internal interfaces are subject to change or 33 | * deletion without notice. 34 | */ 35 | public class ConstantPoolException extends Exception { 36 | private static final long serialVersionUID = -2324397349644754565L; 37 | ConstantPoolException(int index) { 38 | this.index = index; 39 | } 40 | 41 | public final int index; 42 | } 43 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/tools/classfile/DescriptorException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | 27 | package openjdk7.com.sun.tools.classfile; 28 | 29 | /* 30 | *

This is NOT part of any supported API. 31 | * If you write code that depends on this, you do so at your own risk. 32 | * This code and its internal interfaces are subject to change or 33 | * deletion without notice. 34 | */ 35 | public class DescriptorException extends Exception { 36 | private static final long serialVersionUID = 2411890273788901032L; 37 | } 38 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/tools/classfile/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | A minimalist library to read and write class files into objects closely 9 | based on the corresponding definitions in 10 | The Java™ Virtual Machine Specification (JVMS). 11 | 12 | 13 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/tools/doclets/formats/html/markup/package.html: -------------------------------------------------------------------------------- 1 | 25 | 26 | 27 | 28 | openjdk7.com.sun.tools.doclets.formats.html.markup package 29 | 30 | This package contains classes that write HTML markup tags. 31 | 32 | 33 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/tools/doclets/formats/html/package.html: -------------------------------------------------------------------------------- 1 | 25 | 26 | 27 | 28 | openjdk7.com.sun.tools.doclets.formats.html package 29 | 30 | 31 | This is the default doclet provided with JDK that produces Javadoc's 32 | default HTML-formatted API output. For more documentation 33 | on this doclet, please refer to the link below. 34 | 35 | @see 36 | http://www.java.sun.com/javadoc/standard-doclet.html 37 | 38 | 39 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/tools/doclets/internal/toolkit/NestedClassWriter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.tools.doclets.internal.toolkit; 27 | 28 | import java.io.*; 29 | 30 | /** 31 | * The interface for writing class output. 32 | * 33 | * This code is not part of an API. 34 | * It is implementation that is subject to change. 35 | * Do not use it as an API 36 | * 37 | * @author Jamie Ho 38 | * @author Bhavesh Patel (Modified) 39 | * @since 1.5 40 | */ 41 | 42 | public interface NestedClassWriter { 43 | 44 | /** 45 | * Close the writer. 46 | */ 47 | public void close() throws IOException; 48 | } 49 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/tools/doclets/internal/toolkit/builders/package.html: -------------------------------------------------------------------------------- 1 | 25 | 26 | 27 | 28 | openjdk7.com.sun.tools.doclets.internal.toolkit.builders package 29 | 30 | 31 | This doclet-independent package has a set of classes and 32 | interfaces that are the building blocks for doclets. They 33 | define the basic structure of doclets and make doclet 34 | writing much easier because they provide the content generation 35 | code to be shared among different doclets. Builders only provide 36 | the structure and content of API documentation. 37 | They will not provide any style markup. 38 |

39 | This code is not part of an API. 40 | It is implementation that is subject to change. 41 | Do not use it as an API. 42 | 43 | 44 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/tools/doclets/internal/toolkit/resources/background.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loverdos/javac-openjdk7/c561334fa4e9b3439426bfcc91cc5efbddefabe1/src/main/java/openjdk7/com/sun/tools/doclets/internal/toolkit/resources/background.gif -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/tools/doclets/internal/toolkit/resources/tab.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loverdos/javac-openjdk7/c561334fa4e9b3439426bfcc91cc5efbddefabe1/src/main/java/openjdk7/com/sun/tools/doclets/internal/toolkit/resources/tab.gif -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/tools/doclets/internal/toolkit/resources/titlebar.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loverdos/javac-openjdk7/c561334fa4e9b3439426bfcc91cc5efbddefabe1/src/main/java/openjdk7/com/sun/tools/doclets/internal/toolkit/resources/titlebar.gif -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/tools/doclets/internal/toolkit/resources/titlebar_end.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loverdos/javac-openjdk7/c561334fa4e9b3439426bfcc91cc5efbddefabe1/src/main/java/openjdk7/com/sun/tools/doclets/internal/toolkit/resources/titlebar_end.gif -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/tools/doclets/internal/toolkit/taglets/BaseInlineTaglet.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2001, 2003, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.tools.doclets.internal.toolkit.taglets; 27 | 28 | /** 29 | * An abstract inline taglet that outputs HTML. 30 | * 31 | * This code is not part of an API. 32 | * It is implementation that is subject to change. 33 | * Do not use it as an API 34 | * 35 | * @author Jamie Ho 36 | * @since 1.4 37 | */ 38 | 39 | public abstract class BaseInlineTaglet extends BaseTaglet { 40 | 41 | /** 42 | * Will return true since this is an inline tag. 43 | * @return true since this is an inline tag. 44 | */ 45 | public boolean isInlineTag() { 46 | return true; 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/tools/doclets/internal/toolkit/taglets/DeprecatedTaglet.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.tools.doclets.internal.toolkit.taglets; 27 | 28 | import openjdk7.com.sun.javadoc.*; 29 | 30 | /** 31 | * A taglet that represents the @deprecated tag. 32 | * 33 | * This code is not part of an API. 34 | * It is implementation that is subject to change. 35 | * Do not use it as an API 36 | * 37 | * @author Jamie Ho 38 | * @since 1.5 39 | */ 40 | 41 | public class DeprecatedTaglet extends BaseTaglet{ 42 | 43 | public DeprecatedTaglet() { 44 | name = "deprecated"; 45 | } 46 | 47 | /** 48 | * {@inheritDoc} 49 | */ 50 | public TagletOutput getTagletOutput(Doc holder, TagletWriter writer) { 51 | return writer.deprecatedTagOutput(holder); 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/tools/doclets/internal/toolkit/taglets/ExpertTaglet.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006, 2012 Oracle and/or its affiliates. All rights reserved. 3 | * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. 4 | */ 5 | 6 | package openjdk7.com.sun.tools.doclets.internal.toolkit.taglets; 7 | 8 | import java.util.Map; 9 | import openjdk7.com.sun.tools.doclets.Taglet; 10 | import openjdk7.com.sun.javadoc.Tag; 11 | 12 | public class ExpertTaglet implements Taglet { 13 | 14 | private static final String NAME = "expert"; 15 | private static final String START_TAG = ""; 16 | private static final String END_TAG = ""; 17 | 18 | public boolean inField() { 19 | return true; 20 | } 21 | 22 | public boolean inConstructor() { 23 | return true; 24 | } 25 | 26 | public boolean inMethod() { 27 | return true; 28 | } 29 | 30 | public boolean inOverview() { 31 | return true; 32 | } 33 | 34 | public boolean inPackage() { 35 | return true; 36 | } 37 | 38 | public boolean inType() { 39 | return true; 40 | } 41 | 42 | public boolean isInlineTag() { 43 | return false; 44 | } 45 | 46 | public String getName() { 47 | return NAME; 48 | } 49 | 50 | public static void register(Map map) { 51 | map.remove(NAME); 52 | map.put(NAME, new ExpertTaglet()); 53 | } 54 | 55 | public String toString(Tag tag) { 56 | return (tag.text() == null || tag.text().length() == 0) ? null : 57 | START_TAG + LiteralTaglet.textToString(tag.text()) + END_TAG; 58 | } 59 | 60 | 61 | public String toString(Tag[] tags) { 62 | if (tags == null || tags.length == 0) return null; 63 | 64 | StringBuffer sb = new StringBuffer(START_TAG); 65 | 66 | for(Tag t:tags) { 67 | sb.append(LiteralTaglet.textToString(t.text())); 68 | } 69 | sb.append(END_TAG); 70 | return sb.toString(); 71 | } 72 | 73 | } 74 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/tools/doclets/internal/toolkit/taglets/PropertyGetterTaglet.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2001, 2012, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.tools.doclets.internal.toolkit.taglets; 27 | 28 | /** 29 | * A taglet that adds the initial line of documentation to the JavaFX 30 | * property getters. 31 | * 32 | * This code is not part of an API. 33 | * It is implementation that is subject to change. 34 | * Do not use it as an API 35 | */ 36 | public class PropertyGetterTaglet extends BasePropertyTaglet { 37 | 38 | /** 39 | * Construct a new PropertyGetterTaglet. 40 | */ 41 | public PropertyGetterTaglet () { 42 | name = "propertyGetter"; 43 | } 44 | 45 | @Override 46 | String getText(TagletWriter tagletWriter) { 47 | return tagletWriter.configuration().getText("doclet.PropertyGetter"); 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/tools/doclets/internal/toolkit/util/CommentedMethodFinder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 1999, 2003, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.tools.doclets.internal.toolkit.util; 27 | 28 | import openjdk7.com.sun.javadoc.*; 29 | 30 | /** 31 | * Find a commented method. 32 | * 33 | * This code is not part of an API. 34 | * It is implementation that is subject to change. 35 | * Do not use it as an API 36 | * 37 | */ 38 | public class CommentedMethodFinder extends MethodFinder { 39 | public boolean isCorrectMethod(MethodDoc method) { 40 | return method.inlineTags().length > 0; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/tools/doclets/internal/toolkit/util/DocletAbortException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 1997, 2009, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.tools.doclets.internal.toolkit.util; 27 | 28 | public class DocletAbortException extends RuntimeException { 29 | private static final long serialVersionUID = -9131058909576418984L; 30 | 31 | public DocletAbortException() { 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/tools/doclets/internal/toolkit/util/TaggedMethodFinder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 1999, 2003, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.tools.doclets.internal.toolkit.util; 27 | 28 | import openjdk7.com.sun.javadoc.*; 29 | 30 | /** 31 | * Find a tagged method. 32 | * 33 | * This code is not part of an API. 34 | * It is implementation that is subject to change. 35 | * Do not use it as an API 36 | * 37 | * @author Atul M Dambalkar 38 | */ 39 | public class TaggedMethodFinder extends MethodFinder { 40 | public boolean isCorrectMethod(MethodDoc method) { 41 | return method.paramTags().length + method.tags("return").length + 42 | method.throwsTags().length + method.seeTags().length > 0; 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/tools/doclets/internal/toolkit/util/links/LinkOutput.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.tools.doclets.internal.toolkit.util.links; 27 | 28 | /** 29 | * Stores output of a link. 30 | * 31 | * @author Jamie Ho 32 | * @since 1.5 33 | */ 34 | public interface LinkOutput { 35 | 36 | /** 37 | * Append the given object to the output. 38 | * 39 | * @param o the object to append. 40 | */ 41 | public void append(Object o); 42 | } 43 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/tools/doclets/internal/toolkit/util/links/package.html: -------------------------------------------------------------------------------- 1 | 25 | 26 | 27 | 28 | openjdk7.com.sun.tools.doclets.interal.toolkit.util.links package 29 | 30 | 31 | Provides a factory for constructing links. 32 | 33 | 34 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/tools/doclets/internal/toolkit/util/package.html: -------------------------------------------------------------------------------- 1 | 25 | 26 | 27 | 28 | openjdk7.com.sun.tools.doclets.internal.toolkit.util package 29 | 30 | 31 | This package has utility classes that perform common services required 32 | for API documentation generation. 33 |

34 | This code is not part of an API. 35 | It is implementation that is subject to change. 36 | Do not use it as an API. 37 | 38 | 39 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/tools/doclets/package.html: -------------------------------------------------------------------------------- 1 | 25 | 26 | 27 | 28 | openjdk7.com.sun.tools/doclets package 29 | 30 | 31 | As of JDK version 1.5, replaced by 32 | {@link openjdk7.com.sun.tools.doclets.internal.toolkit.util}. 33 | 34 | 35 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/tools/doclets/standard/Standard.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.tools.doclets.standard; 27 | 28 | import openjdk7.com.sun.javadoc.*; 29 | import openjdk7.com.sun.tools.doclets.formats.html.*; 30 | 31 | 32 | public class Standard { 33 | 34 | public static int optionLength(String option) { 35 | return HtmlDoclet.optionLength(option); 36 | } 37 | 38 | public static boolean start(RootDoc root) { 39 | return HtmlDoclet.start(root); 40 | } 41 | 42 | public static boolean validOptions(String[][] options, 43 | DocErrorReporter reporter) { 44 | return HtmlDoclet.validOptions(options, reporter); 45 | } 46 | 47 | public static LanguageVersion languageVersion() { 48 | return HtmlDoclet.languageVersion(); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/tools/javac/code/BoundKind.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003, 2005, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.tools.javac.code; 27 | 28 | /** 29 | * 30 | *

This is NOT part of any supported API. 31 | * If you write code that depends on this, you do so at your own risk. 32 | * This code and its internal interfaces are subject to change or 33 | * deletion without notice. 34 | */ 35 | public enum BoundKind { 36 | EXTENDS("? extends "), 37 | SUPER("? super "), 38 | UNBOUND("?"); 39 | 40 | private final String name; 41 | 42 | BoundKind(String name) { 43 | this.name = name; 44 | } 45 | 46 | public String toString() { return name; } 47 | } 48 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/tools/javac/comp/AttrContextEnv.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2000, 2005, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.tools.javac.comp; 27 | 28 | import openjdk7.com.sun.tools.javac.tree.JCTree; 29 | 30 | 31 | /** {@code Env} specialized as {@code Env} 32 | * 33 | *

This is NOT part of any supported API. 34 | * If you write code that depends on this, you do so at your own risk. 35 | * This code and its internal interfaces are subject to change or 36 | * deletion without notice. 37 | */ 38 | public class AttrContextEnv extends Env { 39 | 40 | /** Create an outermost environment for a given (toplevel)tree, 41 | * with a given info field. 42 | */ 43 | public AttrContextEnv(JCTree tree, AttrContext info) { 44 | super(tree, info); 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/tools/javac/processing/AnnotationProcessingError.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.tools.javac.processing; 27 | 28 | 29 | /** 30 | * Error thrown for problems encountered during annotation processing. 31 | * 32 | *

This is NOT part of any supported API. 33 | * If you write code that depends on this, you do so at your own risk. 34 | * This code and its internal interfaces are subject to change or 35 | * deletion without notice. 36 | */ 37 | public class AnnotationProcessingError extends Error { 38 | static final long serialVersionUID = 305337707019230790L; 39 | AnnotationProcessingError(Throwable cause) { 40 | super(cause); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/tools/javac/resources/version.properties-template: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. 3 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | # 5 | # This code is free software; you can redistribute it and/or modify it 6 | # under the terms of the GNU General Public License version 2 only, as 7 | # published by the Free Software Foundation. Oracle designates this 8 | # particular file as subject to the "Classpath" exception as provided 9 | # by Oracle in the LICENSE file that accompanied this code. 10 | # 11 | # This code is distributed in the hope that it will be useful, but WITHOUT 12 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | # version 2 for more details (a copy is included in the LICENSE file that 15 | # accompanied this code). 16 | # 17 | # You should have received a copy of the GNU General Public License version 18 | # 2 along with this work; if not, write to the Free Software Foundation, 19 | # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | # 21 | # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | # or visit www.oracle.com if you need additional information or have any 23 | # questions. 24 | # 25 | 26 | jdk=$(JDK_VERSION) 27 | full=$(FULL_VERSION) 28 | release=$(RELEASE) 29 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/tools/javac/services/javax.tools.JavaCompilerTool: -------------------------------------------------------------------------------- 1 | openjdk7.com.sun.tools.javac.api.Tool 2 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/tools/javac/util/Abort.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 1999, 2005, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.tools.javac.util; 27 | 28 | /** Throwing an instance of 29 | * this class causes (silent) termination of the main compiler method. 30 | * 31 | *

This is NOT part of any supported API. 32 | * If you write code that depends on this, you do so at your own risk. 33 | * This code and its internal interfaces are subject to change or 34 | * deletion without notice. 35 | */ 36 | public class Abort extends Error { 37 | private static final long serialVersionUID = 0; 38 | 39 | public Abort(Throwable cause) { 40 | super(cause); 41 | } 42 | 43 | public Abort() { 44 | super(); 45 | } 46 | 47 | } 48 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/tools/javac/util/ClientCodeException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.tools.javac.util; 27 | 28 | /** 29 | * An exception used for propogating exceptions found in client code 30 | * invoked from javac. 31 | * 32 | *

This is NOT part of any supported API. 33 | * If you write code that depends on this, you do so at your own risk. 34 | * This code and its internal interfaces are subject to change or 35 | * deletion without notice. 36 | */ 37 | public class ClientCodeException extends RuntimeException { 38 | 39 | static final long serialVersionUID = -5674494409392415163L; 40 | 41 | public ClientCodeException(Throwable cause) { 42 | super(cause); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/tools/javac/util/Filter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.tools.javac.util; 27 | 28 | /** 29 | * Simple filter acting as a boolean predicate. Method accepts return true if 30 | * the supplied element matches against the filter. 31 | */ 32 | public interface Filter { 33 | /** 34 | * Does this element match against the filter? 35 | * @param t element to be checked 36 | * @return true if the element satisfy constraints imposed by filter 37 | */ 38 | boolean accepts(T t); 39 | } 40 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/tools/javah/InternalError.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2007, 2008, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.tools.javah; 27 | 28 | /** 29 | *

This is NOT part of any supported API. 30 | * If you write code that depends on this, you do so at your own risk. 31 | * This code and its internal interfaces are subject to change or 32 | * deletion without notice. 33 | */ 34 | public class InternalError extends Error { 35 | private static final long serialVersionUID = 8411861562497165022L; 36 | InternalError(String msg, Throwable cause) { 37 | super("Internal error: " + msg); 38 | initCause(cause); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/tools/javah/resources/version.properties-template: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. 3 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | # 5 | # This code is free software; you can redistribute it and/or modify it 6 | # under the terms of the GNU General Public License version 2 only, as 7 | # published by the Free Software Foundation. Oracle designates this 8 | # particular file as subject to the "Classpath" exception as provided 9 | # by Oracle in the LICENSE file that accompanied this code. 10 | # 11 | # This code is distributed in the hope that it will be useful, but WITHOUT 12 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | # version 2 for more details (a copy is included in the LICENSE file that 15 | # accompanied this code). 16 | # 17 | # You should have received a copy of the GNU General Public License version 18 | # 2 along with this work; if not, write to the Free Software Foundation, 19 | # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | # 21 | # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | # or visit www.oracle.com if you need additional information or have any 23 | # questions. 24 | # 25 | 26 | jdk=$(JDK_VERSION) 27 | full=$(FULL_VERSION) 28 | release=$(RELEASE) 29 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/tools/javap/InternalError.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2007, 2009, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.tools.javap; 27 | 28 | /** 29 | *

This is NOT part of any supported API. 30 | * If you write code that depends on this, you do so at your own risk. 31 | * This code and its internal interfaces are subject to change or 32 | * deletion without notice. 33 | */ 34 | public class InternalError extends Error { 35 | private static final long serialVersionUID = 8114054446416187030L; 36 | InternalError(Throwable t, Object... args) { 37 | super("Internal error", t); 38 | this.args = args; 39 | } 40 | 41 | InternalError(Object... args) { 42 | super("Internal error"); 43 | this.args = args; 44 | } 45 | 46 | public final Object[] args; 47 | } 48 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/tools/javap/Messages.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2007, 2009, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package openjdk7.com.sun.tools.javap; 27 | 28 | import java.util.Locale; 29 | 30 | /** 31 | * Access to javap messages. 32 | * 33 | *

This is NOT part of any supported API. 34 | * If you write code that depends on this, you do so at your own risk. 35 | * This code and its internal interfaces are subject to change or 36 | * deletion without notice. 37 | */ 38 | public interface Messages { 39 | String getMessage(String key, Object... args); 40 | 41 | String getMessage(Locale locale, String key, Object... args); 42 | } 43 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/tools/javap/overview.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | javap: class file disassembler 5 | 6 | 7 | 8 | Javap is a class file disassembler. 9 | 10 | 11 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/tools/javap/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Classes to dump class files in text format. 9 | 10 | 11 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/com/sun/tools/javap/resources/version.properties-template: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (c) 2007, 2008, Oracle and/or its affiliates. All rights reserved. 3 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | # 5 | # This code is free software; you can redistribute it and/or modify it 6 | # under the terms of the GNU General Public License version 2 only, as 7 | # published by the Free Software Foundation. Oracle designates this 8 | # particular file as subject to the "Classpath" exception as provided 9 | # by Oracle in the LICENSE file that accompanied this code. 10 | # 11 | # This code is distributed in the hope that it will be useful, but WITHOUT 12 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | # version 2 for more details (a copy is included in the LICENSE file that 15 | # accompanied this code). 16 | # 17 | # You should have received a copy of the GNU General Public License version 18 | # 2 along with this work; if not, write to the Free Software Foundation, 19 | # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | # 21 | # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | # or visit www.oracle.com if you need additional information or have any 23 | # questions. 24 | # 25 | 26 | jdk=$(JDK_VERSION) 27 | full=$(FULL_VERSION) 28 | release=$(RELEASE) 29 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/javax/annotation/processing/Completion.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package javax.annotation.processing; 27 | 28 | /** 29 | * A suggested {@linkplain Processor#getCompletions completion} for an 30 | * annotation. A completion is text meant to be inserted into a 31 | * program as part of an annotation. 32 | * 33 | * @author Joseph D. Darcy 34 | * @author Scott Seligman 35 | * @author Peter von der Ahé 36 | * @since 1.6 37 | */ 38 | public interface Completion { 39 | 40 | /** 41 | * Returns the text of the suggested completion. 42 | * @return the text of the suggested completion. 43 | */ 44 | String getValue(); 45 | 46 | /** 47 | * Returns an informative message about the completion. 48 | * @return an informative message about the completion. 49 | */ 50 | String getMessage(); 51 | } 52 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/javax/annotation/processing/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | /** 27 | * Facilities for declaring annotation processors and for 28 | * allowing annotation processors to communicate with an annotation processing 29 | * tool environment. 30 | * 31 | *

Unless otherwise specified in a particular implementation, the 32 | * collections returned by methods in this package should be expected 33 | * to be unmodifiable by the caller and unsafe for concurrent access. 34 | * 35 | *

Unless otherwise specified, methods in this package will throw 36 | * a {@code NullPointerException} if given a {@code null} argument. 37 | * 38 | * @author Joseph D. Darcy 39 | * @author Scott Seligman 40 | * @author Peter von der Ahé 41 | * @since 1.6 42 | */ 43 | package javax.annotation.processing; 44 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/javax/lang/model/element/Parameterizable.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package javax.lang.model.element; 27 | 28 | import java.util.List; 29 | 30 | /** 31 | * A mixin interface for an element that has type parameters. 32 | * 33 | * @author Joseph D. Darcy 34 | * @since 1.7 35 | */ 36 | public interface Parameterizable extends Element { 37 | /** 38 | * Returns the formal type parameters of the type element in 39 | * declaration order. 40 | * 41 | * @return the formal type parameters, or an empty list 42 | * if there are none 43 | */ 44 | List getTypeParameters(); 45 | } 46 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/javax/lang/model/element/QualifiedNameable.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package javax.lang.model.element; 27 | 28 | /** 29 | * A mixin interface for an element that has a qualified name. 30 | * 31 | * @author Joseph D. Darcy 32 | * @since 1.7 33 | */ 34 | public interface QualifiedNameable extends Element { 35 | /** 36 | * Returns the fully qualified name of an element. 37 | * 38 | * @return the fully qualified name of an element 39 | */ 40 | Name getQualifiedName(); 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/javax/lang/model/overview.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 28 | 29 | 30 | 31 | 32 | 33 | Packages used to model various aspects of the Java programming language. 34 | 35 | @since 1.6 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/javax/lang/model/type/ArrayType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package javax.lang.model.type; 27 | 28 | 29 | /** 30 | * Represents an array type. 31 | * A multidimensional array type is represented as an array type 32 | * whose component type is also an array type. 33 | * 34 | * @author Joseph D. Darcy 35 | * @author Scott Seligman 36 | * @author Peter von der Ahé 37 | * @since 1.6 38 | */ 39 | public interface ArrayType extends ReferenceType { 40 | 41 | /** 42 | * Returns the component type of this array type. 43 | * 44 | * @return the component type of this array type 45 | */ 46 | TypeMirror getComponentType(); 47 | } 48 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/javax/lang/model/type/ErrorType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, 2008, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package javax.lang.model.type; 27 | 28 | /** 29 | * Represents a class or interface type that cannot be properly modeled. 30 | * This may be the result of a processing error, 31 | * such as a missing class file or erroneous source code. 32 | * Most queries for 33 | * information derived from such a type (such as its members or its 34 | * supertype) will not, in general, return meaningful results. 35 | * 36 | * @author Joseph D. Darcy 37 | * @author Scott Seligman 38 | * @author Peter von der Ahé 39 | * @since 1.6 40 | */ 41 | public interface ErrorType extends DeclaredType { 42 | } 43 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/javax/lang/model/type/NullType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package javax.lang.model.type; 27 | 28 | 29 | /** 30 | * Represents the null type. 31 | * This is the type of the expression {@code null}, 32 | * 33 | * @author Joseph D. Darcy 34 | * @author Scott Seligman 35 | * @author Peter von der Ahé 36 | * @since 1.6 37 | */ 38 | 39 | public interface NullType extends ReferenceType { 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/javax/lang/model/type/PrimitiveType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package javax.lang.model.type; 27 | 28 | 29 | /** 30 | * Represents a primitive type. These include 31 | * {@code boolean}, {@code byte}, {@code short}, {@code int}, 32 | * {@code long}, {@code char}, {@code float}, and {@code double}. 33 | * 34 | * @author Joseph D. Darcy 35 | * @author Scott Seligman 36 | * @author Peter von der Ahé 37 | * @since 1.6 38 | */ 39 | public interface PrimitiveType extends TypeMirror { 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/javax/lang/model/type/ReferenceType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package javax.lang.model.type; 27 | 28 | 29 | /** 30 | * Represents a reference type. 31 | * These include class and interface types, array types, type variables, 32 | * and the null type. 33 | * 34 | * @author Joseph D. Darcy 35 | * @author Scott Seligman 36 | * @author Peter von der Ahé 37 | * @since 1.6 38 | */ 39 | public interface ReferenceType extends TypeMirror { 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/javax/lang/model/type/UnionType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package javax.lang.model.type; 27 | 28 | import java.util.List; 29 | 30 | /** 31 | * Represents a union type. 32 | * 33 | * As of the {@link javax.lang.model.SourceVersion#RELEASE_7 34 | * RELEASE_7} source version, union types can appear as the type 35 | * of a multi-catch exception parameter. 36 | * 37 | * @since 1.7 38 | */ 39 | public interface UnionType extends TypeMirror { 40 | 41 | /** 42 | * Return the alternatives comprising this union type. 43 | * 44 | * @return the alternatives comprising this union type. 45 | */ 46 | List getAlternatives(); 47 | } 48 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/javax/lang/model/type/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | /** 27 | * Interfaces used to model Java programming language types. 28 | * 29 | *

Unless otherwise specified in a particular implementation, the 30 | * collections returned by methods in this package should be expected 31 | * to be unmodifiable by the caller and unsafe for concurrent access. 32 | * 33 | *

Unless otherwise specified, methods in this package will throw 34 | * a {@code NullPointerException} if given a {@code null} argument. 35 | * 36 | * @author Joseph D. Darcy 37 | * @author Scott Seligman 38 | * @author Peter von der Ahé 39 | * @since 1.6 40 | */ 41 | package javax.lang.model.type; 42 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/javax/lang/model/util/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | /** 27 | * Utilities to assist in the processing of 28 | * {@linkplain javax.lang.model.element program elements} and 29 | * {@linkplain javax.lang.model.type types}. 30 | * 31 | *

Unless otherwise specified in a particular implementation, the 32 | * collections returned by methods in this package should be expected 33 | * to be unmodifiable by the caller and unsafe for concurrent access. 34 | * 35 | *

Unless otherwise specified, methods in this package will throw 36 | * a {@code NullPointerException} if given a {@code null} argument. 37 | * 38 | * @author Joseph D. Darcy 39 | * @author Scott Seligman 40 | * @author Peter von der Ahé 41 | * @since 1.6 42 | */ 43 | package javax.lang.model.util; 44 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/javax/tools/DiagnosticListener.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package javax.tools; 27 | 28 | /** 29 | * Interface for receiving diagnostics from tools. 30 | * 31 | * @param the type of source objects used by diagnostics received 32 | * by this listener 33 | * 34 | * @author Jonathan Gibbons 35 | * @author Peter von der Ahé 36 | * @since 1.6 37 | */ 38 | public interface DiagnosticListener { 39 | /** 40 | * Invoked when a problem is found. 41 | * 42 | * @param diagnostic a diagnostic representing the problem that 43 | * was found 44 | * @throws NullPointerException if the diagnostic argument is 45 | * {@code null} and the implementation cannot handle {@code null} 46 | * arguments 47 | */ 48 | void report(Diagnostic diagnostic); 49 | } 50 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/javax/tools/OptionChecker.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | package javax.tools; 27 | 28 | /** 29 | * Interface for recognizing options. 30 | * 31 | * @author Peter von der Ahé 32 | * @since 1.6 33 | */ 34 | public interface OptionChecker { 35 | 36 | /** 37 | * Determines if the given option is supported and if so, the 38 | * number of arguments the option takes. 39 | * 40 | * @param option an option 41 | * @return the number of arguments the given option takes or -1 if 42 | * the option is not supported 43 | */ 44 | int isSupportedOption(String option); 45 | 46 | } 47 | -------------------------------------------------------------------------------- /src/main/java/openjdk7/javax/tools/overview.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |

4 | The Java™ programming language compiler API is a set of interfaces that describes the 5 | functions provided by a compiler. This API has three 6 | main objectives: 7 |

8 | 9 |
    10 | 11 |
  • Allow invocation of a compiler from a program using 12 | standardized interfaces.
  • 13 | 14 |
  • Provide interfaces enabling the compiler to report diagnostics in a 15 | structured way.
  • 16 | 17 |
  • Provide interfaces enabling clients of the compiler to override 18 | how file objects are found. "File objects" is a file 19 | abstraction.
  • 20 | 21 |
22 | 23 | 24 | --------------------------------------------------------------------------------