/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/node/ |
D | TestConversions.java | 130 assertEquals(false, BooleanNode.FALSE.asBoolean()); in testAsBoolean() 131 assertEquals(true, BooleanNode.TRUE.asBoolean()); in testAsBoolean() 132 assertEquals(false, IntNode.valueOf(0).asBoolean()); in testAsBoolean() 133 assertEquals(true, IntNode.valueOf(1).asBoolean()); in testAsBoolean() 134 assertEquals(false, LongNode.valueOf(0).asBoolean()); in testAsBoolean() 135 assertEquals(true, LongNode.valueOf(-34L).asBoolean()); in testAsBoolean() 136 assertEquals(true, new TextNode("true").asBoolean()); in testAsBoolean() 137 assertEquals(false, new TextNode("false").asBoolean()); in testAsBoolean() 138 assertEquals(false, new TextNode("barf").asBoolean()); in testAsBoolean() 139 assertEquals(true, new TextNode("barf").asBoolean(true)); in testAsBoolean() [all …]
|
D | TextNodeTest.java | 29 assertTrue(TextNode.valueOf("true").asBoolean(true)); in testText() 30 assertTrue(TextNode.valueOf("true").asBoolean(false)); in testText() 31 assertFalse(TextNode.valueOf("false").asBoolean(true)); in testText() 32 assertFalse(TextNode.valueOf("false").asBoolean(false)); in testText()
|
D | TestJsonNode.java | 27 assertFalse(f.asBoolean()); in testBoolean() 38 assertTrue(t.asBoolean()); in testBoolean()
|
D | TestMissingNode.java | 25 assertTrue(n.asBoolean(true)); in testMissing()
|
/external/jsilver/src/com/google/clearsilver/jsilver/compiler/ |
D | BaseCompiledTemplate.java | 201 public static boolean asBoolean(boolean value) { in asBoolean() method in BaseCompiledTemplate 205 public static boolean asBoolean(String value) { in asBoolean() method in BaseCompiledTemplate 206 return TypeConverter.asBoolean(value); in asBoolean() 209 public static boolean asBoolean(int value) { in asBoolean() method in BaseCompiledTemplate 213 public static boolean asBoolean(Value value) { in asBoolean() method in BaseCompiledTemplate 214 return value.asBoolean(); in asBoolean() 217 public static boolean asBoolean(Data data) { in asBoolean() method in BaseCompiledTemplate 218 return TypeConverter.asBoolean(data); in asBoolean()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/merge/ |
D | NodeMergeTest.java | 49 assertTrue(base.path("fourth").asBoolean()); in testObjectNodeUpdateValue() 79 assertTrue(resultProps.path("value").asBoolean()); in testObjectDeepUpdate() 97 assertFalse(base.path(2).asBoolean()); in testArrayNodeUpdateValue() 108 assertTrue(w.list.get(2).asBoolean()); in testArrayNodeMerge()
|
/external/jsilver/src/com/google/clearsilver/jsilver/functions/operators/ |
D | AndFunction.java | 31 return literalConstant(left.asBoolean() && right.asBoolean(), left, right); in execute()
|
D | OrFunction.java | 31 return literalConstant(left.asBoolean() || right.asBoolean(), left, right); in execute()
|
D | NotFunction.java | 30 return literalConstant(!value.asBoolean(), value); in execute()
|
/external/jsilver/src/com/google/clearsilver/jsilver/values/ |
D | VariantValue.java | 39 public boolean asBoolean() { in asBoolean() method in VariantValue 40 return TypeConverter.asBoolean(value()); in asBoolean()
|
D | NumberValue.java | 36 public boolean asBoolean() { in asBoolean() method in NumberValue
|
/external/jsilver/src/com/google/clearsilver/jsilver/data/ |
D | TypeConverter.java | 119 public static boolean asBoolean(String value) { in asBoolean() method in TypeConverter 149 public static boolean asBoolean(Data data) { in asBoolean() method in TypeConverter
|
D | AbstractData.java | 41 return TypeConverter.asBoolean(getValue()); in getBooleanValue() 102 return TypeConverter.asBoolean(getChild(path)); in getBooleanValue()
|
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/node/ |
D | BooleanNode.java | 62 public boolean asBoolean() { in asBoolean() method in BooleanNode 67 public boolean asBoolean(boolean defaultValue) { in asBoolean() method in BooleanNode
|
D | ShortNode.java | 84 public boolean asBoolean(boolean defaultValue) { in asBoolean() method in ShortNode
|
D | LongNode.java | 86 public boolean asBoolean(boolean defaultValue) { in asBoolean() method in LongNode
|
D | POJONode.java | 64 public boolean asBoolean(boolean defaultValue) in asBoolean() method in POJONode
|
D | IntNode.java | 110 public boolean asBoolean(boolean defaultValue) { in asBoolean() method in IntNode
|
D | BigIntegerNode.java | 97 public boolean asBoolean(boolean defaultValue) { in asBoolean() method in BigIntegerNode
|
D | TextNode.java | 105 public boolean asBoolean(boolean defaultValue) { in asBoolean() method in TextNode
|
/external/turbine/java/com/google/turbine/binder/ |
D | ConstEvaluator.java | 337 return value.asBoolean(); in coerce() 371 return condition.asBoolean().value() ? evalValue(t.iftrue()) : evalValue(t.iffalse()); in evalConditional() 396 return new Const.BooleanValue(!expr.asBoolean().value()); in unaryNegate() 687 return new Const.BooleanValue(a.asBoolean().value() == b.asBoolean().value()); in equal() 713 return new Const.BooleanValue(a.asBoolean().value() != b.asBoolean().value()); in notEqual() 737 return new Const.BooleanValue(a.asBoolean().value() & b.asBoolean().value()); in bitwiseAnd() 757 return new Const.BooleanValue(a.asBoolean().value() | b.asBoolean().value()); in bitwiseOr() 777 return new Const.BooleanValue(a.asBoolean().value() ^ b.asBoolean().value()); in bitwiseXor() 830 return new Const.BooleanValue(lhs.asBoolean().value() && rhs.asBoolean().value()); in evalBinary() 832 return new Const.BooleanValue(lhs.asBoolean().value() || rhs.asBoolean().value()); in evalBinary()
|
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/ |
D | JsonNode.java | 661 public boolean asBoolean() { in asBoolean() method in JsonNode 662 return asBoolean(false); in asBoolean() 675 public boolean asBoolean(boolean defaultValue) { in asBoolean() method in JsonNode
|
/external/jackson-annotations/src/main/java/com/fasterxml/jackson/annotation/ |
D | OptBoolean.java | 39 public Boolean asBoolean() { in asBoolean() method in OptBoolean
|
D | JacksonInject.java | 112 return construct(src.value(), src.useInput().asBoolean()); in from()
|
/external/auto/factory/src/main/java/com/google/auto/factory/processor/ |
D | AnnotationValues.java | 32 static boolean asBoolean(AnnotationValue value) { in asBoolean() method in AnnotationValues
|