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 for IClass.IConstructor and IClass.IMethod.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
IClass.IInvocable
public IClass.IInvocable()
setArgsNeedAdjust
public void setArgsNeedAdjust(boolean newVal)
- TODO
argsNeedAdjust
public boolean argsNeedAdjust()
- TODO
isVarargs
public abstract boolean isVarargs()
- Returns:
- Whether this invocable is 'variable arity', i.e. its last parameter has an ellipsis ('...') after
the type
getAccess
public abstract Access getAccess()
- Specified by:
getAccess in interface IClass.IMember
- Returns:
- One of
Access.PRIVATE, Access.PROTECTED,
Access.DEFAULT and Access.PUBLIC.
getDeclaringIClass
public IClass getDeclaringIClass()
- Specified by:
getDeclaringIClass in interface IClass.IMember
- Returns:
- The
IClass that declares this IClass.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 then that (in the sense of JLS7 15.12.2.5)
- Throws:
CompileException
isLessSpecificThan
public boolean isLessSpecificThan(IClass.IInvocable that)
throws CompileException
- Returns:
- Whether this
IClass.IInvocable is less specific then that (in the sense of JLS7 15.12.2.5)
- Throws:
CompileException
toString
public abstract java.lang.String toString()
- Overrides:
toString in class java.lang.Object