Package xyz.cofe.trambda.bc.cls
Class CMethod
- java.lang.Object
-
- xyz.cofe.trambda.bc.cls.CMethod
-
- All Implemented Interfaces:
Serializable,xyz.cofe.collection.ImTree<ByteCode>,xyz.cofe.collection.ImTreeWalk<ByteCode>,AccFlagsProperty,ByteCode,ClazzWriter,ClsByteCode,MethodFlags
public class CMethod extends Object implements ClsByteCode, ClazzWriter, AccFlagsProperty, MethodFlags
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected intaccessprotected Stringdescriptorprotected String[]exceptionsprotected List<MethodByteCode>methodByteCodesprotected Stringnameprotected Stringsignature
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CMethodclone()CMethodconfigure(Consumer<CMethod> conf)intgetAccess()StringgetDescriptor()String[]getExceptions()List<MethodByteCode>getMethodByteCodes()StringgetName()StringgetSignature()xyz.cofe.iter.Eterable<ByteCode>nodes()Возвращает дочерние узлыvoidsetAccess(int access)voidsetDescriptor(String descriptor)voidsetExceptions(String[] exceptions)voidsetMethodByteCodes(List<MethodByteCode> ls)voidsetName(String name)voidsetSignature(String signature)StringtoString()voidwrite(org.objectweb.asm.ClassWriter v)-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface xyz.cofe.trambda.bc.MethodFlags
isAbstract, isBridge, isDeprecated, isFinal, isMandated, isNative, isPrivate, isProtected, isPublic, isStatic, isStrict, isSynchronized, isSynthetic, isVarArgs, setAbstract, setBridge, setDeprecated, setFinal, setMandated, setNative, setPrivate, setProtected, setPublic, setStatic, setStrict, setSynchronized, setSynthetic, setVarArgs
-
-
-
-
Method Detail
-
clone
public CMethod clone()
- Specified by:
clonein interfaceClsByteCode- Overrides:
clonein classObject
-
getAccess
public int getAccess()
- Specified by:
getAccessin interfaceAccFlagsProperty
-
setAccess
public void setAccess(int access)
- Specified by:
setAccessin interfaceAccFlagsProperty
-
getName
public String getName()
-
setName
public void setName(String name)
-
getDescriptor
public String getDescriptor()
-
setDescriptor
public void setDescriptor(String descriptor)
-
getSignature
public String getSignature()
-
setSignature
public void setSignature(String signature)
-
getExceptions
public String[] getExceptions()
-
setExceptions
public void setExceptions(String[] exceptions)
-
getMethodByteCodes
public List<MethodByteCode> getMethodByteCodes()
-
setMethodByteCodes
public void setMethodByteCodes(List<MethodByteCode> ls)
-
nodes
public xyz.cofe.iter.Eterable<ByteCode> nodes()
Возвращает дочерние узлы
-
write
public void write(org.objectweb.asm.ClassWriter v)
- Specified by:
writein interfaceClazzWriter
-
-