public class Method extends ProgramElement
Modifier and Type | Field and Description |
---|---|
static short |
ACC_ABSTRACT |
static short |
ACC_BRIDGE |
static short |
ACC_FINAL |
static short |
ACC_NATIVE |
static short |
ACC_PRIVATE |
static short |
ACC_PROTECTED |
static short |
ACC_PUBLIC |
static short |
ACC_STATIC |
static short |
ACC_STRICT |
static short |
ACC_SYNCHRONIZED |
static short |
ACC_SYNTHETIC |
static short |
ACC_VARARGS |
access_flags, attributes, config, constantPool
Constructor and Description |
---|
Method(ConstantPool cp,
short access_flags,
String name,
String descriptor,
LinkedList<Attribute> attributes) |
Modifier and Type | Method and Description |
---|---|
Code |
getCodeAttribute()
Gets the CodeAttribute of this Method.
|
String |
getDescriptor()
Gets the descriptor of this method from constant pool.
|
Exceptions |
getExceptionsAttribute()
Gets the ExceptionsAttribute of this Method.
|
String |
getName()
Gets the name of this method from constant pool.
|
String |
toString() |
getAccessFlags, getAttribute, getAttributes, getConstantPool, readAttributes, writeAttributes
public static final short ACC_PUBLIC
public static final short ACC_PRIVATE
public static final short ACC_PROTECTED
public static final short ACC_STATIC
public static final short ACC_FINAL
public static final short ACC_SYNCHRONIZED
public static final short ACC_BRIDGE
public static final short ACC_VARARGS
public static final short ACC_NATIVE
public static final short ACC_ABSTRACT
public static final short ACC_STRICT
public static final short ACC_SYNTHETIC
public Method(ConstantPool cp, short access_flags, String name, String descriptor, LinkedList<Attribute> attributes)
public String getName()
public String getDescriptor()
public Code getCodeAttribute()
public Exceptions getExceptionsAttribute()
Copyright © 2017. All rights reserved.