| Package | Description |
|---|---|
| org.codehaus.janino |
The core of the Janino JavaTM compiler.
|
| org.codehaus.janino.util |
Application-independent helper classes.
|
| Modifier and Type | Method and Description |
|---|---|
Java.MethodDeclarator |
Java.TypeDeclaration.getMethodDeclaration(String name)
Returns the first method declared with the given name.
|
Java.MethodDeclarator |
Java.AbstractTypeDeclaration.getMethodDeclaration(String name) |
protected Java.MethodDeclarator |
ScriptEvaluator.makeMethodDeclaration(Location location,
Java.Annotation[] annotations,
boolean staticMethod,
Class<?> returnType,
String methodName,
Class<?>[] parameterTypes,
String[] parameterNames,
Class<?>[] thrownExceptions,
List<Java.BlockStatement> statements)
To the given
Java.AbstractClassDeclaration, adds
A public method declaration with the given return type, name, parameter names and values and thrown
exceptions
A block
|
Java.MethodDeclarator |
Parser.parseMethodDeclarationRest(String optionalDocComment,
Java.Modifiers modifiers,
Java.TypeParameter[] optionalTypeParameters,
Java.Type type,
String name)
MethodDeclarationRest :=
FormalParameters
{ '[' ']' }
[ 'throws' ReferenceTypeList ]
( ';' | MethodBody )
|
| Modifier and Type | Method and Description |
|---|---|
List<Java.MethodDeclarator> |
Java.TypeDeclaration.getMethodDeclarations() |
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) |
R |
Visitor.FunctionDeclaratorVisitor.visitMethodDeclarator(Java.MethodDeclarator md)
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
ScriptEvaluator.makeStatements(int idx,
Parser parser,
List<Java.BlockStatement> resultStatements,
List<Java.MethodDeclarator> resultMethods)
Parses statements from the parser until end-of-input.
|
protected void |
ExpressionEvaluator.makeStatements(int idx,
Parser parser,
List<Java.BlockStatement> resultStatements,
List<Java.MethodDeclarator> resultMethods) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
Traverser.traverseMethodDeclarator(Java.MethodDeclarator md) |
Copyright © 2017. All rights reserved.