public class ImmutableClassDef extends BaseTypeReference implements ClassDef
Reference.InvalidReferenceException| Modifier and Type | Field and Description |
|---|---|
protected int |
accessFlags |
protected com.google.common.collect.ImmutableSet<? extends ImmutableAnnotation> |
annotations |
protected com.google.common.collect.ImmutableSortedSet<? extends ImmutableMethod> |
directMethods |
protected com.google.common.collect.ImmutableSortedSet<? extends ImmutableField> |
instanceFields |
protected com.google.common.collect.ImmutableList<java.lang.String> |
interfaces |
protected java.lang.String |
sourceFile |
protected com.google.common.collect.ImmutableSortedSet<? extends ImmutableField> |
staticFields |
protected java.lang.String |
superclass |
protected java.lang.String |
type |
protected com.google.common.collect.ImmutableSortedSet<? extends ImmutableMethod> |
virtualMethods |
| Constructor and Description |
|---|
ImmutableClassDef(java.lang.String type,
int accessFlags,
java.lang.String superclass,
java.util.Collection<java.lang.String> interfaces,
java.lang.String sourceFile,
java.util.Collection<? extends Annotation> annotations,
java.lang.Iterable<? extends Field> staticFields,
java.lang.Iterable<? extends Field> instanceFields,
java.lang.Iterable<? extends Method> directMethods,
java.lang.Iterable<? extends Method> virtualMethods) |
ImmutableClassDef(java.lang.String type,
int accessFlags,
java.lang.String superclass,
java.util.Collection<java.lang.String> interfaces,
java.lang.String sourceFile,
java.util.Collection<? extends Annotation> annotations,
java.lang.Iterable<? extends Field> fields,
java.lang.Iterable<? extends Method> methods) |
ImmutableClassDef(java.lang.String type,
int accessFlags,
java.lang.String superclass,
com.google.common.collect.ImmutableList<java.lang.String> interfaces,
java.lang.String sourceFile,
com.google.common.collect.ImmutableSet<? extends ImmutableAnnotation> annotations,
com.google.common.collect.ImmutableSortedSet<? extends ImmutableField> staticFields,
com.google.common.collect.ImmutableSortedSet<? extends ImmutableField> instanceFields,
com.google.common.collect.ImmutableSortedSet<? extends ImmutableMethod> directMethods,
com.google.common.collect.ImmutableSortedSet<? extends ImmutableMethod> virtualMethods) |
| Modifier and Type | Method and Description |
|---|---|
int |
getAccessFlags()
Gets the access flags for this class.
|
com.google.common.collect.ImmutableSet<? extends ImmutableAnnotation> |
getAnnotations()
Gets a set of the annotations that are applied to this class.
|
com.google.common.collect.ImmutableSet<? extends ImmutableMethod> |
getDirectMethods()
Gets the direct methods that are defined by this class.
|
java.util.Collection<? extends ImmutableField> |
getFields()
Gets all the fields that are defined by this class.
|
com.google.common.collect.ImmutableSet<? extends ImmutableField> |
getInstanceFields()
Gets the instance fields that are defined by this class.
|
com.google.common.collect.ImmutableList<java.lang.String> |
getInterfaces()
Gets a list of the interfaces that this class implements.
|
java.util.Collection<? extends ImmutableMethod> |
getMethods()
Gets all the methods that are defined by this class.
|
java.lang.String |
getSourceFile()
Gets the name of the primary source file that this class is defined in, if available.
|
com.google.common.collect.ImmutableSet<? extends ImmutableField> |
getStaticFields()
Gets the static fields that are defined by this class.
|
java.lang.String |
getSuperclass()
Gets the superclass of this class.
|
java.lang.String |
getType()
Gets the class type.
|
com.google.common.collect.ImmutableSet<? extends ImmutableMethod> |
getVirtualMethods()
Gets the virtual methods that are defined by this class.
|
static com.google.common.collect.ImmutableSet<ImmutableClassDef> |
immutableSetOf(java.lang.Iterable<? extends ClassDef> iterable) |
static ImmutableClassDef |
of(ClassDef classDef) |
charAt, compareTo, equals, hashCode, length, subSequence, toStringvalidateReferenceclone, finalize, getClass, notify, notifyAll, wait, wait, waitcompareTo, equals, hashCodevalidateReference@Nonnull protected final java.lang.String type
protected final int accessFlags
@Nullable protected final java.lang.String superclass
@Nonnull protected final com.google.common.collect.ImmutableList<java.lang.String> interfaces
@Nullable protected final java.lang.String sourceFile
@Nonnull protected final com.google.common.collect.ImmutableSet<? extends ImmutableAnnotation> annotations
@Nonnull protected final com.google.common.collect.ImmutableSortedSet<? extends ImmutableField> staticFields
@Nonnull protected final com.google.common.collect.ImmutableSortedSet<? extends ImmutableField> instanceFields
@Nonnull protected final com.google.common.collect.ImmutableSortedSet<? extends ImmutableMethod> directMethods
@Nonnull protected final com.google.common.collect.ImmutableSortedSet<? extends ImmutableMethod> virtualMethods
public ImmutableClassDef(@Nonnull
java.lang.String type,
int accessFlags,
@Nullable
java.lang.String superclass,
@Nullable
java.util.Collection<java.lang.String> interfaces,
@Nullable
java.lang.String sourceFile,
@Nullable
java.util.Collection<? extends Annotation> annotations,
@Nullable
java.lang.Iterable<? extends Field> fields,
@Nullable
java.lang.Iterable<? extends Method> methods)
public ImmutableClassDef(@Nonnull
java.lang.String type,
int accessFlags,
@Nullable
java.lang.String superclass,
@Nullable
java.util.Collection<java.lang.String> interfaces,
@Nullable
java.lang.String sourceFile,
@Nullable
java.util.Collection<? extends Annotation> annotations,
@Nullable
java.lang.Iterable<? extends Field> staticFields,
@Nullable
java.lang.Iterable<? extends Field> instanceFields,
@Nullable
java.lang.Iterable<? extends Method> directMethods,
@Nullable
java.lang.Iterable<? extends Method> virtualMethods)
public ImmutableClassDef(@Nonnull
java.lang.String type,
int accessFlags,
@Nullable
java.lang.String superclass,
@Nullable
com.google.common.collect.ImmutableList<java.lang.String> interfaces,
@Nullable
java.lang.String sourceFile,
@Nullable
com.google.common.collect.ImmutableSet<? extends ImmutableAnnotation> annotations,
@Nullable
com.google.common.collect.ImmutableSortedSet<? extends ImmutableField> staticFields,
@Nullable
com.google.common.collect.ImmutableSortedSet<? extends ImmutableField> instanceFields,
@Nullable
com.google.common.collect.ImmutableSortedSet<? extends ImmutableMethod> directMethods,
@Nullable
com.google.common.collect.ImmutableSortedSet<? extends ImmutableMethod> virtualMethods)
public static ImmutableClassDef of(ClassDef classDef)
@Nonnull public java.lang.String getType()
ClassDefgetType in interface ClassDefgetType in interface TypeReferencepublic int getAccessFlags()
ClassDefgetAccessFlags in interface ClassDef@Nullable public java.lang.String getSuperclass()
ClassDefgetSuperclass in interface ClassDef@Nonnull public com.google.common.collect.ImmutableList<java.lang.String> getInterfaces()
ClassDefgetInterfaces in interface ClassDef@Nullable public java.lang.String getSourceFile()
ClassDefgetSourceFile in interface ClassDef@Nonnull public com.google.common.collect.ImmutableSet<? extends ImmutableAnnotation> getAnnotations()
ClassDefgetAnnotations in interface AnnotatablegetAnnotations in interface ClassDef@Nonnull public com.google.common.collect.ImmutableSet<? extends ImmutableField> getStaticFields()
ClassDefgetStaticFields in interface ClassDef@Nonnull public com.google.common.collect.ImmutableSet<? extends ImmutableField> getInstanceFields()
ClassDefgetInstanceFields in interface ClassDef@Nonnull public com.google.common.collect.ImmutableSet<? extends ImmutableMethod> getDirectMethods()
ClassDefgetDirectMethods in interface ClassDef@Nonnull public com.google.common.collect.ImmutableSet<? extends ImmutableMethod> getVirtualMethods()
ClassDefgetVirtualMethods in interface ClassDef@Nonnull public java.util.Collection<? extends ImmutableField> getFields()
ClassDef@Nonnull public java.util.Collection<? extends ImmutableMethod> getMethods()
ClassDefgetMethods in interface ClassDef@Nonnull public static com.google.common.collect.ImmutableSet<ImmutableClassDef> immutableSetOf(@Nullable java.lang.Iterable<? extends ClassDef> iterable)