Java Code Examples for org.eclipse.xtext.XtextPackage#RULE_CALL__ARGUMENTS

The following examples show how to use org.eclipse.xtext.XtextPackage#RULE_CALL__ARGUMENTS . 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: RuleCallImpl.java    From xtext-core with Eclipse Public License 2.0 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
	switch (featureID) {
		case XtextPackage.RULE_CALL__RULE:
			setRule((AbstractRule)newValue);
			return;
		case XtextPackage.RULE_CALL__ARGUMENTS:
			getArguments().clear();
			getArguments().addAll((Collection<? extends NamedArgument>)newValue);
			return;
		case XtextPackage.RULE_CALL__EXPLICITLY_CALLED:
			setExplicitlyCalled((Boolean)newValue);
			return;
	}
	super.eSet(featureID, newValue);
}
 
Example 2
Source File: RuleCallImpl.java    From xtext-core with Eclipse Public License 2.0 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void eUnset(int featureID) {
	switch (featureID) {
		case XtextPackage.RULE_CALL__RULE:
			setRule((AbstractRule)null);
			return;
		case XtextPackage.RULE_CALL__ARGUMENTS:
			getArguments().clear();
			return;
		case XtextPackage.RULE_CALL__EXPLICITLY_CALLED:
			setExplicitlyCalled(EXPLICITLY_CALLED_EDEFAULT);
			return;
	}
	super.eUnset(featureID);
}
 
Example 3
Source File: RuleCallImpl.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * @since 2.9
 * <!-- end-user-doc -->
 * @generated
 */
public EList<NamedArgument> getArguments() {
	if (arguments == null) {
		arguments = new EObjectContainmentEList<NamedArgument>(NamedArgument.class, this, XtextPackage.RULE_CALL__ARGUMENTS);
	}
	return arguments;
}
 
Example 4
Source File: RuleCallImpl.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
	switch (featureID) {
		case XtextPackage.RULE_CALL__ARGUMENTS:
			return ((InternalEList<?>)getArguments()).basicRemove(otherEnd, msgs);
	}
	return super.eInverseRemove(otherEnd, featureID, msgs);
}
 
Example 5
Source File: RuleCallImpl.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
	switch (featureID) {
		case XtextPackage.RULE_CALL__RULE:
			if (resolve) return getRule();
			return basicGetRule();
		case XtextPackage.RULE_CALL__ARGUMENTS:
			return getArguments();
		case XtextPackage.RULE_CALL__EXPLICITLY_CALLED:
			return isExplicitlyCalled();
	}
	return super.eGet(featureID, resolve, coreType);
}
 
Example 6
Source File: RuleCallImpl.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public boolean eIsSet(int featureID) {
	switch (featureID) {
		case XtextPackage.RULE_CALL__RULE:
			return rule != null;
		case XtextPackage.RULE_CALL__ARGUMENTS:
			return arguments != null && !arguments.isEmpty();
		case XtextPackage.RULE_CALL__EXPLICITLY_CALLED:
			return explicitlyCalled != EXPLICITLY_CALLED_EDEFAULT;
	}
	return super.eIsSet(featureID);
}