Package com.google.turbine.binder.bound
Class TypeBoundClass.MethodInfo
- java.lang.Object
-
- com.google.turbine.binder.bound.TypeBoundClass.MethodInfo
-
- Enclosing interface:
- TypeBoundClass
public static class TypeBoundClass.MethodInfo extends java.lang.ObjectA declared method.
-
-
Constructor Summary
Constructors Constructor Description MethodInfo(MethodSymbol sym, com.google.common.collect.ImmutableMap<TyVarSymbol,TypeBoundClass.TyVarInfo> tyParams, Type returnType, com.google.common.collect.ImmutableList<TypeBoundClass.ParamInfo> parameters, com.google.common.collect.ImmutableList<Type> exceptions, int access, @Nullable Const defaultValue, @Nullable Tree.MethDecl decl, com.google.common.collect.ImmutableList<AnnoInfo> annotations, @Nullable TypeBoundClass.ParamInfo receiver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intaccess()Access bits.com.google.common.collect.ImmutableList<AnnoInfo>annotations()Declaration annotations.Type.MethodTyasType()@Nullable Tree.MethDecldecl()The declaration.@Nullable ConstdefaultValue()The default value of an annotation interface method.com.google.common.collect.ImmutableList<Type>exceptions()Thrown exceptions.booleanhasDefaultValue()Returns true for annotation members with a default value.java.lang.Stringname()The method name.com.google.common.collect.ImmutableList<TypeBoundClass.ParamInfo>parameters()The formal parameters.@Nullable TypeBoundClass.ParamInforeceiver()Receiver parameter (see JLS 8.4.1), ornull.TypereturnType()Type return type, possibly {#link Type#VOID}.MethodSymbolsym()The method symbol.com.google.common.collect.ImmutableMap<TyVarSymbol,TypeBoundClass.TyVarInfo>tyParams()The type parameters
-
-
-
Constructor Detail
-
MethodInfo
public MethodInfo(MethodSymbol sym, com.google.common.collect.ImmutableMap<TyVarSymbol,TypeBoundClass.TyVarInfo> tyParams, Type returnType, com.google.common.collect.ImmutableList<TypeBoundClass.ParamInfo> parameters, com.google.common.collect.ImmutableList<Type> exceptions, int access, @Nullable Const defaultValue, @Nullable Tree.MethDecl decl, com.google.common.collect.ImmutableList<AnnoInfo> annotations, @Nullable TypeBoundClass.ParamInfo receiver)
-
-
Method Detail
-
sym
public MethodSymbol sym()
The method symbol.
-
name
public java.lang.String name()
The method name.
-
tyParams
public com.google.common.collect.ImmutableMap<TyVarSymbol,TypeBoundClass.TyVarInfo> tyParams()
The type parameters
-
returnType
public Type returnType()
Type return type, possibly {#link Type#VOID}.
-
parameters
public com.google.common.collect.ImmutableList<TypeBoundClass.ParamInfo> parameters()
The formal parameters.
-
exceptions
public com.google.common.collect.ImmutableList<Type> exceptions()
Thrown exceptions.
-
access
public int access()
Access bits.
-
defaultValue
public @Nullable Const defaultValue()
The default value of an annotation interface method.
-
hasDefaultValue
public boolean hasDefaultValue()
Returns true for annotation members with a default value. The default value may not have been bound yet, in which casedefaultValuemay still returnnull.
-
decl
public @Nullable Tree.MethDecl decl()
The declaration.
-
annotations
public com.google.common.collect.ImmutableList<AnnoInfo> annotations()
Declaration annotations.
-
receiver
public @Nullable TypeBoundClass.ParamInfo receiver()
Receiver parameter (see JLS 8.4.1), ornull.
-
asType
public Type.MethodTy asType()
-
-