|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectClassFileConstants
public class ClassFileConstants extends Object
Reads literals from a class file, including from the constant pool and from bytecodes that take immediate arguments.
| Modifier and Type | Class and Description |
|---|---|
static class |
ClassFileConstants.ConstantSet
|
| Constructor and Description |
|---|
ClassFileConstants()
|
| Modifier and Type | Method and Description |
|---|---|
static ClassFileConstants.ConstantSet |
getConstants(String classname)
Returns all the constants found in the given class. |
static ClassFileConstants.ConstantSet |
getConstants(String classname,
ClassFileConstants.ConstantSet result)
Adds all the constants found in the given class into the given ConstantSet, and returns it. |
static void |
main(String[] args)
A simple driver program that prints output literals file format. |
static MultiMap<Class<?>,PrimitiveOrStringOrNullDecl> |
toMap(Collection<ClassFileConstants.ConstantSet> constantSets)
Convert a collection of ConstantSets to the format expected by GenTest.addClassLiterals. |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClassFileConstants()
| Method Detail |
|---|
public static void main(String[] args)
throws IOException
IOExceptionLiteralFileReaderpublic static ClassFileConstants.ConstantSet getConstants(String classname)
getConstants(String,ConstantSet)
public static ClassFileConstants.ConstantSet getConstants(String classname,
ClassFileConstants.ConstantSet result)
getConstants(String)public static MultiMap<Class<?>,PrimitiveOrStringOrNullDecl> toMap(Collection<ClassFileConstants.ConstantSet> constantSets)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||