Package com.google.turbine.bytecode
Class ClassFile.MethodInfo
- java.lang.Object
-
- com.google.turbine.bytecode.ClassFile.MethodInfo
-
- Enclosing class:
- ClassFile
public static class ClassFile.MethodInfo extends java.lang.ObjectThe contents of a JVMS ยง4.6 method_info structure.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classClassFile.MethodInfo.ParameterInfoA formal parameter.
-
Constructor Summary
Constructors Constructor Description MethodInfo(int access, java.lang.String name, java.lang.String descriptor, @Nullable java.lang.String signature, java.util.List<java.lang.String> exceptions, @Nullable ClassFile.AnnotationInfo.ElementValue defaultValue, java.util.List<ClassFile.AnnotationInfo> annotations, com.google.common.collect.ImmutableList<com.google.common.collect.ImmutableList<ClassFile.AnnotationInfo>> parameterAnnotations, com.google.common.collect.ImmutableList<ClassFile.TypeAnnotationInfo> typeAnnotations, com.google.common.collect.ImmutableList<ClassFile.MethodInfo.ParameterInfo> parameters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intaccess()Method access and property flags.java.util.List<ClassFile.AnnotationInfo>annotations()Declaration annotations of the method.@Nullable ClassFile.AnnotationInfo.ElementValuedefaultValue()The value of the AnnotationDefault attribute.java.lang.Stringdescriptor()The descriptor.java.util.List<java.lang.String>exceptions()The value of Exceptions attribute.java.lang.Stringname()The name of the method.com.google.common.collect.ImmutableList<com.google.common.collect.ImmutableList<ClassFile.AnnotationInfo>>parameterAnnotations()Declaration annotations of the formal parameters.com.google.common.collect.ImmutableList<ClassFile.MethodInfo.ParameterInfo>parameters()Formal parameters.@Nullable java.lang.Stringsignature()The value of Signature attribute.com.google.common.collect.ImmutableList<ClassFile.TypeAnnotationInfo>typeAnnotations()Type annotations.
-
-
-
Constructor Detail
-
MethodInfo
public MethodInfo(int access, java.lang.String name, java.lang.String descriptor, @Nullable java.lang.String signature, java.util.List<java.lang.String> exceptions, @Nullable ClassFile.AnnotationInfo.ElementValue defaultValue, java.util.List<ClassFile.AnnotationInfo> annotations, com.google.common.collect.ImmutableList<com.google.common.collect.ImmutableList<ClassFile.AnnotationInfo>> parameterAnnotations, com.google.common.collect.ImmutableList<ClassFile.TypeAnnotationInfo> typeAnnotations, com.google.common.collect.ImmutableList<ClassFile.MethodInfo.ParameterInfo> parameters)
-
-
Method Detail
-
access
public int access()
Method access and property flags.
-
name
public java.lang.String name()
The name of the method.
-
descriptor
public java.lang.String descriptor()
The descriptor.
-
signature
public @Nullable java.lang.String signature()
The value of Signature attribute.
-
exceptions
public java.util.List<java.lang.String> exceptions()
The value of Exceptions attribute.
-
defaultValue
public @Nullable ClassFile.AnnotationInfo.ElementValue defaultValue()
The value of the AnnotationDefault attribute.
-
annotations
public java.util.List<ClassFile.AnnotationInfo> annotations()
Declaration annotations of the method.
-
parameterAnnotations
public com.google.common.collect.ImmutableList<com.google.common.collect.ImmutableList<ClassFile.AnnotationInfo>> parameterAnnotations()
Declaration annotations of the formal parameters.
-
typeAnnotations
public com.google.common.collect.ImmutableList<ClassFile.TypeAnnotationInfo> typeAnnotations()
Type annotations.
-
parameters
public com.google.common.collect.ImmutableList<ClassFile.MethodInfo.ParameterInfo> parameters()
Formal parameters.
-
-