Package xyz.cofe.trambda.bc.mth
Class MTryCatchBlock
- java.lang.Object
-
- xyz.cofe.trambda.bc.mth.MAbstractBC
-
- xyz.cofe.trambda.bc.mth.MTryCatchBlock
-
- All Implemented Interfaces:
Serializable,xyz.cofe.collection.ImTree<ByteCode>,xyz.cofe.collection.ImTreeWalk<ByteCode>,ByteCode,MethodByteCode,MethodWriter
public class MTryCatchBlock extends MAbstractBC implements ByteCode, MethodWriter
try catch block- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MTryCatchBlock()Конструктор по умолчаниюMTryCatchBlock(String start, String end, String handler, String type)MTryCatchBlock(MTryCatchBlock sample)Конструктор копирования
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MTryCatchBlockclone()StringgetLabelEnd()the end of the exception handler's scope (exclusive).StringgetLabelHandler()the beginning of the exception handler's code.StringgetLabelStart()the beginning of the exception handler's scope (inclusive).StringgetType()the internal name of the type of exceptions handled by the handler, or null to catch any exceptions (for "finally" blocks).voidsetLabelEnd(String labelEnd)voidsetLabelHandler(String labelHandler)voidsetLabelStart(String labelStart)voidsetType(String type)StringtoString()voidwrite(org.objectweb.asm.MethodVisitor v, MethodWriterCtx ctx)
-
-
-
Constructor Detail
-
MTryCatchBlock
public MTryCatchBlock()
Конструктор по умолчанию
-
MTryCatchBlock
public MTryCatchBlock(MTryCatchBlock sample)
Конструктор копирования- Parameters:
sample- образец
-
-
Method Detail
-
clone
public MTryCatchBlock clone()
- Specified by:
clonein interfaceMethodByteCode- Specified by:
clonein classMAbstractBC
-
getLabelStart
public String getLabelStart()
the beginning of the exception handler's scope (inclusive).- Returns:
- begin label
-
setLabelStart
public void setLabelStart(String labelStart)
-
getLabelEnd
public String getLabelEnd()
the end of the exception handler's scope (exclusive).- Returns:
- end label
-
setLabelEnd
public void setLabelEnd(String labelEnd)
-
getLabelHandler
public String getLabelHandler()
the beginning of the exception handler's code.- Returns:
- handler
-
setLabelHandler
public void setLabelHandler(String labelHandler)
-
getType
public String getType()
the internal name of the type of exceptions handled by the handler, or null to catch any exceptions (for "finally" blocks).- Returns:
- type
-
setType
public void setType(String type)
-
write
public void write(org.objectweb.asm.MethodVisitor v, MethodWriterCtx ctx)- Specified by:
writein interfaceMethodWriter
-
-