harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lvj...@apache.org
Subject svn commit: r998789 [1/2] - in /harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax: annotation/processing/ lang/model/element/ lang/model/type/ lang/model/util/
Date Mon, 20 Sep 2010 05:44:22 GMT
Author: lvjing
Date: Mon Sep 20 05:44:20 2010
New Revision: 998789

URL: http://svn.apache.org/viewvc?rev=998789&view=rev
Log:
add all annotation processing source

Added:
    harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/
    harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/AbstractProcessor.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/Completion.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/Completions.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/Filer.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/FilerException.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/Messager.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/ProcessingEnvironment.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/Processor.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/RoundEnvironment.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/SupportedAnnotationTypes.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/SupportedOptions.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/SupportedSourceVersion.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/
    harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/AnnotationMirror.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/AnnotationValue.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/AnnotationValueVisitor.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/Element.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/ElementKind.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/ElementVisitor.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/ExecutableElement.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/Modifier.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/Name.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/NestingKind.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/PackageElement.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/Parameterizable.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/QualifiedNameable.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/SourceVersion.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/TypeElement.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/TypeParameterElement.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/UnknownAnnotationValueException.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/UnknownElementException.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/UnknownEntityException.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/VariableElement.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/type/
    harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/type/ArrayType.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/type/DeclaredType.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/type/ErrorType.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/type/ExecutableType.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/type/MirroredTypeException.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/type/MirroredTypesException.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/type/NoType.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/type/NullType.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/type/PrimitiveType.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/type/ReferenceType.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/type/TypeKind.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/type/TypeMirror.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/type/TypeVariable.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/type/TypeVisitor.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/type/UnknownTypeException.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/type/WildcardType.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/util/
    harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/util/AbstractAnnotationValueVisitor6.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/util/AbstractElementVisitor6.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/util/AbstractTypeVisitor6.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/util/ElementFilter.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/util/ElementKindVisitor6.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/util/ElementScanner6.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/util/Elements.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/util/SimpleAnnotationValueVisitor6.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/util/SimpleElementVisitor6.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/util/SimpleTypeVisitor6.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/util/TypeKindVisitor6.java   (with props)
    harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/util/Types.java   (with props)

Added: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/AbstractProcessor.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/AbstractProcessor.java?rev=998789&view=auto
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/AbstractProcessor.java (added)
+++ harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/AbstractProcessor.java Mon Sep 20 05:44:20 2010
@@ -0,0 +1,91 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+package javax.annotation.processing;
+
+import java.util.HashSet;
+import java.util.Iterator;
+import java.util.Set;
+
+import javax.lang.model.SourceVersion;
+import javax.lang.model.element.AnnotationMirror;
+import javax.lang.model.element.Element;
+import javax.lang.model.element.ExecutableElement;
+import javax.lang.model.element.TypeElement;
+
+public abstract class AbstractProcessor implements Processor {
+
+    private boolean isInitialized;
+
+    protected ProcessingEnvironment processingEnv;
+
+    protected AbstractProcessor() {
+
+    }
+
+    public Iterable<? extends Completion> getCompletions(Element element,
+            AnnotationMirror annotation, ExecutableElement member,
+            String userText) {
+        // return a empty iterable
+        return new Iterable<Completion>() {
+            public Iterator<Completion> iterator() {
+                return new Iterator<Completion>() {
+
+                    public boolean hasNext() {
+                        return false;
+                    }
+
+                    public Completion next() {
+                        return null;
+                    }
+
+                    public void remove() {
+                        // do nothing
+                    }
+                };
+            }
+        };
+    }
+
+    public Set<String> getSupportedAnnotationTypes() {
+        return new HashSet<String>();
+    }
+
+    public Set<String> getSupportedOptions() {
+        return new HashSet<String>();
+    }
+
+    public SourceVersion getSupportedSourceVersion() {
+        return SourceVersion.RELEASE_6;
+    }
+
+    public void init(ProcessingEnvironment processingEnv) {
+        if (this.processingEnv != null && this.processingEnv == processingEnv) {
+            throw new IllegalStateException();
+        }
+        this.processingEnv = processingEnv;
+        isInitialized = true;
+    }
+
+    protected boolean isInitialized() {
+        return isInitialized;
+    }
+
+    public abstract boolean process(Set<? extends TypeElement> annotations,
+            RoundEnvironment roundEnv);
+
+}

