Class ClassInformation
- java.lang.Object
-
- com.offbynull.coroutines.instrumenter.asm.ClassInformation
-
public final class ClassInformation extends java.lang.ObjectContains information about a class.
-
-
Field Summary
Fields Modifier and Type Field Description private booleaninterfaceMarkerprivate java.util.List<java.lang.String>interfacesprivate java.lang.Stringnameprivate java.lang.StringsuperClassName
-
Constructor Summary
Constructors Constructor Description ClassInformation(java.lang.String name, java.lang.String superClassName, java.util.List<java.lang.String> interfaces, boolean interfaceMarker)Construct aClassInformationobject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.util.List<java.lang.String>getInterfaces()Gets the implemented interfaces.java.lang.StringgetName()Get the name.java.lang.StringgetSuperClassName()Get the parent class name.inthashCode()booleanisInterface()Whether or not this class is an interface.
-
-
-
Constructor Detail
-
ClassInformation
public ClassInformation(java.lang.String name, java.lang.String superClassName, java.util.List<java.lang.String> interfaces, boolean interfaceMarker)Construct aClassInformationobject.- Parameters:
name- namesuperClassName- name of parent class (can benull)interfaces- interface namesinterfaceMarker-trueif class is an interface,falseotherwise- Throws:
java.lang.NullPointerException- ifinterfacesisnullor containsnull, or ifnameisnull
-
-
Method Detail
-
getName
public java.lang.String getName()
Get the name.- Returns:
- name
-
getSuperClassName
public java.lang.String getSuperClassName()
Get the parent class name.- Returns:
- parent class name (may be
null)
-
getInterfaces
public java.util.List<java.lang.String> getInterfaces()
Gets the implemented interfaces.- Returns:
- interfaces
-
isInterface
public boolean isInterface()
Whether or not this class is an interface.- Returns:
trueif this class is an interface,falseotherwise
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-