Examples of Value


Examples of com.icl.saxon.expr.Value

     */
    public boolean evaluateAsBoolean(Node contextNode, String str, PrefixResolver resolver)
    {
        try
        {
            Value value = evaluate(contextNode, str, resolver);
            if (value == null)
            {
                return false;
            }

            return value.asBoolean();
        }
        catch (final Exception e)
        {
            if (getLogger().isDebugEnabled()) {
                getLogger().debug("Failed to evaluate '" + str + "'", e);
View Full Code Here

Examples of com.litecoding.smali2java.entity.smali.Value

          innerRule instanceof Rule_smaliFieldRef ||
          innerRule instanceof Rule_smaliMethodRef) {
        command.getArguments().add((SmaliCodeEntity)innerRule.accept(this));
      } else if(innerRule instanceof Rule_intValue ||
          innerRule instanceof Rule_strValue) {
        Value innerValue = new Value();
        innerValue.setName(innerRule.spelling);
        command.getArguments().add(innerValue);
      } else if(innerRule instanceof Rule_todoStubLine) {
        System.err.println("Warning: " + command.getName() + " is not fully supported");
      }
    }
View Full Code Here

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

Examples of com.persistit.Value

            try {
                final Exchange ex = setupExchange();
                if (ex.getKey().getEncodedSize() == 0)
                    return "";
                ex.fetch();
                final Value value = ex.getValue();
                if (!value.isDefined())
                    return "undefined";
                return value.getType().getName();
            } catch (final PersistitException de) {
                return de.toString();
            }
        }
View Full Code Here

Examples of com.redhat.ceylon.compiler.typechecker.model.Value

        out(names.name(d), ".$$;");
    }

    private void addObjectToPrototype(ClassOrInterface type, final Tree.ObjectDefinition objDef) {
        objectDefinition(objDef);
        Value d = objDef.getDeclarationModel();
        Class c = (Class) d.getTypeDeclaration();
        out(names.self(type), ".", names.name(c), "=", names.name(c), ";",
                names.self(type), ".", names.name(c), ".$crtmm$=");
        TypeUtils.encodeForRuntime(objDef, d, this);
        endLine(true);
    }
View Full Code Here

Examples of com.sleepycat.je.rep.elections.Protocol.Value

                               " Promised proposal: " + promisedProposal);
            return protocol.new Reject(promisedProposal);
        }

        promisedProposal = propose.getProposal();
        final Value suggestedValue = suggestionGenerator.get(promisedProposal);
        final long suggestionRanking =
            suggestionGenerator.getRanking(promisedProposal);
        LoggerUtils.logMsg(logger, envImpl, formatter, Level.FINE,
                           "Promised: " + promisedProposal +
                           " Suggested Value: " + suggestedValue +
View Full Code Here

Examples of com.sun.jdi.Value

        LocalVariable var = (LocalVariable) method.variables().get( 0 );//frame

        ClassType frameType = (ClassType) var.type();

        StackFrame frame = getUnderlyingStackFrame();
        Value value = frame.getValue( var );
        //getThread().getTopStackFrame().get

        //IValue value = jdivar.getValue();
        ObjectReferenceImpl o = (ObjectReferenceImpl) value;

        //if ( value instanceof JDINullValue ) {
        // return null;
        // }

        //ObjectReference o = (ObjectReference) ((JDIObjectValue) value).getUnderlyingObject();
        if ( o == null ) {
            return null;
        }

        Field field = frameType.fieldByName( methodName );
        Value val = o.getValue( field );
        return val;
    }
View Full Code Here

Examples of com.sun.tools.txw2.model.Value

        if(t==null) t = string;
        return t;
    }

    public Leaf makeValue(String datatypeLibrary, String type, String value, Context c, String ns, LocatorImpl locator, AnnotationsImpl annotations) throws BuildException {
        return new Value(locator,getType(datatypeLibrary, type),value);
    }
View Full Code Here

Examples of com.svanloon.game.wizard.core.card.Value

    int diamondStrength = 0;
    int clubStrength = 0;

    for (Card card:this.hand) {
      Suit suit = card.getSuit();
      Value value = card.getValue();
      if(suit.equals(Suit.NONE)) {
        // nothing
      } else if(suit.equals(Suit.HEART)) {
        heartStrength += value.getIndex();
      } else if(suit.equals(Suit.SPADE)) {
        spadeStrength += value.getIndex();
      } else if(suit.equals(Suit.DIAMOND)) {
        diamondStrength += value.getIndex();
      } else if(suit.equals(Suit.CLUB)) {
        clubStrength += value.getIndex();
      }
    }

    if(heartCount >= spadeCount && heartCount >= clubCount && heartCount >= diamondCount) {
      if(heartStrength >= spadeStrength && heartStrength >= clubStrength && heartStrength >= diamondStrength) {
View Full Code Here

Examples of com.volantis.mcs.build.themes.definitions.values.Value

            pushObject(pair);
            processThemePropertyChildren(element);
            popObject();

            ListValue value = definitionsFactory.createListValue();
            Value next = null;
            while((next = pair.getNext())!=null){
                value.setNext(next);
            }
           
            ValueContainer container =
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.