public class StubGenerator
extends java.lang.Object
A stub file can be used to add annotations to methods of classes, that are only available in binary or the source of which cannot be edited.
Constructor and Description |
---|
StubGenerator()
Constructs an instanceof
IndexGenerator that outputs to System.out . |
StubGenerator(java.io.OutputStream out)
Constructs an instance of
IndexGenerator that outputs to the provided output stream. |
StubGenerator(java.io.PrintStream out)
Constructs an instance of
IndexGenerator that outputs to the provided output stream. |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args) |
void |
stubFromField(javax.lang.model.element.Element elt)
Generate the stub file for all the classes within the provided package.
|
void |
stubFromMethod(javax.lang.model.element.Element elt)
Generate the stub file for all the classes within the provided package.
|
void |
stubFromPackage(javax.lang.model.element.PackageElement packageElement)
Generate the stub file for all the classes within the provided package.
|
void |
stubFromType(javax.lang.model.element.TypeElement typeElement)
Generate the stub file for provided class.
|
public StubGenerator()
IndexGenerator
that outputs to System.out
.public StubGenerator(java.io.PrintStream out)
IndexGenerator
that outputs to the provided output stream.out
- the output streampublic StubGenerator(java.io.OutputStream out)
IndexGenerator
that outputs to the provided output stream.out
- the output streampublic void stubFromField(javax.lang.model.element.Element elt)
public void stubFromPackage(javax.lang.model.element.PackageElement packageElement)
public void stubFromMethod(javax.lang.model.element.Element elt)
public void stubFromType(javax.lang.model.element.TypeElement typeElement)
public static void main(java.lang.String[] args)