org.eclipse.xtext.xbase.lib.DoubleExtensions Java Examples
The following examples show how to use
org.eclipse.xtext.xbase.lib.DoubleExtensions.
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: ImplicitlyImportedFeatures.java From xtext-extras with Eclipse Public License 2.0 | 6 votes |
protected List<Class<?>> getExtensionClasses() { return Lists.<Class<?>> newArrayList( ArrayExtensions.class, BigDecimalExtensions.class, BigIntegerExtensions.class, BooleanExtensions.class, ByteExtensions.class, CharacterExtensions.class, CollectionExtensions.class, ComparableExtensions.class, DoubleExtensions.class, FloatExtensions.class, FunctionExtensions.class, IntegerExtensions.class, IterableExtensions.class, IteratorExtensions.class, ListExtensions.class, LongExtensions.class, MapExtensions.class, ObjectExtensions.class, ProcedureExtensions.class, ShortExtensions.class, StringExtensions.class); }
Example #2
Source File: StaticImplicitMethodsFeatureForTypeProvider.java From xtext-extras with Eclipse Public License 2.0 | 4 votes |
protected Multimap<Class<?>, Class<?>> simpleComputeExtensionClasses() { Multimap<Class<?>, Class<?>> result = ArrayListMultimap.create(); result.put(String.class, StringExtensions.class); result.put(Double.TYPE, DoubleExtensions.class); result.put(Float.TYPE, FloatExtensions.class); result.put(Long.TYPE, LongExtensions.class); result.put(Integer.TYPE, IntegerExtensions.class); result.put(Character.TYPE, CharacterExtensions.class); result.put(Short.TYPE, ShortExtensions.class); result.put(Byte.TYPE, ByteExtensions.class); result.put(Boolean.TYPE, BooleanExtensions.class); result.put(double[].class, ArrayExtensions.class); result.put(float[].class, ArrayExtensions.class); result.put(long[].class, ArrayExtensions.class); result.put(int[].class, ArrayExtensions.class); result.put(char[].class, ArrayExtensions.class); result.put(short[].class, ArrayExtensions.class); result.put(byte[].class, ArrayExtensions.class); result.put(boolean[].class, ArrayExtensions.class); result.put(BigInteger.class, BigIntegerExtensions.class); result.put(BigDecimal.class, BigDecimalExtensions.class); result.put(Comparable.class, ComparableExtensions.class); result.put(Object.class, ObjectExtensions.class); result.put(List.class, ListExtensions.class); result.put(Collection.class, CollectionExtensions.class); result.put(Map.class, CollectionExtensions.class); result.put(Map.class, MapExtensions.class); result.put(Iterable.class, IterableExtensions.class); result.put(Iterator.class, IteratorExtensions.class); result.put(Functions.Function0.class, FunctionExtensions.class); result.put(Functions.Function1.class, FunctionExtensions.class); result.put(Functions.Function2.class, FunctionExtensions.class); result.put(Functions.Function3.class, FunctionExtensions.class); result.put(Functions.Function4.class, FunctionExtensions.class); result.put(Functions.Function5.class, FunctionExtensions.class); result.put(Functions.Function6.class, FunctionExtensions.class); result.put(Procedures.Procedure0.class, ProcedureExtensions.class); result.put(Procedures.Procedure1.class, ProcedureExtensions.class); result.put(Procedures.Procedure2.class, ProcedureExtensions.class); result.put(Procedures.Procedure3.class, ProcedureExtensions.class); result.put(Procedures.Procedure4.class, ProcedureExtensions.class); result.put(Procedures.Procedure5.class, ProcedureExtensions.class); result.put(Procedures.Procedure6.class, ProcedureExtensions.class); return result; }
Example #3
Source File: XExpressionHelper.java From xtext-extras with Eclipse Public License 2.0 | 4 votes |
public boolean isGetAndAssign(XAbstractFeatureCall featureCall) { if (!(featureCall instanceof XPostfixOperation)) { return false; } if (isOperatorFromExtension(featureCall, OperatorMapping.MINUS_MINUS, DoubleExtensions.class)) { return true; } if (isOperatorFromExtension(featureCall, OperatorMapping.PLUS_PLUS, DoubleExtensions.class)) { return true; } if (isOperatorFromExtension(featureCall, OperatorMapping.MINUS_MINUS, FloatExtensions.class)) { return true; } if (isOperatorFromExtension(featureCall, OperatorMapping.PLUS_PLUS, FloatExtensions.class)) { return true; } if (isOperatorFromExtension(featureCall, OperatorMapping.MINUS_MINUS, LongExtensions.class)) { return true; } if (isOperatorFromExtension(featureCall, OperatorMapping.PLUS_PLUS, LongExtensions.class)) { return true; } if (isOperatorFromExtension(featureCall, OperatorMapping.MINUS_MINUS, IntegerExtensions.class)) { return true; } if (isOperatorFromExtension(featureCall, OperatorMapping.PLUS_PLUS, IntegerExtensions.class)) { return true; } if (isOperatorFromExtension(featureCall, OperatorMapping.MINUS_MINUS, ShortExtensions.class)) { return true; } if (isOperatorFromExtension(featureCall, OperatorMapping.PLUS_PLUS, ShortExtensions.class)) { return true; } if (isOperatorFromExtension(featureCall, OperatorMapping.MINUS_MINUS, CharacterExtensions.class)) { return true; } if (isOperatorFromExtension(featureCall, OperatorMapping.PLUS_PLUS, CharacterExtensions.class)) { return true; } if (isOperatorFromExtension(featureCall, OperatorMapping.MINUS_MINUS, ByteExtensions.class)) { return true; } if (isOperatorFromExtension(featureCall, OperatorMapping.PLUS_PLUS, ByteExtensions.class)) { return true; } return false; }
Example #4
Source File: ConstantOperators.java From xtext-extras with Eclipse Public License 2.0 | 4 votes |
protected Object _minus(final Double e) { return Double.valueOf(DoubleExtensions.operator_minus(e)); }