KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > beehive > netui > compiler > grammar > DelegatingType


1 /*
2  * B E A S Y S T E M S
3  * Copyright 2002-2004 BEA Systems, Inc.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  * $Header:$
18  */

19 package org.apache.beehive.netui.compiler.grammar;
20
21 import org.apache.beehive.netui.compiler.AnnotationMemberType;
22 import org.apache.beehive.netui.compiler.AnnotationGrammar;
23 import org.apache.beehive.netui.compiler.FatalCompileTimeException;
24 import org.apache.beehive.netui.compiler.typesystem.declaration.AnnotationTypeElementDeclaration;
25 import org.apache.beehive.netui.compiler.typesystem.declaration.AnnotationValue;
26 import org.apache.beehive.netui.compiler.typesystem.declaration.AnnotationInstance;
27 import org.apache.beehive.netui.compiler.typesystem.declaration.MemberDeclaration;
28
29 public class DelegatingType
30         extends AnnotationMemberType
31 {
32     private AnnotationMemberType _baseType;
33     
34     public DelegatingType( AnnotationMemberType baseType, String JavaDoc requiredRuntimeVersion,
35                            AnnotationGrammar parentGrammar )
36     {
37         super( requiredRuntimeVersion, parentGrammar );
38         _baseType = baseType;
39     }
40
41     
42     public Object JavaDoc onCheck( AnnotationTypeElementDeclaration valueDecl, AnnotationValue member,
43                            AnnotationInstance[] parentAnnotations, MemberDeclaration classMember,
44                            int annotationArrayIndex )
45             throws FatalCompileTimeException
46     {
47         return _baseType.onCheck( valueDecl, member, parentAnnotations, classMember, annotationArrayIndex );
48     }
49 }
50
Popular Tags