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 | Method and Description |
---|---|
Java.MethodDeclarator |
Java.TypeDeclaration.getMethodDeclaration(String name)
Return 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.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(String optionalDocComment,
Java.Modifiers modifiers,
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) |
void |
UnparseVisitor.visitMethodDeclarator(Java.MethodDeclarator md) |
void |
Visitor.FunctionDeclaratorVisitor.visitMethodDeclarator(Java.MethodDeclarator md)
Invoked by
accept(Visitor.TypeBodyDeclarationVisitor) |
Modifier and Type | Method and Description |
---|---|
void |
Traverser.traverseMethodDeclarator(Java.MethodDeclarator md) |
Copyright © 2001–2016. All rights reserved.