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
Base class for
IClass.IConstructor and IClass.IMethod.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate MethodDescriptorprivate IClass[]private IClass[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanTODOfinal MethodDescriptorReturns the method descriptor of this constructor or method.abstract MethodDescriptorUncached implementation ofgetDescriptor().final IClass[]Returns the types of the parameters of this constructor or method.abstract IClass[]Opposed to theConstructor, there is no magic "this$0" parameter.final IClass[]Returns the types thrown by this constructor or method.abstract IClass[]booleanbooleanabstract booleanvoidsetArgsNeedAdjust(boolean newVal) TODOabstract StringtoString()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface IClass.IMember
getAccess, getAnnotations
-
Field Details
-
argsNeedAdjust
private boolean argsNeedAdjust -
parameterTypesCache
-
descriptorCache
-
thrownExceptionsCache
-
-
Constructor Details
-
IInvocable
public IInvocable()
-
-
Method Details
-
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
-
getDeclaringIClass
- Specified by:
getDeclaringIClassin interfaceIClass.IMember- Returns:
- The
IClassthat declares thisIClass.IMember
-
getParameterTypes
Returns the types of the parameters of this constructor or method. This method is fast.- Throws:
CompileException
-
getParameterTypes2
Opposed to theConstructor, there is no magic "this$0" parameter.Opposed to the
Constructor,enums have no magic parameters "String name" and "int ordinal".However, the "synthetic parameters" ("
val$locvar") are included.- Throws:
CompileException
-
getDescriptor
Returns the method descriptor of this constructor or method. This method is fast.- Throws:
CompileException
-
getDescriptor2
Uncached implementation ofgetDescriptor().- Throws:
CompileException
-
getThrownExceptions
Returns the types thrown by this constructor or method. This method is fast.- Throws:
CompileException
-
getThrownExceptions2
- Returns:
- The types thrown by this constructor or method
- Throws:
CompileException
-
isMoreSpecificThan
- Returns:
- Whether this
IClass.IInvocableis more specific then that (in the sense of JLS7 15.12.2.5) - Throws:
CompileException
-
isLessSpecificThan
- Returns:
- Whether this
IClass.IInvocableis less specific then that (in the sense of JLS7 15.12.2.5) - Throws:
CompileException
-
toString
-