public final class UnreachableCodeWorker extends AbstractPatternWorker
| Modifier and Type | Class and Description |
|---|---|
class |
UnreachableCodeWorker.Helper
Provides user-level APIs necessary for unreachable code processing.
|
| Modifier and Type | Field and Description |
|---|---|
private static long |
RES_FALSE
Expression evaluates to
false. |
private static long |
RES_TRUE
Expression evaluates to
true. |
private static long |
RES_UNKNOWN
Expression cannot be evaluated statically.
|
| Constructor and Description |
|---|
UnreachableCodeWorker()
Default constructor which initializes libraries.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
resolveConstant(java.lang.String constant)
Resolve constant name into its value.
|
getCopy, getLibrary, getResolver, getSource, isConditionalRuleSets, isFlagActivated, isRuntimeQueryMode, registerTree, setLibraryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfinish, initialize, leaveAst, visitAstprivate static final long RES_FALSE
false.private static final long RES_TRUE
true.private static final long RES_UNKNOWN
public UnreachableCodeWorker()
public java.lang.Object resolveConstant(java.lang.String constant)
resolveConstant in interface PatternWorkerresolveConstant in class AbstractPatternWorkerconstant - Name of the constant.null if
the name is unknown.