Package com.google.turbine.bytecode
Class ClassFile
- java.lang.Object
-
- com.google.turbine.bytecode.ClassFile
-
public class ClassFile extends java.lang.ObjectA JVMS §4.1 ClassFile.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classClassFile.AnnotationInfoThe contents of a JVMS §4.7.16 annotation structure.static classClassFile.FieldInfoThe contents of a JVMS §4.5 field_info structure.static classClassFile.InnerClassA JVMS §4.7.6 InnerClasses attribute.static classClassFile.MethodInfoThe contents of a JVMS §4.6 method_info structure.static classClassFile.ModuleInfoA JVMS 4.7.25 module attribute.static classClassFile.RecordInfoA JVMS §4.7.30 Record attribute.static classClassFile.TypeAnnotationInfoThe contents of a JVMS §4.7.20 type annotation structure.
-
Constructor Summary
Constructors Constructor Description ClassFile(int access, int majorVersion, java.lang.String name, @Nullable java.lang.String signature, @Nullable java.lang.String superClass, java.util.List<java.lang.String> interfaces, java.util.List<java.lang.String> permits, java.util.List<ClassFile.MethodInfo> methods, java.util.List<ClassFile.FieldInfo> fields, java.util.List<ClassFile.AnnotationInfo> annotations, java.util.List<ClassFile.InnerClass> innerClasses, com.google.common.collect.ImmutableList<ClassFile.TypeAnnotationInfo> typeAnnotations, @Nullable ClassFile.ModuleInfo module, @Nullable java.lang.String nestHost, com.google.common.collect.ImmutableList<java.lang.String> nestMembers, @Nullable ClassFile.RecordInfo record, @Nullable java.lang.String transitiveJar)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intaccess()Class access and property flags.java.util.List<ClassFile.AnnotationInfo>annotations()Declaration annotations of the class.java.util.List<ClassFile.FieldInfo>fields()Fields declared by this class or interfaces type.java.util.List<ClassFile.InnerClass>innerClasses()Inner class information.java.util.List<java.lang.String>interfaces()The direct superinterfaces.intmajorVersion()Class file major version.java.util.List<ClassFile.MethodInfo>methods()Methods declared by this class or interfaces type.@Nullable ClassFile.ModuleInfomodule()A module attribute.java.lang.Stringname()The name of the class or interface.@Nullable java.lang.StringnestHost()com.google.common.collect.ImmutableList<java.lang.String>nestMembers()java.util.List<java.lang.String>permits()The permitted direct subclasses.@Nullable ClassFile.RecordInforecord()@Nullable java.lang.Stringsignature()The value of the Signature attribute.@Nullable java.lang.StringsuperName()The super class.@Nullable java.lang.StringtransitiveJar()The original jar of a repackaged transitive class.com.google.common.collect.ImmutableList<ClassFile.TypeAnnotationInfo>typeAnnotations()Type annotations.
-
-
-
Constructor Detail
-
ClassFile
public ClassFile(int access, int majorVersion, java.lang.String name, @Nullable java.lang.String signature, @Nullable java.lang.String superClass, java.util.List<java.lang.String> interfaces, java.util.List<java.lang.String> permits, java.util.List<ClassFile.MethodInfo> methods, java.util.List<ClassFile.FieldInfo> fields, java.util.List<ClassFile.AnnotationInfo> annotations, java.util.List<ClassFile.InnerClass> innerClasses, com.google.common.collect.ImmutableList<ClassFile.TypeAnnotationInfo> typeAnnotations, @Nullable ClassFile.ModuleInfo module, @Nullable java.lang.String nestHost, com.google.common.collect.ImmutableList<java.lang.String> nestMembers, @Nullable ClassFile.RecordInfo record, @Nullable java.lang.String transitiveJar)
-
-
Method Detail
-
access
public int access()
Class access and property flags.
-
majorVersion
public int majorVersion()
Class file major version.
-
name
public java.lang.String name()
The name of the class or interface.
-
signature
public @Nullable java.lang.String signature()
The value of the Signature attribute.
-
superName
public @Nullable java.lang.String superName()
The super class.
-
interfaces
public java.util.List<java.lang.String> interfaces()
The direct superinterfaces.
-
permits
public java.util.List<java.lang.String> permits()
The permitted direct subclasses.
-
methods
public java.util.List<ClassFile.MethodInfo> methods()
Methods declared by this class or interfaces type.
-
fields
public java.util.List<ClassFile.FieldInfo> fields()
Fields declared by this class or interfaces type.
-
annotations
public java.util.List<ClassFile.AnnotationInfo> annotations()
Declaration annotations of the class.
-
innerClasses
public java.util.List<ClassFile.InnerClass> innerClasses()
Inner class information.
-
typeAnnotations
public com.google.common.collect.ImmutableList<ClassFile.TypeAnnotationInfo> typeAnnotations()
Type annotations.
-
module
public @Nullable ClassFile.ModuleInfo module()
A module attribute.
-
nestHost
public @Nullable java.lang.String nestHost()
-
nestMembers
public com.google.common.collect.ImmutableList<java.lang.String> nestMembers()
-
record
public @Nullable ClassFile.RecordInfo record()
-
transitiveJar
public @Nullable java.lang.String transitiveJar()
The original jar of a repackaged transitive class.
-
-