Class ClassInformation
- java.lang.Object
-
- com.offbynull.coroutines.instrumenter.asm.ClassInformation
-
public final class ClassInformation extends java.lang.Object
Contains information about a class.
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
interfaceMarker
private java.util.List<java.lang.String>
interfaces
private java.lang.String
name
private java.lang.String
superClassName
-
Constructor Summary
Constructors Constructor Description ClassInformation(java.lang.String name, java.lang.String superClassName, java.util.List<java.lang.String> interfaces, boolean interfaceMarker)
Construct aClassInformation
object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.util.List<java.lang.String>
getInterfaces()
Gets the implemented interfaces.java.lang.String
getName()
Get the name.java.lang.String
getSuperClassName()
Get the parent class name.int
hashCode()
boolean
isInterface()
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 aClassInformation
object.- Parameters:
name
- namesuperClassName
- name of parent class (can benull
)interfaces
- interface namesinterfaceMarker
-true
if class is an interface,false
otherwise- Throws:
java.lang.NullPointerException
- ifinterfaces
isnull
or containsnull
, or ifname
isnull
-
-
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:
true
if this class is an interface,false
otherwise
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-