Package | Description |
---|---|
org.codehaus.janino |
The classes in this package pose the core of the Janino JavaTM compiler.
|
org.codehaus.janino.util |
Application-independent helper classes.
|
Modifier and Type | Class and Description |
---|---|
static class |
Java.MarkerAnnotation
Repreentation of a 'marker annotation', i.e.
|
static class |
Java.NormalAnnotation
A 'normal annotation', i.e.
|
static class |
Java.SingleElementAnnotation
Representation of a 'single-element annotation', i.e.
|
Modifier and Type | Field and Description |
---|---|
Java.Annotation[] |
Java.Modifiers.annotations
The annotations.
|
Modifier and Type | Method and Description |
---|---|
Java.Annotation[] |
UnitCompiler.SimpleIField.getAnnotations() |
Java.Annotation[] |
ReflectionIClass.ReflectionIConstructor.getAnnotations() |
Java.Annotation[] |
ReflectionIClass.ReflectionIMethod.getAnnotations() |
Java.Annotation[] |
ReflectionIClass.ReflectionIField.getAnnotations() |
Java.Annotation[] |
Java.TypeDeclaration.getAnnotations() |
Java.Annotation[] |
Java.AbstractTypeDeclaration.getAnnotations() |
Java.Annotation[] |
Java.FunctionDeclarator.getAnnotations() |
Java.Annotation[] |
Java.FieldDeclaration.getAnnotations() |
Java.Annotation[] |
IClass.IMember.getAnnotations() |
private Java.Annotation |
Parser.parseAnnotation()
Annotation :=
MarkerAnnotation // JLS7 9.7.2
| SingleElementAnnotation // JLS7 9.7.3
| NormalAnnotation // JLS7 9.7.1
MarkerAnnotation := '@' Identifier
SingleElementAnnotation := '@' Identifier '(' ElementValue ')'
NormalAnnotation := '@' TypeName '(' ElementValuePairsOpt ')'
ElementValuePairsOpt := [ ElementValuePair { ',' ElementValuePair } ]
|
Modifier and Type | Method and Description |
---|---|
protected Java.MethodDeclarator |
ScriptEvaluator.makeMethodDeclaration(Location location,
Java.Annotation[] annotations,
boolean staticMethod,
java.lang.Class returnType,
java.lang.String methodName,
java.lang.Class[] parameterTypes,
java.lang.String[] parameterNames,
java.lang.Class[] thrownExceptions,
java.util.List<Java.BlockStatement> statements)
To the given
Java.ClassDeclaration , add
A public method declaration with the given return type, name, parameter
names and values and thrown exceptions
A block
|
private void |
UnparseVisitor.unparseAnnotations(Java.Annotation[] annotations) |
Constructor and Description |
---|
Modifiers(short modifiers,
Java.Annotation[] annotations) |
Modifier and Type | Method and Description |
---|---|
Java.Annotation[] |
ClassFile.MethodInfo.getAnnotations() |
Java.Annotation[] |
ClassFile.FieldInfo.getAnnotations() |
Modifier and Type | Method and Description |
---|---|
private static void |
ClassFile.storeAttributes(java.io.DataOutputStream dos,
java.util.List<ClassFile.AttributeInfo> attributeInfos,
Java.Annotation[] annotations)
u2 attributes_count, attributes[attributes_count]
|
void |
Traverser.traverseAnnotation(Java.Annotation a) |