Package org.formulacompiler.runtime

Examples of org.formulacompiler.runtime.ScaledLong


        }
        compile_util_fromMsSinceUTC1970();
        return;
      }

      final ScaledLong scale = scaleOf( _method );
      if (scale != null && scale.value() != 0) {
        if (returnType == Long.class) {
          compile_util_unboxLong();
        }
        if (!compileConversionFrom( scale )) {
          throw new CompilerException.UnsupportedDataType( "Scaled long inputs not supported by " + this + "." );
View Full Code Here


          compile_util_boxLong();
        }
        return;
      }

      final ScaledLong scale = scaleOf( _method );
      if (scale != null && scale.value() != 0) {
        if (compileConversionTo( scale )) {
          if (returnType == Long.class) {
            mv().visitMethodInsn( Opcodes.INVOKESTATIC, "java/lang/Long", "valueOf", J2LONG );
          }
        }
View Full Code Here

  protected abstract boolean isNativeType( Class _type );


  protected final ScaledLong scaleOf( Method _method )
  {
    final ScaledLong typeScale = _method.getDeclaringClass().getAnnotation( ScaledLong.class );
    final ScaledLong mtdScale = _method.getAnnotation( ScaledLong.class );
    final ScaledLong scale = (mtdScale != null) ? mtdScale : typeScale;
    return scale;
  }
View Full Code Here

TOP

Related Classes of org.formulacompiler.runtime.ScaledLong

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.