Class ZMethod
java.lang.Object
dxt.scanpath.v2.bc.ZMethod
Encapsulates metadata for a method read directly from a class file.
The metadata includes the method name, access modifiers, and the types of its annotations that are visible at runtime.
- Author:
- indroneel
-
Constructor Summary
ConstructorsConstructorDescriptionZMethod(ZClassContext ctxt, MethodModel mthdMod) Creates method metadata from a class-file method model. -
Method Summary
Modifier and TypeMethodDescriptionReturns the types of the method's runtime-visible annotations.getName()Returns the method name.booleanIndicates whether the method has theabstractmodifier.booleanisNative()Indicates whether the method has thenativemodifier.booleanisStatic()Indicates whether the method has thestaticmodifier.
-
Constructor Details
-
ZMethod
Creates method metadata from a class-file method model.- Parameters:
ctxt- the class context used to resolve annotation typesmthdMod- the class-file model of the method
-
-
Method Details
-
getName
-
isStatic
public boolean isStatic()Indicates whether the method has thestaticmodifier.- Returns:
trueif the method is static; otherwise,false
-
isAbstract
public boolean isAbstract()Indicates whether the method has theabstractmodifier.- Returns:
trueif the method is abstract; otherwise,false
-
isNative
public boolean isNative()Indicates whether the method has thenativemodifier.- Returns:
trueif the method is native; otherwise,false
-
getAnnotations
-