public class CreationResult extends Object
| Constructor and Description |
|---|
CreationResult(String packageName,
com.squareup.javapoet.ClassName interfaceName,
com.squareup.javapoet.ClassName implementationName) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createJavaFile(String packageName,
com.squareup.javapoet.TypeSpec typeSpec,
String rootDirectory,
boolean interf) |
void |
createType(String rootDirectory) |
com.google.common.base.Optional<com.squareup.javapoet.TypeSpec> |
getImplementation() |
com.squareup.javapoet.TypeSpec |
getInterface() |
CreationResult |
getInternalTypeForProperty(String inside) |
com.squareup.javapoet.ClassName |
getJavaName(EventType eventType) |
CreationResult |
internalType(String name) |
CreationResult |
withImplementation(com.squareup.javapoet.TypeSpec spec) |
CreationResult |
withInterface(com.squareup.javapoet.TypeSpec spec) |
CreationResult |
withInternalType(String name,
CreationResult internal) |
public CreationResult(String packageName, com.squareup.javapoet.ClassName interfaceName, com.squareup.javapoet.ClassName implementationName)
public CreationResult withInterface(com.squareup.javapoet.TypeSpec spec)
public CreationResult withImplementation(com.squareup.javapoet.TypeSpec spec)
public com.squareup.javapoet.TypeSpec getInterface()
public com.google.common.base.Optional<com.squareup.javapoet.TypeSpec> getImplementation()
public void createType(String rootDirectory) throws IOException
IOExceptionprotected void createJavaFile(String packageName, com.squareup.javapoet.TypeSpec typeSpec, String rootDirectory, boolean interf) throws IOException
IOExceptionpublic CreationResult getInternalTypeForProperty(String inside)
public com.squareup.javapoet.ClassName getJavaName(EventType eventType)
public CreationResult withInternalType(String name, CreationResult internal)
public CreationResult internalType(String name)
Copyright © 2018 Mulesoft. All rights reserved.