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.IConstructorandIClass.IMethod
-
-
Constructor Summary
Constructors Constructor Description IInvocable()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract AccessgetAccess()IClassgetDeclaringIClass()Returns theIClassthat declares thisIClass.IMember.abstract java.lang.StringgetDescriptor()abstract IClass[]getParameterTypes()abstract IClass[]getThrownExceptions()booleanisLessSpecificThan(IClass.IInvocable that)booleanisMoreSpecificThan(IClass.IInvocable that)abstract java.lang.StringtoString()
-
-
-
Method Detail
-
getAccess
public abstract Access getAccess()
- Specified by:
getAccessin interfaceIClass.IMember- Returns:
- One of
Access.PRIVATE,Access.PROTECTED,Access.DEFAULTandAccess.PUBLIC.
-
getDeclaringIClass
public IClass getDeclaringIClass()
Description copied from interface:IClass.IMemberReturns theIClassthat declares thisIClass.IMember.- Specified by:
getDeclaringIClassin 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.IInvocableis 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:
toStringin classjava.lang.Object
-
-