Propchange: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/AbstractProcessor.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/Completion.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/Completion.java?rev=998789&view=auto
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/Completion.java (added)
+++ harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/Completion.java Mon Sep 20 05:44:20 2010
@@ -0,0 +1,26 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+package javax.annotation.processing;
+
+public interface Completion {
+
+    String getValue();
+
+    String getMessage();
+
+}

Propchange: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/Completion.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/Completions.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/Completions.java?rev=998789&view=auto
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/Completions.java (added)
+++ harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/Completions.java Mon Sep 20 05:44:20 2010
@@ -0,0 +1,50 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+package javax.annotation.processing;
+
+public class Completions {
+    public static Completion of(String value) {
+        return new CompletionImpl(value, "");
+    }
+
+    public static Completion of(String value, String message) {
+        if ((null == value) || (null == message)) {
+            throw new NullPointerException();
+        }
+        return new CompletionImpl(value, message);
+    }
+}
+
+class CompletionImpl implements Completion {
+
+    String value, message;
+
+    public CompletionImpl(String value, String message) {
+        this.value = value;
+        this.message = message;
+    }
+
+    public String getMessage() {
+        return message;
+    }
+
+    public String getValue() {
+        return value;
+    }
+
+}

Propchange: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/Completions.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/Filer.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/Filer.java?rev=998789&view=auto
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/Filer.java (added)
+++ harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/Filer.java Mon Sep 20 05:44:20 2010
@@ -0,0 +1,39 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+package javax.annotation.processing;
+
+import javax.lang.model.element.Element;
+import javax.tools.FileObject;
+import javax.tools.JavaFileManager;
+import javax.tools.JavaFileObject;
+
+public interface Filer {
+
+    JavaFileObject createClassFile(CharSequence name,
+            Element... originatingElements);
+
+    FileObject createResource(JavaFileManager.Location location,
+            CharSequence pkg, CharSequence relativeName,
+            Element... originatingElements);
+
+    JavaFileObject createSourceFile(CharSequence name,
+            Element... originatingElements);
+
+    FileObject getResource(JavaFileManager.Location location, CharSequence pkg,
+            CharSequence relativeName);
+}

Propchange: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/Filer.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/FilerException.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/FilerException.java?rev=998789&view=auto
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/FilerException.java (added)
+++ harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/FilerException.java Mon Sep 20 05:44:20 2010
@@ -0,0 +1,32 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+package javax.annotation.processing;
+
+import java.io.IOException;
+
+public class FilerException extends IOException {
+    /**
+     * 
+     */
+    private static final long serialVersionUID = 8426423106453163293L;
+
+    FilerException(String s) {
+        super(s);
+    }
+
+}

Propchange: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/FilerException.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/Messager.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/Messager.java?rev=998789&view=auto
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/Messager.java (added)
+++ harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/Messager.java Mon Sep 20 05:44:20 2010
@@ -0,0 +1,35 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+package javax.annotation.processing;
+
+import javax.lang.model.element.AnnotationMirror;
+import javax.lang.model.element.AnnotationValue;
+import javax.lang.model.element.Element;
+import javax.tools.Diagnostic;
+
+public interface Messager {
+    void printMessage(Diagnostic.Kind kind, CharSequence msg);
+
+    void printMessage(Diagnostic.Kind kind, CharSequence msg, Element e);
+
+    void printMessage(Diagnostic.Kind kind, CharSequence msg, Element e,
+            AnnotationMirror a);
+
+    void printMessage(Diagnostic.Kind kind, CharSequence msg, Element e,
+            AnnotationMirror a, AnnotationValue v);
+}

Propchange: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/Messager.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/ProcessingEnvironment.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/ProcessingEnvironment.java?rev=998789&view=auto
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/ProcessingEnvironment.java (added)
+++ harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/ProcessingEnvironment.java Mon Sep 20 05:44:20 2010
@@ -0,0 +1,43 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+package javax.annotation.processing;
+
+import java.util.Locale;
+import java.util.Map;
+
+import javax.lang.model.SourceVersion;
+import javax.lang.model.util.Elements;
+import javax.lang.model.util.Types;
+
+public interface ProcessingEnvironment {
+
+    Elements getElementUtils();
+
+    Filer getFiler();
+
+    Locale getLocale();
+
+    Messager getMessager();
+
+    Map<String, String> getOptions();
+
+    SourceVersion getSourceVersion();
+
+    Types getTypeUtils();
+
+}

