Package org.eclipse.emf.common.util

Examples of org.eclipse.emf.common.util.Enumerator



    // $ANTLR start ruleparam_attribute
    // ../org.csu.idl.xtext/src-gen/org/csu/idl/xtext/parser/antlr/internal/InternalIDL.g:5802:1: ruleparam_attribute returns [Enumerator current=null] : ( ( 'in' ) | ( 'out' ) | ( 'inout' ) ) ;
    public final Enumerator ruleparam_attribute() throws RecognitionException {
        Enumerator current = null;

         setCurrentLookahead(); resetLookahead();
        try {
            // ../org.csu.idl.xtext/src-gen/org/csu/idl/xtext/parser/antlr/internal/InternalIDL.g:5806:6: ( ( ( 'in' ) | ( 'out' ) | ( 'inout' ) ) )
            // ../org.csu.idl.xtext/src-gen/org/csu/idl/xtext/parser/antlr/internal/InternalIDL.g:5807:1: ( ( 'in' ) | ( 'out' ) | ( 'inout' ) )
View Full Code Here



    // $ANTLR start rulefloat_type
    // ../org.csu.idl.xtext/src-gen/org/csu/idl/xtext/parser/antlr/internal/InternalIDL.g:5829:1: rulefloat_type returns [Enumerator current=null] : ( 'float' ) ;
    public final Enumerator rulefloat_type() throws RecognitionException {
        Enumerator current = null;

         setCurrentLookahead(); resetLookahead();
        try {
            // ../org.csu.idl.xtext/src-gen/org/csu/idl/xtext/parser/antlr/internal/InternalIDL.g:5833:6: ( ( 'float' ) )
            // ../org.csu.idl.xtext/src-gen/org/csu/idl/xtext/parser/antlr/internal/InternalIDL.g:5834:1: ( 'float' )
View Full Code Here


    // $ANTLR start ruledouble_type
    // ../org.csu.idl.xtext/src-gen/org/csu/idl/xtext/parser/antlr/internal/InternalIDL.g:5844:1: ruledouble_type returns [Enumerator current=null] : ( 'double' ) ;
    public final Enumerator ruledouble_type() throws RecognitionException {
        Enumerator current = null;

         setCurrentLookahead(); resetLookahead();
        try {
            // ../org.csu.idl.xtext/src-gen/org/csu/idl/xtext/parser/antlr/internal/InternalIDL.g:5848:6: ( ( 'double' ) )
            // ../org.csu.idl.xtext/src-gen/org/csu/idl/xtext/parser/antlr/internal/InternalIDL.g:5849:1: ( 'double' )
View Full Code Here


    // $ANTLR start ruleshort_type
    // ../org.csu.idl.xtext/src-gen/org/csu/idl/xtext/parser/antlr/internal/InternalIDL.g:5859:1: ruleshort_type returns [Enumerator current=null] : ( 'short' ) ;
    public final Enumerator ruleshort_type() throws RecognitionException {
        Enumerator current = null;

         setCurrentLookahead(); resetLookahead();
        try {
            // ../org.csu.idl.xtext/src-gen/org/csu/idl/xtext/parser/antlr/internal/InternalIDL.g:5863:6: ( ( 'short' ) )
            // ../org.csu.idl.xtext/src-gen/org/csu/idl/xtext/parser/antlr/internal/InternalIDL.g:5864:1: ( 'short' )
View Full Code Here


    // $ANTLR start rulelong_type
    // ../org.csu.idl.xtext/src-gen/org/csu/idl/xtext/parser/antlr/internal/InternalIDL.g:5874:1: rulelong_type returns [Enumerator current=null] : ( 'long' ) ;
    public final Enumerator rulelong_type() throws RecognitionException {
        Enumerator current = null;

         setCurrentLookahead(); resetLookahead();
        try {
            // ../org.csu.idl.xtext/src-gen/org/csu/idl/xtext/parser/antlr/internal/InternalIDL.g:5878:6: ( ( 'long' ) )
            // ../org.csu.idl.xtext/src-gen/org/csu/idl/xtext/parser/antlr/internal/InternalIDL.g:5879:1: ( 'long' )
View Full Code Here

    {
      Method getter = enumClass.getMethod("get", new Class[] { Integer.TYPE });

      for (EEnumLiteral eEnumLiteral : eEnum.getELiterals())
      {
        Enumerator instance = (Enumerator)getter.invoke(null, new Object[] { eEnumLiteral.getValue() });
        eEnumLiteral.setInstance(instance);
        ((EEnumLiteralImpl)eEnumLiteral).setGeneratedInstance(true);
      }
    }
    catch (Exception e)
View Full Code Here

    {
      Method getter = enumClass.getMethod("get", new Class[] { Integer.TYPE });

      for (EEnumLiteral eEnumLiteral : eEnum.getELiterals())
      {
        Enumerator instance = (Enumerator)getter.invoke(null, new Object[] { eEnumLiteral.getValue() });
        eEnumLiteral.setInstance(instance);
        ((EEnumLiteralImpl)eEnumLiteral).setGeneratedInstance(true);
      }
    }
    catch (Exception e)
View Full Code Here

   * <!-- end-user-doc -->
   * @generated
   */
  public void setInstanceGen(Enumerator newInstance)
  {
    Enumerator oldInstance = instance;
    instance = newInstance;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, EcorePackage.EENUM_LITERAL__INSTANCE, oldInstance, instance));
  }
View Full Code Here

    public final EObject ruleRESTSpecification() throws RecognitionException {
        EObject current = null;

        Token otherlv_2=null;
        Token otherlv_4=null;
        Enumerator lv_verb_0_0 = null;

        EObject lv_path_1_0 = null;

        EObject lv_body_3_0 = null;
View Full Code Here

        Token otherlv_16=null;
        Token otherlv_17=null;
        Token otherlv_18=null;
        Token otherlv_20=null;
        Token otherlv_21=null;
        Enumerator lv_kind_1_0 = null;

        EObject lv_inputParameter_4_0 = null;

        EObject lv_datasource_12_0 = null;
View Full Code Here

TOP

Related Classes of org.eclipse.emf.common.util.Enumerator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.