@InterfaceAudience.LimitedPrivate(value={"YARN","MapReduce"}) public class HamletGen extends Object
Constructor and Description |
---|
HamletGen() |
Modifier and Type | Method and Description |
---|---|
void |
generate(Class<?> specClass,
Class<?> implClass,
String outputName,
String outputPkg)
Generate a specific Hamlet implementation from a spec.
|
static void |
main(String[] args) |
public void generate(Class<?> specClass, Class<?> implClass, String outputName, String outputPkg) throws IOException
specClass
- holds hamlet interfaces. e.g. HamletSpec
implClass
- a generic hamlet implementation. e.g. HamletImpl
outputName
- name of the output class. e.g. Hamlet
outputPkg
- package name of the output class.IOException
Copyright © 2008–2019 Apache Software Foundation. All rights reserved.