GeneratedClasses
| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private final GeneratedClass | |
| private final Map | |
| private final GeneratedMethods | |
| private final ClassName | |
| private final Consumer |
| Access | Constructor and Description |
|---|---|
| pack-priv | GeneratedClass(ClassName
the generated name name, Consumer<TypeSpec.a typeConsumer used to build the typeCreate a new |
| private |
| Modifier and Type | Method and Description |
|---|---|
| private TypeSpec. | |
| pack-priv void | |
| pack-priv JavaFile | |
| private String | |
| private TypeSpec. | |
| public GeneratedClass | Returns: the enclosing generated class, if anyReturn the enclosing |
| public GeneratedMethods | |
| public ClassName | |
| public GeneratedClass | |
| public void | reserveMethodNames(String...
the reserved method names reservedMethodNames)Update this instance with a set of reserved method names that should not be used for generated methods. |
| declaredClasses | back to summary |
|---|---|
| private final Map<ClassName, GeneratedClass> declaredClasses | |
| enclosingClass | back to summary |
|---|---|
| private final GeneratedClass enclosingClass
| |
| methodNameSequenceGenerator | back to summary |
|---|---|
| private final Map<MethodName, AtomicInteger> methodNameSequenceGenerator | |
| methods | back to summary |
|---|---|
| private final GeneratedMethods methods | |
| name | back to summary |
|---|---|
| private final ClassName name | |
| type | back to summary |
|---|---|
| private final Consumer<TypeSpec. | |
| GeneratedClass | back to summary |
|---|---|
| pack-priv GeneratedClass(ClassName name, Consumer<TypeSpec. Create a new | |
| GeneratedClass | back to summary |
|---|---|
| private GeneratedClass(GeneratedClass enclosingClass, ClassName name, Consumer<TypeSpec. | |
| apply | back to summary |
|---|---|
| private TypeSpec. | |
| assertSameType | back to summary |
|---|---|
| pack-priv void assertSameType(Consumer<TypeSpec. | |
| generateJavaFile | back to summary |
|---|---|
| pack-priv JavaFile generateJavaFile() | |
| generateSequencedMethodName | back to summary |
|---|---|
| private String generateSequencedMethodName(MethodName name) | |
| getBuilder | back to summary |
|---|---|
| private TypeSpec. | |
| getEnclosingClass | back to summary |
|---|---|
| public GeneratedClass getEnclosingClass() Return the enclosing
| |
| getMethods | back to summary |
|---|---|
| public GeneratedMethods getMethods() Return generated methods for this instance.
| |
| getName | back to summary |
|---|---|
| public ClassName getName() Return the name of the generated class.
| |
| getOrAdd | back to summary |
|---|---|
| public GeneratedClass getOrAdd(String name, Consumer<TypeSpec. Get or add a nested generated class with the specified name. If this method
has previously been called with the given | |
| reserveMethodNames | back to summary |
|---|---|
| public void reserveMethodNames(String... reservedMethodNames) Update this instance with a set of reserved method names that should not be used for generated methods. Reserved names are often needed when a generated class implements a specific interface.
| |