Package org.codehaus.janino
Class IClass.IInvocable
- java.lang.Object
-
- org.codehaus.janino.IClass.IInvocable
-
- All Implemented Interfaces:
IClass.IMember
- Direct Known Subclasses:
IClass.IConstructor
,IClass.IMethod
- Enclosing class:
- IClass
public abstract class IClass.IInvocable extends java.lang.Object implements IClass.IMember
Base class forIClass.IConstructor
andIClass.IMethod
-
-
Constructor Summary
Constructors Constructor Description IInvocable()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Access
getAccess()
IClass
getDeclaringIClass()
Returns theIClass
that declares thisIClass.IMember
.abstract java.lang.String
getDescriptor()
abstract IClass[]
getParameterTypes()
abstract IClass[]
getThrownExceptions()
boolean
isLessSpecificThan(IClass.IInvocable that)
boolean
isMoreSpecificThan(IClass.IInvocable that)
abstract java.lang.String
toString()
-
-
-
Method Detail
-
getAccess
public abstract Access getAccess()
- Specified by:
getAccess
in interfaceIClass.IMember
- Returns:
- One of
Access.PRIVATE
,Access.PROTECTED
,Access.DEFAULT
andAccess.PUBLIC
.
-
getDeclaringIClass
public IClass getDeclaringIClass()
Description copied from interface:IClass.IMember
Returns theIClass
that declares thisIClass.IMember
.- Specified by:
getDeclaringIClass
in interfaceIClass.IMember
-
getParameterTypes
public abstract IClass[] getParameterTypes() throws CompileException
- Returns:
- The types of the parameters of this constructor or method
- Throws:
CompileException
-
getDescriptor
public abstract java.lang.String getDescriptor() throws CompileException
- Returns:
- The method descriptor of this constructor or method
- Throws:
CompileException
-
getThrownExceptions
public abstract IClass[] getThrownExceptions() throws CompileException
- Returns:
- The types thrown by this constructor or method
- Throws:
CompileException
-
isMoreSpecificThan
public boolean isMoreSpecificThan(IClass.IInvocable that) throws CompileException
- Returns:
- Whether this
IClass.IInvocable
is more specific thenthat
(in the sense of JLS3 15.12.2.5) - Throws:
CompileException
-
isLessSpecificThan
public boolean isLessSpecificThan(IClass.IInvocable that) throws CompileException
- Throws:
CompileException
-
toString
public abstract java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-