Java Code Examples for org.eclipse.xtext.common.types.TypesPackage#JVM_FIELD__STATIC

The following examples show how to use org.eclipse.xtext.common.types.TypesPackage#JVM_FIELD__STATIC . 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: JvmFieldImpl.java    From xtext-extras with Eclipse Public License 2.0 6 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 TypesPackage.JVM_FIELD__STATIC:
			return isStatic();
		case TypesPackage.JVM_FIELD__FINAL:
			return isFinal();
		case TypesPackage.JVM_FIELD__TYPE:
			return getType();
		case TypesPackage.JVM_FIELD__VOLATILE:
			return isVolatile();
		case TypesPackage.JVM_FIELD__TRANSIENT:
			return isTransient();
		case TypesPackage.JVM_FIELD__CONSTANT:
			return isConstant();
		case TypesPackage.JVM_FIELD__CONSTANT_VALUE:
			return getConstantValue();
	}
	return super.eGet(featureID, resolve, coreType);
}
 
Example 2
Source File: JvmFieldImpl.java    From xtext-extras with Eclipse Public License 2.0 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public boolean eIsSet(int featureID)
{
	switch (featureID)
	{
		case TypesPackage.JVM_FIELD__STATIC:
			return static_ != STATIC_EDEFAULT;
		case TypesPackage.JVM_FIELD__FINAL:
			return final_ != FINAL_EDEFAULT;
		case TypesPackage.JVM_FIELD__TYPE:
			return type != null;
		case TypesPackage.JVM_FIELD__VOLATILE:
			return volatile_ != VOLATILE_EDEFAULT;
		case TypesPackage.JVM_FIELD__TRANSIENT:
			return transient_ != TRANSIENT_EDEFAULT;
		case TypesPackage.JVM_FIELD__CONSTANT:
			return isSetConstant();
		case TypesPackage.JVM_FIELD__CONSTANT_VALUE:
			return CONSTANT_VALUE_EDEFAULT == null ? constantValue != null : !CONSTANT_VALUE_EDEFAULT.equals(constantValue);
	}
	return super.eIsSet(featureID);
}
 
Example 3
Source File: JvmFieldItemProvider.java    From xtext-eclipse with Eclipse Public License 2.0 6 votes vote down vote up
/**
 * This handles model notifications by calling {@link #updateChildren} to update any cached
 * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void notifyChanged(Notification notification)
{
	updateChildren(notification);

	switch (notification.getFeatureID(JvmField.class))
	{
		case TypesPackage.JVM_FIELD__STATIC:
		case TypesPackage.JVM_FIELD__FINAL:
		case TypesPackage.JVM_FIELD__VOLATILE:
		case TypesPackage.JVM_FIELD__TRANSIENT:
		case TypesPackage.JVM_FIELD__CONSTANT:
		case TypesPackage.JVM_FIELD__CONSTANT_VALUE:
			fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
			return;
		case TypesPackage.JVM_FIELD__TYPE:
			fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
			return;
	}
	super.notifyChanged(notification);
}
 
Example 4
Source File: JvmFieldImpl.java    From xtext-extras with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void eSet(int featureID, Object newValue)
{
	switch (featureID)
	{
		case TypesPackage.JVM_FIELD__STATIC:
			setStatic((Boolean)newValue);
			return;
		case TypesPackage.JVM_FIELD__FINAL:
			setFinal((Boolean)newValue);
			return;
		case TypesPackage.JVM_FIELD__TYPE:
			setType((JvmTypeReference)newValue);
			return;
		case TypesPackage.JVM_FIELD__VOLATILE:
			setVolatile((Boolean)newValue);
			return;
		case TypesPackage.JVM_FIELD__TRANSIENT:
			setTransient((Boolean)newValue);
			return;
		case TypesPackage.JVM_FIELD__CONSTANT:
			setConstant((Boolean)newValue);
			return;
		case TypesPackage.JVM_FIELD__CONSTANT_VALUE:
			setConstantValue(newValue);
			return;
	}
	super.eSet(featureID, newValue);
}
 
Example 5
Source File: JvmFieldImpl.java    From xtext-extras with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void eUnset(int featureID)
{
	switch (featureID)
	{
		case TypesPackage.JVM_FIELD__STATIC:
			setStatic(STATIC_EDEFAULT);
			return;
		case TypesPackage.JVM_FIELD__FINAL:
			setFinal(FINAL_EDEFAULT);
			return;
		case TypesPackage.JVM_FIELD__TYPE:
			setType((JvmTypeReference)null);
			return;
		case TypesPackage.JVM_FIELD__VOLATILE:
			setVolatile(VOLATILE_EDEFAULT);
			return;
		case TypesPackage.JVM_FIELD__TRANSIENT:
			setTransient(TRANSIENT_EDEFAULT);
			return;
		case TypesPackage.JVM_FIELD__CONSTANT:
			unsetConstant();
			return;
		case TypesPackage.JVM_FIELD__CONSTANT_VALUE:
			setConstantValue(CONSTANT_VALUE_EDEFAULT);
			return;
	}
	super.eUnset(featureID);
}