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