Propchange: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/ProcessingEnvironment.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/Processor.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/Processor.java?rev=998789&view=auto
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/Processor.java (added)
+++ harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/Processor.java Mon Sep 20 05:44:20 2010
@@ -0,0 +1,43 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+package javax.annotation.processing;
+
+import java.util.Set;
+
+import javax.lang.model.SourceVersion;
+import javax.lang.model.element.AnnotationMirror;
+import javax.lang.model.element.Element;
+import javax.lang.model.element.ExecutableElement;
+import javax.lang.model.element.TypeElement;
+
+public interface Processor {
+    Iterable<? extends Completion> getCompletions(Element element,
+            AnnotationMirror annotation, ExecutableElement member,
+            String userText);
+
+    Set<String> getSupportedAnnotationTypes();
+
+    Set<String> getSupportedOptions();
+
+    SourceVersion getSupportedSourceVersion();
+
+    void init(ProcessingEnvironment processingEnv);
+
+    boolean process(Set<? extends TypeElement> annotations,
+            RoundEnvironment roundEnv);
+}

Propchange: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/Processor.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/RoundEnvironment.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/RoundEnvironment.java?rev=998789&view=auto
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/RoundEnvironment.java (added)
+++ harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/RoundEnvironment.java Mon Sep 20 05:44:20 2010
@@ -0,0 +1,38 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+package javax.annotation.processing;
+
+import java.lang.annotation.Annotation;
+import java.util.Set;
+
+import javax.lang.model.element.Element;
+import javax.lang.model.element.TypeElement;
+
+public interface RoundEnvironment {
+    boolean errorRaised();
+
+    Set<? extends Element> getElementsAnnotatedWith(
+            Class<? extends Annotation> a);
+
+    Set<? extends Element> getElementsAnnotatedWith(TypeElement a);
+
+    Set<? extends Element> getRootElements();
+
+    boolean processingOver();
+
+}

Propchange: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/RoundEnvironment.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/SupportedAnnotationTypes.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/SupportedAnnotationTypes.java?rev=998789&view=auto
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/SupportedAnnotationTypes.java (added)
+++ harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/SupportedAnnotationTypes.java Mon Sep 20 05:44:20 2010
@@ -0,0 +1,31 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+package javax.annotation.processing;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+@Documented
+@Target(ElementType.TYPE)
+@Retention(RetentionPolicy.RUNTIME)
+public @interface SupportedAnnotationTypes {
+    String[] value();
+}

Propchange: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/SupportedAnnotationTypes.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/SupportedOptions.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/SupportedOptions.java?rev=998789&view=auto
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/SupportedOptions.java (added)
+++ harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/SupportedOptions.java Mon Sep 20 05:44:20 2010
@@ -0,0 +1,31 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+package javax.annotation.processing;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+@Documented
+@Target(ElementType.TYPE)
+@Retention(RetentionPolicy.RUNTIME)
+public @interface SupportedOptions {
+    String[] value();
+}

Propchange: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/SupportedOptions.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/SupportedSourceVersion.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/SupportedSourceVersion.java?rev=998789&view=auto
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/SupportedSourceVersion.java (added)
+++ harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/SupportedSourceVersion.java Mon Sep 20 05:44:20 2010
@@ -0,0 +1,33 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with this
+ * work for additional information regarding copyright ownership. The ASF
+ * licenses this file to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+package javax.annotation.processing;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+import javax.lang.model.SourceVersion;
+
+@Documented
+@Target(ElementType.TYPE)
+@Retention(RetentionPolicy.RUNTIME)
+public @interface SupportedSourceVersion {
+    SourceVersion value();
+}

