| Modifier and Type | Field and Description |
|---|---|
protected ArrayList<BytecodeAttribute> |
attributes |
protected List<Modifier> |
modifiers |
protected String |
name |
protected JvmType.Function |
type |
| Constructor and Description |
|---|
Method(String name,
JvmType.Function type,
List<Modifier> modifiers) |
| Modifier and Type | Method and Description |
|---|---|
<T extends BytecodeAttribute> |
attribute(Class<T> c) |
BytecodeAttribute |
attribute(String name) |
List<BytecodeAttribute> |
attributes() |
List<JvmType.Clazz> |
exceptions() |
boolean |
hasModifier(Class modifierClass)
Check whether this method has one of the "base" modifiers (e.g.
|
boolean |
isAbstract()
Check whether this method is abstract
|
boolean |
isFinal()
Check whether this method is final
|
boolean |
isNative()
Check whether this method is native
|
boolean |
isPrivate()
Check whether this method is private
|
boolean |
isProtected()
Check whether this method is protected
|
boolean |
isPublic()
Check whether this method is public
|
boolean |
isStatic()
Check whether this method is static
|
boolean |
isSynchronized()
Check whether this method is synchronized
|
boolean |
isSynthetic()
Check whether this method is synthetic
|
boolean |
isVariableArity()
Check whether this method has varargs
|
List<Modifier> |
modifiers() |
String |
name() |
List<ClassFile.Parameter> |
parameters() |
void |
setType(JvmType.Function t) |
JvmType.Function |
type() |
protected String name
protected JvmType.Function type
protected ArrayList<BytecodeAttribute> attributes
public Method(String name, JvmType.Function type, List<Modifier> modifiers)
public String name()
public JvmType.Function type()
public void setType(JvmType.Function t)
public List<ClassFile.Parameter> parameters()
public List<JvmType.Clazz> exceptions()
public <T extends BytecodeAttribute> T attribute(Class<T> c)
public List<BytecodeAttribute> attributes()
public BytecodeAttribute attribute(String name)
public boolean hasModifier(Class modifierClass)
modifierClass - Class for modifier in questionpublic boolean isAbstract()
public boolean isFinal()
public boolean isStatic()
public boolean isPublic()
public boolean isProtected()
public boolean isPrivate()
public boolean isNative()
public boolean isSynchronized()
public boolean isSynthetic()
public boolean isVariableArity()
Copyright © 2016. All rights reserved.