Package xyz.cofe.trambda.bc.mth
Class MTypeInsn
- java.lang.Object
-
- xyz.cofe.trambda.bc.mth.MAbstractBC
-
- xyz.cofe.trambda.bc.mth.MTypeInsn
-
- All Implemented Interfaces:
Serializable,xyz.cofe.collection.ImTree<ByteCode>,xyz.cofe.collection.ImTreeWalk<ByteCode>,ByteCode,MethodByteCode,MethodWriter
public class MTypeInsn extends MAbstractBC implements ByteCode, MethodWriter
the opcode of the type instruction to be visited. This opcode is either NEW, ANEWARRAY, CHECKCAST or INSTANCEOF. смOpCode.ANEWARRAY,OpCode.CHECKCAST,OpCode.INSTANCEOF- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MTypeInsnclone()intgetOpcode()Возвращает код инструкцииStringgetType()Возвращает типvoidsetOpcode(int opcode)Указывает код инструкцииvoidsetType(String type)Указывает типStringtoString()voidwrite(org.objectweb.asm.MethodVisitor v, MethodWriterCtx ctx)
-
-
-
Method Detail
-
clone
public MTypeInsn clone()
- Specified by:
clonein interfaceMethodByteCode- Specified by:
clonein classMAbstractBC
-
getOpcode
public int getOpcode()
Возвращает код инструкции- Returns:
- Код инструкции
-
setOpcode
public void setOpcode(int opcode)
Указывает код инструкции- Parameters:
opcode- Код инструкции
-
getType
public String getType()
Возвращает тип- Returns:
- тип
-
setType
public void setType(String type)
Указывает тип- Parameters:
type- Тип
-
write
public void write(org.objectweb.asm.MethodVisitor v, MethodWriterCtx ctx)- Specified by:
writein interfaceMethodWriter
-
-