Propchange: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/annotation/processing/SupportedSourceVersion.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/AnnotationMirror.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/AnnotationMirror.java?rev=998789&view=auto
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/AnnotationMirror.java (added)
+++ harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/AnnotationMirror.java Mon Sep 20 05:44:20 2010
@@ -0,0 +1,28 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+package javax.lang.model.element;
+
+import java.util.Map;
+
+import javax.lang.model.type.DeclaredType;
+
+public interface AnnotationMirror {
+    DeclaredType getAnnotationType();
+
+    Map<? extends ExecutableElement, ? extends AnnotationValue> getElementValues();
+}

Propchange: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/AnnotationMirror.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/AnnotationValue.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/AnnotationValue.java?rev=998789&view=auto
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/AnnotationValue.java (added)
+++ harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/AnnotationValue.java Mon Sep 20 05:44:20 2010
@@ -0,0 +1,26 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+package javax.lang.model.element;
+
+public interface AnnotationValue {
+    <R, P> R accept(AnnotationValueVisitor<R, P> v, P p);
+
+    Object getValue();
+
+    String toString();
+}

Propchange: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/AnnotationValue.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/AnnotationValueVisitor.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/AnnotationValueVisitor.java?rev=998789&view=auto
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/AnnotationValueVisitor.java (added)
+++ harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/AnnotationValueVisitor.java Mon Sep 20 05:44:20 2010
@@ -0,0 +1,56 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+package javax.lang.model.element;
+
+import java.util.List;
+
+import javax.lang.model.type.TypeMirror;
+
+public interface AnnotationValueVisitor<R, P> {
+    R visit(AnnotationValue av);
+
+    R visit(AnnotationValue av, P p);
+
+    R visitAnnotation(AnnotationMirror a, P p);
+
+    R visitArray(List<? extends AnnotationValue> vals, P p);
+
+    R visitBoolean(boolean b, P p);
+
+    R visitByte(byte b, P p);
+
+    R visitChar(char c, P p);
+
+    R visitDouble(double d, P p);
+
+    R visitEnumConstant(VariableElement c, P p);
+
+    R visitFloat(float f, P p);
+
+    R visitInt(int i, P p);
+
+    R visitLong(long i, P p);
+
+    R visitShort(short s, P p);
+
+    R visitString(String s, P p);
+
+    R visitType(TypeMirror t, P p);
+
+    R visitUnknown(AnnotationValue av, P p);
+}

Propchange: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/AnnotationValueVisitor.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/Element.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/Element.java?rev=998789&view=auto
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/Element.java (added)
+++ harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/Element.java Mon Sep 20 05:44:20 2010
@@ -0,0 +1,48 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+package javax.lang.model.element;
+
+import java.lang.annotation.Annotation;
+import java.util.List;
+import java.util.Set;
+
+import javax.lang.model.type.TypeMirror;
+
+public interface Element {
+    <R, P> R accept(ElementVisitor<R, P> v, P p);
+
+    TypeMirror asType();
+
+    boolean equals(Object obj);
+
+    <A extends Annotation> A getAnnotation(Class<A> annotationType);
+
+    List<? extends AnnotationMirror> getAnnotationMirrors();
+
+    List<? extends Element> getEnclosedElements();
+
+    Element getEnclosingElement();
+
+    ElementKind getKind();
+
+    Set<Modifier> getModifiers();
+
+    Name getSimpleName();
+
+    int hashCode();
+}

Propchange: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/Element.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/ElementKind.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/ElementKind.java?rev=998789&view=auto
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/ElementKind.java (added)
+++ harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/ElementKind.java Mon Sep 20 05:44:20 2010
@@ -0,0 +1,43 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+package javax.lang.model.element;
+
+public enum ElementKind {
+    ANNOTATION_TYPE, CLASS, CONSTRUCTOR, ENUM, ENUM_CONSTANT, EXCEPTION_PARAMETER, FIELD, INSTANCE_INIT, INTERFACE, LOCAL_VARIABLE, METHOD, OTHER, PACKAGE, PARAMETER, STATIC_INIT, TYPE_PARAMETER;
+
+    public boolean isClass() {
+        if (this == CLASS || this == ENUM) {
+            return true;
+        }
+        return false;
+    }
+
+    public boolean isField() {
+        if (this == FIELD || this == ENUM_CONSTANT) {
+            return true;
+        }
+        return false;
+    }
+
+    public boolean isInterface() {
+        if (this == INTERFACE || this == ANNOTATION_TYPE) {
+            return true;
+        }
+        return false;
+    }
+}

