Home
last modified time | relevance | path

Searched refs:asBoolean (Results 1 – 25 of 38) sorted by relevance

12

/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/node/
DTestConversions.java130 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 …]
DTextNodeTest.java29 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()
DTestJsonNode.java27 assertFalse(f.asBoolean()); in testBoolean()
38 assertTrue(t.asBoolean()); in testBoolean()
DTestMissingNode.java25 assertTrue(n.asBoolean(true)); in testMissing()
/external/jsilver/src/com/google/clearsilver/jsilver/compiler/
DBaseCompiledTemplate.java201 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/
DNodeMergeTest.java49 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/
DAndFunction.java31 return literalConstant(left.asBoolean() && right.asBoolean(), left, right); in execute()
DOrFunction.java31 return literalConstant(left.asBoolean() || right.asBoolean(), left, right); in execute()
DNotFunction.java30 return literalConstant(!value.asBoolean(), value); in execute()
/external/jsilver/src/com/google/clearsilver/jsilver/values/
DVariantValue.java39 public boolean asBoolean() { in asBoolean() method in VariantValue
40 return TypeConverter.asBoolean(value()); in asBoolean()
DNumberValue.java36 public boolean asBoolean() { in asBoolean() method in NumberValue
/external/jsilver/src/com/google/clearsilver/jsilver/data/
DTypeConverter.java119 public static boolean asBoolean(String value) { in asBoolean() method in TypeConverter
149 public static boolean asBoolean(Data data) { in asBoolean() method in TypeConverter
DAbstractData.java41 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/
DBooleanNode.java62 public boolean asBoolean() { in asBoolean() method in BooleanNode
67 public boolean asBoolean(boolean defaultValue) { in asBoolean() method in BooleanNode
DShortNode.java84 public boolean asBoolean(boolean defaultValue) { in asBoolean() method in ShortNode
DLongNode.java86 public boolean asBoolean(boolean defaultValue) { in asBoolean() method in LongNode
DPOJONode.java64 public boolean asBoolean(boolean defaultValue) in asBoolean() method in POJONode
DIntNode.java110 public boolean asBoolean(boolean defaultValue) { in asBoolean() method in IntNode
DBigIntegerNode.java97 public boolean asBoolean(boolean defaultValue) { in asBoolean() method in BigIntegerNode
DTextNode.java105 public boolean asBoolean(boolean defaultValue) { in asBoolean() method in TextNode
/external/turbine/java/com/google/turbine/binder/
DConstEvaluator.java337 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/
DJsonNode.java661 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/
DOptBoolean.java39 public Boolean asBoolean() { in asBoolean() method in OptBoolean
DJacksonInject.java112 return construct(src.value(), src.useInput().asBoolean()); in from()
/external/auto/factory/src/main/java/com/google/auto/factory/processor/
DAnnotationValues.java32 static boolean asBoolean(AnnotationValue value) { in asBoolean() method in AnnotationValues

12