Java Code Examples for org.eclipse.xtext.XtextPackage#PARSER_RULE__PARAMETERS
The following examples show how to use
org.eclipse.xtext.XtextPackage#PARSER_RULE__PARAMETERS .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ParserRuleImpl.java From xtext-core with Eclipse Public License 2.0 | 6 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case XtextPackage.PARSER_RULE__DEFINES_HIDDEN_TOKENS: return isDefinesHiddenTokens(); case XtextPackage.PARSER_RULE__HIDDEN_TOKENS: return getHiddenTokens(); case XtextPackage.PARSER_RULE__PARAMETERS: return getParameters(); case XtextPackage.PARSER_RULE__FRAGMENT: return isFragment(); case XtextPackage.PARSER_RULE__WILDCARD: return isWildcard(); } return super.eGet(featureID, resolve, coreType); }
Example 2
Source File: ParserRuleImpl.java From xtext-core with Eclipse Public License 2.0 | 6 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @SuppressWarnings("unchecked") @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case XtextPackage.PARSER_RULE__DEFINES_HIDDEN_TOKENS: setDefinesHiddenTokens((Boolean)newValue); return; case XtextPackage.PARSER_RULE__HIDDEN_TOKENS: getHiddenTokens().clear(); getHiddenTokens().addAll((Collection<? extends AbstractRule>)newValue); return; case XtextPackage.PARSER_RULE__PARAMETERS: getParameters().clear(); getParameters().addAll((Collection<? extends Parameter>)newValue); return; case XtextPackage.PARSER_RULE__FRAGMENT: setFragment((Boolean)newValue); return; case XtextPackage.PARSER_RULE__WILDCARD: setWildcard((Boolean)newValue); return; } super.eSet(featureID, newValue); }
Example 3
Source File: ParserRuleImpl.java From xtext-core with Eclipse Public License 2.0 | 6 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case XtextPackage.PARSER_RULE__DEFINES_HIDDEN_TOKENS: setDefinesHiddenTokens(DEFINES_HIDDEN_TOKENS_EDEFAULT); return; case XtextPackage.PARSER_RULE__HIDDEN_TOKENS: getHiddenTokens().clear(); return; case XtextPackage.PARSER_RULE__PARAMETERS: getParameters().clear(); return; case XtextPackage.PARSER_RULE__FRAGMENT: setFragment(FRAGMENT_EDEFAULT); return; case XtextPackage.PARSER_RULE__WILDCARD: setWildcard(WILDCARD_EDEFAULT); return; } super.eUnset(featureID); }
Example 4
Source File: ParserRuleImpl.java From xtext-core with Eclipse Public License 2.0 | 6 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case XtextPackage.PARSER_RULE__DEFINES_HIDDEN_TOKENS: return definesHiddenTokens != DEFINES_HIDDEN_TOKENS_EDEFAULT; case XtextPackage.PARSER_RULE__HIDDEN_TOKENS: return hiddenTokens != null && !hiddenTokens.isEmpty(); case XtextPackage.PARSER_RULE__PARAMETERS: return parameters != null && !parameters.isEmpty(); case XtextPackage.PARSER_RULE__FRAGMENT: return fragment != FRAGMENT_EDEFAULT; case XtextPackage.PARSER_RULE__WILDCARD: return wildcard != WILDCARD_EDEFAULT; } return super.eIsSet(featureID); }
Example 5
Source File: ParserRuleImpl.java From xtext-core with Eclipse Public License 2.0 | 5 votes |
/** * <!-- begin-user-doc --> * @since 2.9 * <!-- end-user-doc --> * @generated */ public EList<Parameter> getParameters() { if (parameters == null) { parameters = new EObjectContainmentEList<Parameter>(Parameter.class, this, XtextPackage.PARSER_RULE__PARAMETERS); } return parameters; }
Example 6
Source File: ParserRuleImpl.java From xtext-core with Eclipse Public License 2.0 | 5 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case XtextPackage.PARSER_RULE__PARAMETERS: return ((InternalEList<?>)getParameters()).basicRemove(otherEnd, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); }