Propchange: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/ElementKind.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/ElementVisitor.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/ElementVisitor.java?rev=998789&view=auto
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/ElementVisitor.java (added)
+++ harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/ElementVisitor.java Mon Sep 20 05:44:20 2010
@@ -0,0 +1,36 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+package javax.lang.model.element;
+
+public interface ElementVisitor<R, P> {
+    R visit(Element e);
+
+    R visit(Element e, P p);
+
+    R visitExecutable(ExecutableElement e, P p);
+
+    R visitPackage(PackageElement e, P p);
+
+    R visitType(TypeElement e, P p);
+
+    R visitTypeParameter(TypeParameterElement e, P p);
+
+    R visitUnknown(Element e, P p);
+
+    R visitVariable(VariableElement e, P p);
+}

Propchange: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/ElementVisitor.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/ExecutableElement.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/ExecutableElement.java?rev=998789&view=auto
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/ExecutableElement.java (added)
+++ harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/ExecutableElement.java Mon Sep 20 05:44:20 2010
@@ -0,0 +1,36 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+package javax.lang.model.element;
+
+import java.util.List;
+
+import javax.lang.model.type.TypeMirror;
+
+public interface ExecutableElement extends Parameterizable {
+    AnnotationValue getDefaultValue();
+
+    List<? extends VariableElement> getParameters();
+
+    TypeMirror getReturnType();
+
+    List<? extends TypeMirror> getThrownTypes();
+
+    List<? extends TypeParameterElement> getTypeParameters();
+
+    boolean isVarArgs();
+}

Propchange: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/ExecutableElement.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/Modifier.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/Modifier.java?rev=998789&view=auto
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/Modifier.java (added)
+++ harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/Modifier.java Mon Sep 20 05:44:20 2010
@@ -0,0 +1,26 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+package javax.lang.model.element;
+
+public enum Modifier {
+    ABSTRACT, FINAL, NATIVE, PRIVATE, PROTECTED, PUBLIC, STATIC, STRICTFP, SYNCHRONIZED, TRANSIENT, VOLATILE;
+
+    public String toString() {
+        return this.name().toLowerCase();
+    }
+}

Propchange: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/Modifier.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/Name.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/Name.java?rev=998789&view=auto
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/Name.java (added)
+++ harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/Name.java Mon Sep 20 05:44:20 2010
@@ -0,0 +1,28 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+package javax.lang.model.element;
+
+public interface Name {
+
+    boolean contentEquals(CharSequence cs);
+
+    boolean equals(Object obj);
+
+    int hashCode();
+
+}

Propchange: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/Name.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/NestingKind.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/NestingKind.java?rev=998789&view=auto
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/NestingKind.java (added)
+++ harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/NestingKind.java Mon Sep 20 05:44:20 2010
@@ -0,0 +1,29 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+package javax.lang.model.element;
+
+public enum NestingKind {
+    ANONYMOUS, LOCAL, MEMBER, TOP_LEVEL;
+
+    public boolean isNested() {
+        if (this == TOP_LEVEL) {
+            return false;
+        }
+        return true;
+    }
+}

Propchange: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/NestingKind.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/PackageElement.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/PackageElement.java?rev=998789&view=auto
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/PackageElement.java (added)
+++ harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/PackageElement.java Mon Sep 20 05:44:20 2010
@@ -0,0 +1,23 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+package javax.lang.model.element;
+
+public interface PackageElement extends QualifiedNameable {
+    Name getQualifiedName();
+
+    boolean isUnnamed();
+}

Propchange: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/PackageElement.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/Parameterizable.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/Parameterizable.java?rev=998789&view=auto
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/Parameterizable.java (added)
+++ harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/Parameterizable.java Mon Sep 20 05:44:20 2010
@@ -0,0 +1,25 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+package javax.lang.model.element;
+
+import java.util.List;
+
+public interface Parameterizable extends Element {
+    List<? extends TypeParameterElement> getTypeParameters();
+
+}

Propchange: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/Parameterizable.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/QualifiedNameable.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/QualifiedNameable.java?rev=998789&view=auto
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/QualifiedNameable.java (added)
+++ harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/QualifiedNameable.java Mon Sep 20 05:44:20 2010
@@ -0,0 +1,22 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+package javax.lang.model.element;
+
+public interface QualifiedNameable extends Element {
+    Name getQualifiedName();
+}

