1 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 requiredRuntimeVersion, 35 AnnotationGrammar parentGrammar ) 36 { 37 super( requiredRuntimeVersion, parentGrammar ); 38 _baseType = baseType; 39 } 40 41 42 public Object 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 |