public final class ClassConstantsLoader
extends Object
| Constructor and Description |
|---|
ClassConstantsLoader(File classFile)
Constructs an instance.
|
ClassConstantsLoader(InputStream classInputStream)
Constructs an instance.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getClassName()
Gets the class name.
|
Set<String> |
getClassNames()
Gets the class names.
|
List<String> |
getFieldNames(String className)
Gets the field names for a class name.
|
static void |
main(String[] args)
Main entry.
|
public ClassConstantsLoader(@Nonnull
File classFile)
throws IOException
classFile - A class file.IOException - From file access.public ClassConstantsLoader(@Nonnull
InputStream classInputStream)
throws IOException
classInputStream - A class input stream.IOException - From stream access.public static void main(@Nonnull
String[] args)
args - Standard main arguments.@Nonnull @CheckReturnValue public String getClassName()
@Nonnull @CheckReturnValue public Set<String> getClassNames()
@Nonnull
@CheckReturnValue
public List<String> getFieldNames(@Nonnull
String className)
The class name must have been supplied by a call to
getClassNames() on this instance.
className - The class name.Copyright © 2003-2019 Serge Brisson. All Rights Reserved.