Propchange: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/QualifiedNameable.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/SourceVersion.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/SourceVersion.java?rev=998789&view=auto
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/SourceVersion.java (added)
+++ harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/SourceVersion.java Mon Sep 20 05:44:20 2010
@@ -0,0 +1,85 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+package javax.lang.model.element;
+
+import java.util.HashSet;
+
+public enum SourceVersion {
+	RELEASE_0, RELEASE_1, RELEASE_2, RELEASE_3, RELEASE_4, RELEASE_5, RELEASE_6;
+
+	static String[] keywordList = { "abstract", "else", "interface", "super",
+			"boolean", "extends", "long", "switch", "break", "final", "native",
+			"synchronized", "byte", "finally", "new", "this", "case", "float",
+			"package", "throw", "catch", "for", "private", "throws", "char",
+			"if", "protected", "transient", "class", "implements", "public",
+			"try", "continue", "import", "return", "void", "default",
+			"instanceof", "short", "volatile", "do", "int", "static", "while",
+			"double" };
+
+	static HashSet<String> keywords;
+
+	static {
+		keywords = new HashSet<String>();
+		for (int i = 0; i < keywordList.length; i++) {
+			keywords.add(keywordList[i]);
+		}
+	}
+
+	public static boolean isIdentifier(CharSequence name) {
+		if (!Character.isJavaIdentifierStart(name.charAt(0))) {
+			return false;
+		}
+		for (int i = 1; i < name.length(); i++) {
+			if (!Character.isJavaIdentifierPart(name.charAt(i))) {
+				return false;
+			}
+		}
+		return true;
+	}
+
+	public static boolean isKeyword(CharSequence s) {
+		return keywords.contains(s.toString());
+	}
+
+	public static boolean isName(CharSequence name) {
+		char first = name.charAt(0);
+		if (first == '.' || first == ')' || first == '('){
+			return false;
+		}
+		String[] lists = name.toString().split(".");
+		for (int i = 0; i < lists.length; i++) {
+			if (isKeyword(name)){
+				System.out.println("iskey");
+				return false;
+			}
+			if(!isIdentifier(name)){
+				return false;
+			}
+		}
+		return true;
+	}
+
+	public static SourceVersion latest() {
+		return RELEASE_6;
+	}
+
+	public static SourceVersion latestSupported() {
+		return RELEASE_6;
+	}
+
+}
\ No newline at end of file

Propchange: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/SourceVersion.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/TypeElement.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/TypeElement.java?rev=998789&view=auto
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/TypeElement.java (added)
+++ harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/TypeElement.java Mon Sep 20 05:44:20 2010
@@ -0,0 +1,34 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+package javax.lang.model.element;
+
+import java.util.List;
+
+import javax.lang.model.type.TypeMirror;
+
+public interface TypeElement extends QualifiedNameable, Parameterizable {
+    List<? extends TypeMirror> getInterfaces();
+
+    NestingKind getNestingKind();
+
+    Name getQualifiedName();
+
+    TypeMirror getSuperclass();
+
+    List<? extends TypeParameterElement> getTypeParameters();
+}

Propchange: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/TypeElement.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/TypeParameterElement.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/TypeParameterElement.java?rev=998789&view=auto
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/TypeParameterElement.java (added)
+++ harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/TypeParameterElement.java Mon Sep 20 05:44:20 2010
@@ -0,0 +1,28 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+package javax.lang.model.element;
+
+import java.util.List;
+
+import javax.lang.model.type.TypeMirror;
+
+public interface TypeParameterElement extends Element {
+    List<? extends TypeMirror> getBounds();
+
+    Element getGenericElement();
+}

Propchange: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/TypeParameterElement.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/UnknownAnnotationValueException.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/UnknownAnnotationValueException.java?rev=998789&view=auto
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/UnknownAnnotationValueException.java (added)
+++ harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/UnknownAnnotationValueException.java Mon Sep 20 05:44:20 2010
@@ -0,0 +1,40 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+package javax.lang.model.element;
+
+public class UnknownAnnotationValueException extends RuntimeException {
+
+    private static final long serialVersionUID = 269L;
+
+    private AnnotationValue av;
+
+    private Object p;
+
+    public UnknownAnnotationValueException(AnnotationValue av, Object p) {
+        this.av = av;
+        this.p = p;
+    }
+
+    public Object getArgument() {
+        return p;
+    }
+
+    public AnnotationValue getUnknownAnnotationValue() {
+        return av;
+    }
+}

