1 18 package org.apache.beehive.netui.compiler.grammar; 19 20 import org.apache.beehive.netui.compiler.AnnotationGrammar; 21 import org.apache.beehive.netui.compiler.Diagnostics; 22 import org.apache.beehive.netui.compiler.RuntimeVersionChecker; 23 import org.apache.beehive.netui.compiler.typesystem.env.AnnotationProcessorEnvironment; 24 25 public class ActionOutputGrammar 26 extends AnnotationGrammar 27 { 28 private static final String [][] REQUIRED_ATTRS = { { NAME_ATTR }, { TYPE_ATTR } }; 29 30 public ActionOutputGrammar( AnnotationProcessorEnvironment env, Diagnostics diags, RuntimeVersionChecker rvc ) 31 { 32 super( env, diags, null, rvc ); 33 34 addMemberType( NAME_ATTR, new UniqueValueType( ACTION_OUTPUTS_ATTR, false, false, null, this ) ); 35 addMemberType( TYPE_ATTR, new TypeNameType( null, true, null, this ) ); 36 } 37 38 public String [][] getRequiredAttrs() 39 { 40 return REQUIRED_ATTRS; 41 } 42 } 43 | Popular Tags |