Package org.codehaus.janino
Class StackMap
- java.lang.Object
-
- org.codehaus.janino.StackMap
-
class StackMap extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private ClassFile.StackMapTableAttribute.VerificationTypeInfo[]
locals
Elements are never changed.private ClassFile.StackMapTableAttribute.VerificationTypeInfo[]
operands
Elements are never changed.
-
Constructor Summary
Constructors Constructor Description StackMap(ClassFile.StackMapTableAttribute.VerificationTypeInfo[] locals, ClassFile.StackMapTableAttribute.VerificationTypeInfo[] operands)
-
Method Summary
-
-
-
Field Detail
-
locals
private final ClassFile.StackMapTableAttribute.VerificationTypeInfo[] locals
Elements are never changed. Notice that, according to the JVMS, each local variable or operend, including those of type LONG and DOUBLE, is represented by oneClassFile.StackMapTableAttribute.VerificationTypeInfo
object
-
operands
private final ClassFile.StackMapTableAttribute.VerificationTypeInfo[] operands
Elements are never changed. Notice that, according to the JVMS, each local variable or operend, including those of type LONG and DOUBLE, is represented by oneClassFile.StackMapTableAttribute.VerificationTypeInfo
object
-
-
Constructor Detail
-
StackMap
StackMap(ClassFile.StackMapTableAttribute.VerificationTypeInfo[] locals, ClassFile.StackMapTableAttribute.VerificationTypeInfo[] operands)
-
-
Method Detail
-
pushLocal
StackMap pushLocal(ClassFile.StackMapTableAttribute.VerificationTypeInfo local)
- Returns:
- A
StackMap
with a local variable stack that is extended by local, and the same operand stack
-
popLocal
StackMap popLocal()
- Returns:
- A
StackMap
with a local variable stack with one element less, and the same operand stack
-
peekLocal
ClassFile.StackMapTableAttribute.VerificationTypeInfo peekLocal()
- Returns:
- The top element of the local variable stack
-
locals
ClassFile.StackMapTableAttribute.VerificationTypeInfo[] locals()
-
pushOperand
StackMap pushOperand(ClassFile.StackMapTableAttribute.VerificationTypeInfo operand)
- Returns:
- A
StackMap
with the same local variable stack, and an operand stack that is extended by operand
-
popOperand
StackMap popOperand()
- Returns:
- A
StackMap
with the same local variable stack, and an operand stack with one element less
-
peekOperand
ClassFile.StackMapTableAttribute.VerificationTypeInfo peekOperand()
- Returns:
- The top element of the operand stack
-
operands
ClassFile.StackMapTableAttribute.VerificationTypeInfo[] operands()
-
addToArray
private static ClassFile.StackMapTableAttribute.VerificationTypeInfo[] addToArray(ClassFile.StackMapTableAttribute.VerificationTypeInfo[] original, ClassFile.StackMapTableAttribute.VerificationTypeInfo value)
-
removeLastFromArray
private static ClassFile.StackMapTableAttribute.VerificationTypeInfo[] removeLastFromArray(ClassFile.StackMapTableAttribute.VerificationTypeInfo[] original)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(@Nullable java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-