Propchange: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/UnknownAnnotationValueException.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/UnknownElementException.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/UnknownElementException.java?rev=998789&view=auto
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/UnknownElementException.java (added)
+++ harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/UnknownElementException.java Mon Sep 20 05:44:20 2010
@@ -0,0 +1,38 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+package javax.lang.model.element;
+
+public class UnknownElementException extends RuntimeException {
+
+    private Element e;
+
+    private Object p;
+
+    public UnknownElementException(Element e, Object p) {
+        this.e = e;
+        this.p = p;
+    }
+
+    public Object getArgument() {
+        return p;
+    }
+
+    public Element getUnknownElement() {
+        return e;
+    }
+}

Propchange: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/UnknownElementException.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/UnknownEntityException.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/UnknownEntityException.java?rev=998789&view=auto
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/UnknownEntityException.java (added)
+++ harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/UnknownEntityException.java Mon Sep 20 05:44:20 2010
@@ -0,0 +1,25 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with this
+ * work for additional information regarding copyright ownership. The ASF
+ * licenses this file to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+package javax.lang.model.element;
+
+public class UnknownEntityException extends RuntimeException {
+    protected UnknownEntityException(String message) {
+        super(message);
+    }
+
+}

Propchange: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/UnknownEntityException.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/VariableElement.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/VariableElement.java?rev=998789&view=auto
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/VariableElement.java (added)
+++ harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/VariableElement.java Mon Sep 20 05:44:20 2010
@@ -0,0 +1,22 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+package javax.lang.model.element;
+
+public interface VariableElement extends Element {
+    Object getConstantValue();
+}

Propchange: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/element/VariableElement.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/type/ArrayType.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/type/ArrayType.java?rev=998789&view=auto
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/type/ArrayType.java (added)
+++ harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/type/ArrayType.java Mon Sep 20 05:44:20 2010
@@ -0,0 +1,22 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+package javax.lang.model.type;
+
+public interface ArrayType extends ReferenceType {
+    TypeMirror getComponentType();
+}

Propchange: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/type/ArrayType.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/type/DeclaredType.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/type/DeclaredType.java?rev=998789&view=auto
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/type/DeclaredType.java (added)
+++ harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/type/DeclaredType.java Mon Sep 20 05:44:20 2010
@@ -0,0 +1,30 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+package javax.lang.model.type;
+
+import java.util.List;
+
+import javax.lang.model.element.Element;
+
+public interface DeclaredType extends ReferenceType, TypeMirror {
+    Element asElement();
+
+    TypeMirror getEnclosingType();
+
+    List<? extends TypeMirror> getTypeArguments();
+}

Propchange: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/type/DeclaredType.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/type/ErrorType.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/type/ErrorType.java?rev=998789&view=auto
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/type/ErrorType.java (added)
+++ harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/type/ErrorType.java Mon Sep 20 05:44:20 2010
@@ -0,0 +1,22 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+package javax.lang.model.type;
+
+public interface ErrorType extends DeclaredType, ReferenceType, TypeMirror {
+
+}

Propchange: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/type/ErrorType.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/type/ExecutableType.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/type/ExecutableType.java?rev=998789&view=auto
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/type/ExecutableType.java (added)
+++ harmony/enhanced/java/branches/java6/classlib/modules/annotation/src/main/java/javax/lang/model/type/ExecutableType.java Mon Sep 20 05:44:20 2010
@@ -0,0 +1,31 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+package javax.lang.model.type;
+
+import java.lang.reflect.TypeVariable;
+import java.util.List;
+
+public interface ExecutableType extends TypeMirror {
+    List<? extends TypeMirror> getParameterTypes();
+
+    TypeMirror getReturnType();
+
+    List<? extends TypeMirror> getThrownTypes();
+
+    List<? extends TypeVariable> getTypeVariables();
+}



Mime
View raw message