class ClassLiteralExtractor extends DefaultClassVisitor
ClassLiteralExtractor is a ClassVisitor that extracts literals from the bytecode
of each class visited, adding a sequence for each to a map associating a sequence with a type.OperationModel| Modifier and Type | Field and Description |
|---|---|
private MultiMap<ClassOrInterfaceType,Sequence> |
literalMap
Map from a class under test to the literal sequences that appear in it.
|
| Constructor and Description |
|---|
ClassLiteralExtractor(MultiMap<ClassOrInterfaceType,Sequence> literalMap)
Creates a visitor that adds discovered literals to the given map.
|
| Modifier and Type | Method and Description |
|---|---|
void |
visitBefore(java.lang.Class<?> c)
Perform an action on a class.
|
toString, visit, visit, visit, visit, visit, visitAfterprivate MultiMap<ClassOrInterfaceType,Sequence> literalMap
ClassLiteralExtractor(MultiMap<ClassOrInterfaceType,Sequence> literalMap)
literalMap - a map from types to sequences in them that yield a constantpublic void visitBefore(java.lang.Class<?> c)
For each class, this adds a sequence that creates a value of the class type to the literal map.
visitBefore in interface ClassVisitorvisitBefore in class DefaultClassVisitorc - the class to visit