public final Enumerator ruleEnumLiteralPropertyAttributeType() throws RecognitionException { Enumerator current = null; Token enumLiteral_0=null; enterRule(); try { // InternalDatatype.g:1688:2: ( (enumLiteral_0= 'measurementUnit' ) ) // InternalDatatype.g:1689:2: (enumLiteral_0= 'measurementUnit' ) { // InternalDatatype.g:1689:2: (enumLiteral_0= 'measurementUnit' ) // InternalDatatype.g:1690:3: enumLiteral_0= 'measurementUnit' { enumLiteral_0=(Token)match(input,49,FOLLOW_2); current = grammarAccess.getEnumLiteralPropertyAttributeTypeAccess().getMeasurementUnitEnumLiteralDeclaration().getEnumLiteral().getInstance(); newLeafNode(enumLiteral_0, grammarAccess.getEnumLiteralPropertyAttributeTypeAccess().getMeasurementUnitEnumLiteralDeclaration()); } } leaveRule(); } catch (RecognitionException re) { recover(input,re); appendSkippedTokens(); } finally { } return current; } // $ANTLR end "ruleEnumLiteralPropertyAttributeType"
public final void ruleEnumLiteralPropertyAttributeType() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalFunctionblock.g:938:1: ( ( ( 'measurementUnit' ) ) ) // InternalFunctionblock.g:939:2: ( ( 'measurementUnit' ) ) { // InternalFunctionblock.g:939:2: ( ( 'measurementUnit' ) ) // InternalFunctionblock.g:940:3: ( 'measurementUnit' ) { before(grammarAccess.getEnumLiteralPropertyAttributeTypeAccess().getMeasurementUnitEnumLiteralDeclaration()); // InternalFunctionblock.g:941:3: ( 'measurementUnit' ) // InternalFunctionblock.g:941:4: 'measurementUnit' { match(input,18,FOLLOW_2); } after(grammarAccess.getEnumLiteralPropertyAttributeTypeAccess().getMeasurementUnitEnumLiteralDeclaration()); } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { restoreStackSize(stackSize); } return ; } // $ANTLR end "ruleEnumLiteralPropertyAttributeType"
public final void ruleEnumLiteralPropertyAttributeType() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalDatatype.g:638:1: ( ( ( 'measurementUnit' ) ) ) // InternalDatatype.g:639:2: ( ( 'measurementUnit' ) ) { // InternalDatatype.g:639:2: ( ( 'measurementUnit' ) ) // InternalDatatype.g:640:3: ( 'measurementUnit' ) { before(grammarAccess.getEnumLiteralPropertyAttributeTypeAccess().getMeasurementUnitEnumLiteralDeclaration()); // InternalDatatype.g:641:3: ( 'measurementUnit' ) // InternalDatatype.g:641:4: 'measurementUnit' { match(input,18,FOLLOW_2); } after(grammarAccess.getEnumLiteralPropertyAttributeTypeAccess().getMeasurementUnitEnumLiteralDeclaration()); } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { restoreStackSize(stackSize); } return ; } // $ANTLR end "ruleEnumLiteralPropertyAttributeType"