Package serp.bytecode
Class ArrayState
java.lang.Object
serp.bytecode.State
serp.bytecode.ArrayState
State implementing the behavior of an array class.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Return the access flags of the bytecode class.Return theAttribute
s of this class, or empty list if none.Return the name of the component type of this array, or null if not an array.Return theBCField
s of this class, or empty list if none.int
getIndex()
Return theConstantPool
index of theClassEntry
for this class, or 0 if none.Return theConstantPool
indexes of theClassEntry
s for the indexes of this class, or empty list if none.int
getMagic()
Return the magic number of the bytecode class.int
Return the major number of the bytecode class.Return theBCMethod
s of this class, or empty list if none.int
Return the minor number of the bytecode class.getName()
Return the name of the class.int
Return theConstantPool
index of theClassEntry
for the superclass of this class, or 0 if none.Return the name of the superclass.boolean
isArray()
Return true if this class is an array.boolean
Return true if this class is a primitive.Methods inherited from class serp.bytecode.State
getPool, setAccessFlags, setIndex, setMagic, setMajorVersion, setMinorVersion, setSuperclassIndex
-
Field Details
-
_name
-
_componentName
-
-
Constructor Details
-
ArrayState
-
-
Method Details
-
getMagic
public int getMagic()Description copied from class:State
Return the magic number of the bytecode class. -
getMajorVersion
public int getMajorVersion()Description copied from class:State
Return the major number of the bytecode class.- Overrides:
getMajorVersion
in classState
-
getMinorVersion
public int getMinorVersion()Description copied from class:State
Return the minor number of the bytecode class.- Overrides:
getMinorVersion
in classState
-
getAccessFlags
public int getAccessFlags()Description copied from class:State
Return the access flags of the bytecode class.- Overrides:
getAccessFlags
in classState
-
getIndex
public int getIndex()Description copied from class:State
Return theConstantPool
index of theClassEntry
for this class, or 0 if none. -
getSuperclassIndex
public int getSuperclassIndex()Description copied from class:State
Return theConstantPool
index of theClassEntry
for the superclass of this class, or 0 if none.- Overrides:
getSuperclassIndex
in classState
-
getInterfacesHolder
Description copied from class:State
Return theConstantPool
indexes of theClassEntry
s for the indexes of this class, or empty list if none. If the state does not support changing the interfaces, the returned list should be immutable.- Overrides:
getInterfacesHolder
in classState
-
getFieldsHolder
Description copied from class:State
Return theBCField
s of this class, or empty list if none. If the state does not support changing the fields, the returned list should be immutable.- Overrides:
getFieldsHolder
in classState
-
getMethodsHolder
Description copied from class:State
Return theBCMethod
s of this class, or empty list if none. If the state does not support changing the methods, the returned list should be immutable.- Overrides:
getMethodsHolder
in classState
-
getAttributesHolder
Description copied from class:State
Return theAttribute
s of this class, or empty list if none. If the state does not support changing the attributes, the returned list should be immutable.- Overrides:
getAttributesHolder
in classState
-
getName
Description copied from class:State
Return the name of the class. The name should be in a form suitable for aClass.forName(java.lang.String)
call. -
getSuperclassName
Description copied from class:State
Return the name of the superclass. The name should be in a form suitable for aClass.forName(java.lang.String)
call, or null if none.- Overrides:
getSuperclassName
in classState
-
getComponentName
Description copied from class:State
Return the name of the component type of this array, or null if not an array. The name should be in a form suitable for aClass.forName(java.lang.String)
call.- Overrides:
getComponentName
in classState
-
isPrimitive
public boolean isPrimitive()Description copied from class:State
Return true if this class is a primitive.- Overrides:
isPrimitive
in classState
-
isArray
public boolean isArray()Description copied from class:State
Return true if this class is an array.
-