public class ImmutableMethod extends BaseMethodReference implements Method
Reference.InvalidReferenceException| Modifier and Type | Field and Description |
|---|---|
protected int |
accessFlags |
protected com.google.common.collect.ImmutableSet<? extends ImmutableAnnotation> |
annotations |
protected java.lang.String |
definingClass |
protected ImmutableMethodImplementation |
methodImplementation |
protected java.lang.String |
name |
protected com.google.common.collect.ImmutableList<? extends ImmutableMethodParameter> |
parameters |
protected java.lang.String |
returnType |
| Constructor and Description |
|---|
ImmutableMethod(java.lang.String definingClass,
java.lang.String name,
com.google.common.collect.ImmutableList<? extends ImmutableMethodParameter> parameters,
java.lang.String returnType,
int accessFlags,
com.google.common.collect.ImmutableSet<? extends ImmutableAnnotation> annotations,
ImmutableMethodImplementation methodImplementation) |
ImmutableMethod(java.lang.String definingClass,
java.lang.String name,
java.lang.Iterable<? extends MethodParameter> parameters,
java.lang.String returnType,
int accessFlags,
java.util.Set<? extends Annotation> annotations,
MethodImplementation methodImplementation) |
| Modifier and Type | Method and Description |
|---|---|
int |
getAccessFlags()
Gets the access flags for this method.
|
com.google.common.collect.ImmutableSet<? extends ImmutableAnnotation> |
getAnnotations()
Gets a set of the annotations that are applied to this method.
|
java.lang.String |
getDefiningClass()
Gets the type of the class that defines this method.
|
ImmutableMethodImplementation |
getImplementation()
Gets a MethodImplementation object that defines the implementation of the method.
|
java.lang.String |
getName()
Gets the name of this method.
|
com.google.common.collect.ImmutableList<? extends ImmutableMethodParameter> |
getParameters()
Gets a list of the parameters of this method.
|
com.google.common.collect.ImmutableList<? extends java.lang.CharSequence> |
getParameterTypes()
Gets a list of the types of the parameters of this method.
|
java.lang.String |
getReturnType()
Gets the return type of this method.
|
static com.google.common.collect.ImmutableSortedSet<ImmutableMethod> |
immutableSetOf(java.lang.Iterable<? extends Method> list) |
static ImmutableMethod |
of(Method method) |
compareTo, equals, hashCode, toStringvalidateReferenceclone, finalize, getClass, notify, notifyAll, wait, wait, waitcompareTo, equals, hashCodevalidateReference@Nonnull protected final java.lang.String definingClass
@Nonnull protected final java.lang.String name
@Nonnull protected final com.google.common.collect.ImmutableList<? extends ImmutableMethodParameter> parameters
@Nonnull protected final java.lang.String returnType
protected final int accessFlags
@Nonnull protected final com.google.common.collect.ImmutableSet<? extends ImmutableAnnotation> annotations
@Nullable protected final ImmutableMethodImplementation methodImplementation
public ImmutableMethod(@Nonnull
java.lang.String definingClass,
@Nonnull
java.lang.String name,
@Nullable
java.lang.Iterable<? extends MethodParameter> parameters,
@Nonnull
java.lang.String returnType,
int accessFlags,
@Nullable
java.util.Set<? extends Annotation> annotations,
@Nullable
MethodImplementation methodImplementation)
public ImmutableMethod(@Nonnull
java.lang.String definingClass,
@Nonnull
java.lang.String name,
@Nullable
com.google.common.collect.ImmutableList<? extends ImmutableMethodParameter> parameters,
@Nonnull
java.lang.String returnType,
int accessFlags,
@Nullable
com.google.common.collect.ImmutableSet<? extends ImmutableAnnotation> annotations,
@Nullable
ImmutableMethodImplementation methodImplementation)
public static ImmutableMethod of(Method method)
@Nonnull public java.lang.String getDefiningClass()
MethodgetDefiningClass in interface MembergetDefiningClass in interface MethodgetDefiningClass in interface MethodReference@Nonnull public java.lang.String getName()
Method@Nonnull public com.google.common.collect.ImmutableList<? extends java.lang.CharSequence> getParameterTypes()
MethodReferencegetParameterTypes in interface MethodReference@Nonnull public com.google.common.collect.ImmutableList<? extends ImmutableMethodParameter> getParameters()
MethodgetParameters in interface Method@Nonnull public java.lang.String getReturnType()
MethodgetReturnType in interface MethodgetReturnType in interface MethodReferencepublic int getAccessFlags()
MethodgetAccessFlags in interface MembergetAccessFlags in interface Method@Nonnull public com.google.common.collect.ImmutableSet<? extends ImmutableAnnotation> getAnnotations()
MethodgetAnnotations in interface AnnotatablegetAnnotations in interface Method@Nullable public ImmutableMethodImplementation getImplementation()
MethodgetImplementation in interface Method@Nonnull public static com.google.common.collect.ImmutableSortedSet<ImmutableMethod> immutableSetOf(@Nullable java.lang.Iterable<? extends Method> list)