Class SignatureParser.MethodTypeSignature
- java.lang.Object
-
- org.codehaus.janino.util.signature.SignatureParser.MethodTypeSignature
-
- Enclosing class:
- SignatureParser
public static class SignatureParser.MethodTypeSignature extends java.lang.Object
Representation of the "MethodTypeSignature" clause.
-
-
Field Summary
Fields Modifier and Type Field Description java.util.List<SignatureParser.FormalTypeParameter>
formalTypeParameters
The formal types of the method, e.gjava.util.List<SignatureParser.TypeSignature>
parameterTypes
The types of the method's parameters.SignatureParser.TypeSignature
returnType
The return type of the method.java.util.List<SignatureParser.ThrowsSignature>
thrownTypes
The exceptions declared for the method.
-
Constructor Summary
Constructors Constructor Description MethodTypeSignature(java.util.List<SignatureParser.FormalTypeParameter> formalTypeParameters, java.util.List<SignatureParser.TypeSignature> parameterTypes, SignatureParser.TypeSignature returnType, java.util.List<SignatureParser.ThrowsSignature> thrownTypes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toString()
java.lang.String
toString(java.lang.String declaringClassName, java.lang.String methodName)
Combines the name of the declaring class, the name of the method and this method type signature into a nice, human-readable string like '<T> MyClass.meth(List<T> l, int i) => double
'.
-
-
-
Field Detail
-
formalTypeParameters
public final java.util.List<SignatureParser.FormalTypeParameter> formalTypeParameters
The formal types of the method, e.g. 'void <T, U> int meth(T t, U u) ...
'.
-
parameterTypes
public final java.util.List<SignatureParser.TypeSignature> parameterTypes
The types of the method's parameters.
-
returnType
public final SignatureParser.TypeSignature returnType
The return type of the method.
-
thrownTypes
public final java.util.List<SignatureParser.ThrowsSignature> thrownTypes
The exceptions declared for the method.
-
-
Constructor Detail
-
MethodTypeSignature
public MethodTypeSignature(java.util.List<SignatureParser.FormalTypeParameter> formalTypeParameters, java.util.List<SignatureParser.TypeSignature> parameterTypes, SignatureParser.TypeSignature returnType, java.util.List<SignatureParser.ThrowsSignature> thrownTypes)
-
-
Method Detail
-
toString
public java.lang.String toString(java.lang.String declaringClassName, java.lang.String methodName)
Combines the name of the declaring class, the name of the method and this method type signature into a nice, human-readable string like '<T> MyClass.meth(List<T> l, int i) => double
'.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-