Package org.codehaus.janino
Class Java.MethodDeclarator
- java.lang.Object
-
- org.codehaus.janino.Java.Located
-
- org.codehaus.janino.Java.AbstractTypeBodyDeclaration
-
- org.codehaus.janino.Java.FunctionDeclarator
-
- org.codehaus.janino.Java.MethodDeclarator
-
- All Implemented Interfaces:
Java.DocCommentable
,Java.Locatable
,Java.Scope
,Java.TypeBodyDeclaration
- Enclosing class:
- Java
public static final class Java.MethodDeclarator extends Java.FunctionDeclarator
Representation of a method declarator.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.codehaus.janino.Java.FunctionDeclarator
Java.FunctionDeclarator.FormalParameter, Java.FunctionDeclarator.FormalParameters
-
-
Field Summary
Fields Modifier and Type Field Description (package private) IClass.IMethod
iMethod
The resolvedIClass.IMethod
.-
Fields inherited from class org.codehaus.janino.Java.FunctionDeclarator
formalParameters, localVariables, modifiers, name, optionalStatements, returnType, thrownExceptions, type
-
Fields inherited from class org.codehaus.janino.Java.AbstractTypeBodyDeclaration
statiC
-
Fields inherited from class org.codehaus.janino.Java.Located
NOWHERE
-
-
Constructor Summary
Constructors Constructor Description MethodDeclarator(Location location, java.lang.String optionalDocComment, Java.Modifiers modifiers, Java.Type type, java.lang.String name, Java.FunctionDeclarator.FormalParameters parameters, Java.Type[] thrownExceptions, java.util.List<? extends Java.BlockStatement> optionalStatements)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(Visitor.FunctionDeclaratorVisitor visitor)
Invokes the 'visit...()
' method ofVisitor.FunctionDeclaratorVisitor
for the concreteJava.FunctionDeclarator
type.void
accept(Visitor.TypeBodyDeclarationVisitor visitor)
Invokes the 'visit...()
' method ofVisitor.TypeBodyDeclarationVisitor
for the concreteJava.TypeBodyDeclaration
type.java.lang.String
toString()
-
Methods inherited from class org.codehaus.janino.Java.FunctionDeclarator
getAnnotations, getDocComment, getEnclosingScope, hasDeprecatedDocTag, setDeclaringType
-
Methods inherited from class org.codehaus.janino.Java.AbstractTypeBodyDeclaration
getDeclaringType, isStatic, setEnclosingScope
-
Methods inherited from class org.codehaus.janino.Java.Located
getLocation, throwCompileException
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.codehaus.janino.Java.Locatable
getLocation, throwCompileException
-
-
-
-
Field Detail
-
iMethod
IClass.IMethod iMethod
The resolvedIClass.IMethod
.
-
-
Constructor Detail
-
MethodDeclarator
public MethodDeclarator(Location location, java.lang.String optionalDocComment, Java.Modifiers modifiers, Java.Type type, java.lang.String name, Java.FunctionDeclarator.FormalParameters parameters, Java.Type[] thrownExceptions, java.util.List<? extends Java.BlockStatement> optionalStatements)
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
accept
public void accept(Visitor.TypeBodyDeclarationVisitor visitor)
Description copied from interface:Java.TypeBodyDeclaration
Invokes the 'visit...()
' method ofVisitor.TypeBodyDeclarationVisitor
for the concreteJava.TypeBodyDeclaration
type.
-
accept
public void accept(Visitor.FunctionDeclaratorVisitor visitor)
Description copied from class:Java.FunctionDeclarator
Invokes the 'visit...()
' method ofVisitor.FunctionDeclaratorVisitor
for the concreteJava.FunctionDeclarator
type.- Specified by:
accept
in classJava.FunctionDeclarator
-
-