public class AddAnnotatedFor extends Object
@AnnotatedFor
class annotations. The main(java.lang.String[])
method acts as
a filter: it reads a JAIF from standard input and writes an augmented JAIF to standard output.Constructor and Description |
---|
AddAnnotatedFor() |
Modifier and Type | Method and Description |
---|---|
static void |
addAnnotatedFor(scenelib.annotations.el.AScene scene)
Add
@AnnotatedFor annotations to each class in the given scene. |
static void |
main(String[] args)
Reads JAIF from the file indicated by the first element, or standard input if the argument
array is empty; inserts any appropriate
@AnnotatedFor annotations, based on the
annotations defined in the input JAIF; and writes the augmented JAIF to standard output. |
public static void main(String[] args) throws IOException, scenelib.annotations.el.DefException, scenelib.annotations.io.ParseException
@AnnotatedFor
annotations, based on the
annotations defined in the input JAIF; and writes the augmented JAIF to standard output.args
- one jaif file, or empty to read from standard inputIOException
- if there is trouble reading or writing a filescenelib.annotations.el.DefException
- if two definitions cannot be unifiedscenelib.annotations.io.ParseException
- if the file is malformedpublic static void addAnnotatedFor(scenelib.annotations.el.AScene scene)
@AnnotatedFor
annotations to each class in the given scene.scene
- an @AnnotatedFor
annotation is added to each class in this scene