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 | Field and Description |
---|---|
private java.util.List<Java.MethodDeclarator> |
Java.AbstractTypeDeclaration.declaredMethods |
Modifier and Type | Method and Description |
---|---|
Java.MethodDeclarator |
Java.TypeDeclaration.getMethodDeclaration(java.lang.String name)
Return the first method declared with the given name.
|
Java.MethodDeclarator |
Java.AbstractTypeDeclaration.getMethodDeclaration(java.lang.String name) |
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
|
Java.MethodDeclarator |
Parser.parseMethodDeclarationRest(java.lang.String optionalDocComment,
Java.Modifiers modifiers,
Java.Type type,
java.lang.String name)
MethodDeclarationRest :=
FormalParameters
{ '[' ']' }
[ 'throws' ReferenceTypeList ]
( ';' | MethodBody )
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Java.MethodDeclarator> |
Java.TypeDeclaration.getMethodDeclarations() |
java.util.List<Java.MethodDeclarator> |
Java.AbstractTypeDeclaration.getMethodDeclarations() |
Modifier and Type | Method and Description |
---|---|
void |
Java.AbstractTypeDeclaration.addDeclaredMethod(Java.MethodDeclarator method)
Adds one
Java.MethodDeclarator to this type. |
IClass.IMethod |
UnitCompiler.toIMethod(Java.MethodDeclarator methodDeclarator) |
void |
Visitor.FunctionDeclaratorVisitor.visitMethodDeclarator(Java.MethodDeclarator md)
Invoked by
accept(Visitor.TypeBodyDeclarationVisitor) |
void |
UnparseVisitor.visitMethodDeclarator(Java.MethodDeclarator md) |
Modifier and Type | Method and Description |
---|---|
void |
Traverser.traverseMethodDeclarator(Java.MethodDeclarator md) |