* JBoss, Home of Professional Open Source
* Copyright 2010, Red Hat, Inc. and/or its affiliates, and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
* Licensed 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
* 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.
Annotationthat pretends it is a "real" source code annotation. It's also an
When you create an
AnnotationProxy, you must initialize it
The adapter checks that the provided elements are the same elements defined
in the annotation interface. However, it does not check that their
values are the right type. If you omit an element, the adapter will use the
default value for that element from the annotation interface, if it exists.
If no default exists, it will throw an exception.
Warning: this class does not implement
equals() - it just uses the ones it inherits from
This means that an
AnnotationProxy does not follow the
recommendations of the
Annotation javadoc about these two
methods. That's why you should never mix
with "real" annotations. For example, don't put them into the same
int processedValuesFromDescriptor = 0;
// remove last separator: