Package serp.bytecode
Class PrimitiveState
java.lang.Object
serp.bytecode.State
serp.bytecode.PrimitiveState
State implementing the behavior of a primitive class.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturn the access flags of the bytecode class.Return theAttributes 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 theBCFields of this class, or empty list if none.intgetIndex()Return theConstantPoolindex of theClassEntryfor this class, or 0 if none.Return theConstantPoolindexes of theClassEntrys for the indexes of this class, or empty list if none.intgetMagic()Return the magic number of the bytecode class.intReturn the major number of the bytecode class.Return theBCMethods of this class, or empty list if none.intReturn the minor number of the bytecode class.getName()Return the name of the class.intReturn theConstantPoolindex of theClassEntryfor the superclass of this class, or 0 if none.Return the name of the superclass.booleanisArray()Return true if this class is an array.booleanReturn true if this class is a primitive.Methods inherited from class serp.bytecode.State
getPool, setAccessFlags, setIndex, setMagic, setMajorVersion, setMinorVersion, setSuperclassIndex
-
Field Details
-
_type
-
_names
-
-
Constructor Details
-
PrimitiveState
-
-
Method Details
-
getMagic
public int getMagic()Description copied from class:StateReturn the magic number of the bytecode class. -
getMajorVersion
public int getMajorVersion()Description copied from class:StateReturn the major number of the bytecode class.- Overrides:
getMajorVersionin classState
-
getMinorVersion
public int getMinorVersion()Description copied from class:StateReturn the minor number of the bytecode class.- Overrides:
getMinorVersionin classState
-
getAccessFlags
public int getAccessFlags()Description copied from class:StateReturn the access flags of the bytecode class.- Overrides:
getAccessFlagsin classState
-
getIndex
public int getIndex()Description copied from class:StateReturn theConstantPoolindex of theClassEntryfor this class, or 0 if none. -
getSuperclassIndex
public int getSuperclassIndex()Description copied from class:StateReturn theConstantPoolindex of theClassEntryfor the superclass of this class, or 0 if none.- Overrides:
getSuperclassIndexin classState
-
getInterfacesHolder
Description copied from class:StateReturn theConstantPoolindexes of theClassEntrys 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:
getInterfacesHolderin classState
-
getFieldsHolder
Description copied from class:StateReturn theBCFields of this class, or empty list if none. If the state does not support changing the fields, the returned list should be immutable.- Overrides:
getFieldsHolderin classState
-
getMethodsHolder
Description copied from class:StateReturn theBCMethods of this class, or empty list if none. If the state does not support changing the methods, the returned list should be immutable.- Overrides:
getMethodsHolderin classState
-
getAttributesHolder
Description copied from class:StateReturn theAttributes of this class, or empty list if none. If the state does not support changing the attributes, the returned list should be immutable.- Overrides:
getAttributesHolderin classState
-
getName
Description copied from class:StateReturn 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:StateReturn 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:
getSuperclassNamein classState
-
getComponentName
Description copied from class:StateReturn 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:
getComponentNamein classState
-
isPrimitive
public boolean isPrimitive()Description copied from class:StateReturn true if this class is a primitive.- Overrides:
isPrimitivein classState
-
isArray
public boolean isArray()Description copied from class:StateReturn true if this class is an array.
-