public int getSarlElementEcoreType(LightweightTypeReference type) {
		final JvmType jvmType = type.getType();
		if (jvmType instanceof JvmGenericType) {
			return getSarlElementEcoreType((JvmGenericType) jvmType);
		}
		return 0;
	}
public int getSarlElementEcoreType ( LightweightTypeReference type ) { final JvmType jvmType = type . getType ( ) ; if ( jvmType instanceof JvmGenericType ) { return getSarlElementEcoreType ( ( JvmGenericType ) jvmType ) ; } return 0 ; }
Extract and replies the Ecore type, provided by {@link SarlPackage} for the given JvmElement.

@param type the JVM type to test.
@return the code of the type, see {@link SarlPackage}; or {@code 0} if the code is unknown.
@since 0.8