com.google.caja.ancillary.opt
Class Fact
java.lang.Object
com.google.caja.ancillary.opt.Fact
public final class Fact
- extends java.lang.Object
A piece of knowledge about the environment a JavaScript program might run in.
- Author:
- mikesamuel@gmail.com
Nested Class Summary |
(package private) static class |
Fact.Type
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
type
final Fact.Type type
value
final Expression value
UNK
private static final FilePosition UNK
TRUTHY
static Fact TRUTHY
FALSEY
static Fact FALSEY
TRUE
static Fact TRUE
FALSE
static Fact FALSE
UNDEFINED
static Fact UNDEFINED
GLOBAL
static Fact GLOBAL
Fact
private Fact(Fact.Type type,
Expression value)
isLessSpecificThan
boolean isLessSpecificThan(Fact that)
is
public static Fact is(Literal value)
isTruthy
boolean isTruthy()
isFalsey
boolean isFalsey()
isTrue
boolean isTrue()
isFalse
boolean isFalse()
isGlobal
boolean isGlobal()
isUndefined
boolean isUndefined()
isSubstitutable
boolean isSubstitutable(boolean isFuzzy)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright (C) 2008 Google Inc.
Licensed under the Apache License, Version 2.0