public class StubGenerator extends Object
TODO: StubGenerator needs to be reimplemented, because it no longer works due to changes in JDK 9.
Constructor and Description |
---|
StubGenerator()
Constructs a
StubGenerator that outputs to System.out . |
StubGenerator(OutputStream out)
Constructs a
StubGenerator that outputs to the provided output stream. |
StubGenerator(PrintStream out)
Constructs a
StubGenerator that outputs to the provided output stream. |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args)
The main entry point to StubGenerator.
|
void |
stubFromField(Element elt)
Generate the stub file for all the classes within the provided package.
|
void |
stubFromMethod(ExecutableElement elt)
Generate the stub file for all the classes within the package that contains
elt . |
void |
stubFromPackage(PackageElement packageElement)
Generate the stub file for all the classes within the provided package.
|
void |
stubFromType(TypeElement typeElement)
Generate the stub file for provided class.
|
public StubGenerator()
StubGenerator
that outputs to System.out
.public StubGenerator(PrintStream out)
StubGenerator
that outputs to the provided output stream.out
- the output streampublic StubGenerator(OutputStream out)
StubGenerator
that outputs to the provided output stream.out
- the output streampublic void stubFromField(Element elt)
public void stubFromPackage(PackageElement packageElement)
public void stubFromMethod(ExecutableElement elt)
elt
.elt
- a method or constructor; generate stub files for its packagepublic void stubFromType(TypeElement typeElement)
public static void main(String[] args)
args
- command-line arguments