Package com.opera.core.systems.scope.protos.EcmascriptProtos

Examples of com.opera.core.systems.scope.protos.EcmascriptProtos.Value


        throw new ScopeException("Out of memory");
      case FAILURE:
        throw new ScopeException("Could not execute script");
    }

    Value value = result.getValue();
    Type type = value.getType();

    switch (type) {
      case STRING:
        return value.getStr();
      case FALSE:
        return false;
      case TRUE:
        return true;
      case OBJECT:
        return value.getObject();
      case NUMBER:
        return parseNumber(String.valueOf(value.getNumber()));
      case NAN:
        return Float.NaN;
      case MINUS_INFINITY:
        return Float.NEGATIVE_INFINITY;
      case PLUS_INFINITY:
View Full Code Here

TOP

Related Classes of com.opera.core.systems.scope.protos.EcmascriptProtos.Value

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.