Examples of toInt()


Examples of _api.alienfactory.javamappy.Colour.toInt()

      colourIndex = mapHeader.getChromeKeyIndex();
      chromeKey  = colours[colourIndex];
    } else {
      chromeKey  = mapHeader.getChromeKey();
    }
    int transparent  = chromeKey.toInt();


        PixelData pixelData;
    log.info("Reading [" + mapHeader.getNoOfImages() + "] images...");
    for (int i=0; i < mapHeader.getNoOfImages(); i++) {
View Full Code Here

Examples of anvil.core.Any.toInt()

        switch(value.typeOf()) {
        case IS_NULL:
        case IS_UNDEFINED:
          break;
        case IS_INT:
          _access.write(value.toInt());
          break;
        case IS_BINARY:
          n = value.sizeOf();
          if (n > 0) {
            _access.write(value.toBinary(), 0, n);
View Full Code Here

Examples of anvil.core.Any.toInt()

        switch(value.typeOf()) {
        case IS_NULL:
        case IS_UNDEFINED:
          break;
        case IS_INT:
          _output.write(value.toInt());
          break;
        case IS_BINARY:
          int len = value.sizeOf();
          if (n > 0) {
            _output.write(value.toBinary(), 0, len);
View Full Code Here

Examples of anvil.core.Any.toInt()

            code.invokevirtual(pool.addMethodRef(TYPE_ANY,
              "toInt", "()I"));           
          }
        } else {
          if (defaultValue != null) {
            code.iconst(defaultValue.toInt());
          } else {
            code.iconst(0);
          }
        }
        break;
View Full Code Here

Examples of anvil.core.Any.toInt()

      } else if (param instanceof AnyAttributes) {
        attributes = (Attributes)param.toObject();
      } else if (param.isString()) {
        sname = param.toString();
      } else if (param.isInt()) {
        modop = param.toInt();
      } else if (param.isMap()) {
        break;
      } else {
        break;
      }
View Full Code Here

Examples of anvil.core.Any.toInt()

    Name name = _name;
    if (index.isRange()) {
      AnyRange r = index.toRange();
      int size   = name.size();
      Any a      = r.getLeft();
      int start  = a.isDefined() ? a.toInt() : 0;
      a          = r.getRight();
      int end    = a.isDefined() ? a.toInt() : size;
      long l     = ArrayUtils.adjust2(start, end, size);
      start      = (int)(l & 0xffffffff);
      int length = (int)(l >> 32);
View Full Code Here

Examples of anvil.core.Any.toInt()

      AnyRange r = index.toRange();
      int size   = name.size();
      Any a      = r.getLeft();
      int start  = a.isDefined() ? a.toInt() : 0;
      a          = r.getRight();
      int end    = a.isDefined() ? a.toInt() : size;
      long l     = ArrayUtils.adjust2(start, end, size);
      start      = (int)(l & 0xffffffff);
      int length = (int)(l >> 32);
      if (start == 0) {
        return new AnyName(name.getPrefix(length));
View Full Code Here

Examples of anvil.core.Any.toInt()

      Name name = _name;
      if (index.isRange()) {
        AnyRange r = index.toRange();
        int size   = _name.size();
        Any a      = r.getLeft();
        int start  = a.isDefined() ? a.toInt() : 0;
        a          = r.getRight();
        int end    = a.isDefined() ? a.toInt() : size;
        long l     = ArrayUtils.adjust2(start, end, size);
        start      = (int)(l & 0xffffffff);
        int length = (int)(l >> 32);
View Full Code Here

Examples of anvil.core.Any.toInt()

        AnyRange r = index.toRange();
        int size   = _name.size();
        Any a      = r.getLeft();
        int start  = a.isDefined() ? a.toInt() : 0;
        a          = r.getRight();
        int end    = a.isDefined() ? a.toInt() : size;
        long l     = ArrayUtils.adjust2(start, end, size);
        start      = (int)(l & 0xffffffff);
        int length = (int)(l >> 32);
        while(length-- > 0) {
          name.remove(start);
View Full Code Here

Examples of anvil.core.Any.toInt()

    Any index = parameters[0];
    if (index instanceof AnySynapse) {
      Synapse synapse = (Synapse)index.toObject();
      _dim.remove(synapse);
    } else {
      _dim.remove(index.toInt());
    }
    return this;
 
 
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.