Examples of booleanValue()


Examples of org.eclipse.jdt.core.dom.BooleanLiteral.booleanValue()

        LabeledResult<TupleLatticeElement<Variable, BooleanConstantLE>> result = LabeledResult.createResult(value);
       
        tVal = ops.copy(value);
        fVal = ops.copy(value);
       
        tVal.put(instr.getTarget(), boolNode.booleanValue() ? BooleanConstantLE.TRUE : BooleanConstantLE.BOTTOM);
        fVal.put(instr.getTarget(), !boolNode.booleanValue() ? BooleanConstantLE.FALSE : BooleanConstantLE.BOTTOM);
        value.put(instr.getTarget(), boolNode.booleanValue() ? BooleanConstantLE.TRUE : BooleanConstantLE.FALSE);
       
        result.put(BooleanLabel.getBooleanLabel(true), tVal);
        result.put(BooleanLabel.getBooleanLabel(false), fVal);
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.impl.BooleanConstant.booleanValue()

        String name = String.valueOf(pair.getName());
        if ("className".equals(name)) {
          className = ((StringConstant) pair.getValue()).stringValue();
        } else if ("instantiable".equals(name)) {
          BooleanConstant value = (BooleanConstant) pair.getValue();
          instantiable = value.booleanValue();
        } else if ("methods".equals(name)) {
          methods = getValueAsStringArray(pair.getValue());
        } else if ("fields".equals(name)) {
          fields = getValueAsStringArray(pair.getValue());
        } else {
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.impl.Constant.booleanValue()

   */
  private static boolean isOptimizedFalse(Expression condition) {
    if (condition != null) {
      Constant cst = condition.optimizedBooleanConstant();
      if (cst != Constant.NotAConstant) {
        if (cst.booleanValue() == false) {
          return true;
        }
      }
    }
    return false;
View Full Code Here

Examples of org.eclipse.uml2.uml.ValueSpecification.booleanValue()

    when(slot.getValues()).thenReturn(valueSpecifications);
    when(valueSpecifications.iterator()).thenReturn(valueSpecificationIter);
    when(valueSpecificationIter.hasNext()).thenReturn(true).thenReturn(
        false);
    when(valueSpecificationIter.next()).thenReturn(valueSpecification);
    when(valueSpecification.booleanValue()).thenReturn(true);

    enumGenerator.generateConstants(enumeration, ast, ed);

    assertEquals("public enum Company {HOME(true)}\n", ed.toString());
  }
View Full Code Here

Examples of org.elasticsearch.common.xcontent.XContentParser.booleanValue()

                } else if ("_scope".equals(currentFieldName)) {
                    scope = parser.text();
                } else if ("_name".equals(currentFieldName)) {
                    filterName = parser.text();
                } else if ("_cache".equals(currentFieldName)) {
                    cache = parser.booleanValue();
                } else if ("_cache_key".equals(currentFieldName) || "_cacheKey".equals(currentFieldName)) {
                    cacheKey = new CacheKeyFilter.Key(parser.text());
                }
            }
        }
View Full Code Here

Examples of org.geotools.parameter.Parameter.booleanValue()

              AbstractGridFormat.GEOTOOLS_WRITE_PARAMS.getName()
                  .toString())) {
            gtParams = (GeoToolsWriteParams) param.getValue();
          }
          if (name.equalsIgnoreCase(grassParam))
            grass = param.booleanValue();
          if (name.equalsIgnoreCase(cellSizeParam))
            forceCellSize = param.booleanValue();
        }
      }
      if (gtParams == null)
View Full Code Here

Examples of org.geotools.xml.schema.ComplexType.booleanValue()

            boolean validation = true;
            if(hints != null && hints.containsKey(DocumentFactory.VALIDATION_HINT)){
                Boolean t = (Boolean)hints.get(DocumentFactory.VALIDATION_HINT);
                if(t!=null)
                    validation = t.booleanValue();
            }
           
            if (validation && ((value == null) || (value.length != 4))) {
                throw new SAXException(
                    "The WFS Capabilites document has the wrong number of children");
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.attribute.chart.ChartAutoPositionAttribute.booleanValue()

   * @return - the <code>Boolean</code> , the value or <code>null</code>, if the attribute is not set and no default value defined.
   */
  public Boolean getChartAutoPositionAttribute() {
    ChartAutoPositionAttribute attr = (ChartAutoPositionAttribute) getOdfAttribute(OdfDocumentNamespace.CHART, "auto-position");
    if (attr != null) {
      return Boolean.valueOf(attr.booleanValue());
    }
    return null;
  }

  /**
 
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.attribute.chart.ChartAutoSizeAttribute.booleanValue()

   * @return - the <code>Boolean</code> , the value or <code>null</code>, if the attribute is not set and no default value defined.
   */
  public Boolean getChartAutoSizeAttribute() {
    ChartAutoSizeAttribute attr = (ChartAutoSizeAttribute) getOdfAttribute(OdfDocumentNamespace.CHART, "auto-size");
    if (attr != null) {
      return Boolean.valueOf(attr.booleanValue());
    }
    return null;
  }

  /**
 
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.attribute.chart.ChartAutomaticContentAttribute.booleanValue()

   * @return - the <code>Boolean</code> , the value or <code>null</code>, if the attribute is not set and no default value defined.
   */
  public Boolean getChartAutomaticContentAttribute() {
    ChartAutomaticContentAttribute attr = (ChartAutomaticContentAttribute) getOdfAttribute(OdfDocumentNamespace.CHART, "automatic-content");
    if (attr != null) {
      return Boolean.valueOf(attr.booleanValue());
    }
    return Boolean.valueOf(ChartAutomaticContentAttribute.DEFAULT_VALUE);
  }

  /**
 
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.