Package jadex.commons
Class SClassReader.MethodInfo
- java.lang.Object
-
- jadex.commons.SClassReader.AnnotatedEntity
-
- jadex.commons.SClassReader.ClassEntity
-
- jadex.commons.SClassReader.MethodInfo
-
- Enclosing class:
- SClassReader
public static class SClassReader.MethodInfo extends SClassReader.ClassEntity
Info object describing a method.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
methoddesc
The method descriptor.protected java.lang.String
methodname
The method name.-
Fields inherited from class jadex.commons.SClassReader.AnnotatedEntity
accessflags, annotations
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
MethodInfo()
Create mew method info.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getMethodDescriptor()
Get the method descriptor.java.lang.String
getMethodName()
Get the method name.boolean
isAbstract()
Tests if method is abstract.boolean
isBridge()
Tests if method is a bridge method.boolean
isNative()
Tests if method is a native method.boolean
isStrict()
Tests if method is strict.boolean
isSynchronized()
Tests if method is synchronized.boolean
isVarArgs()
Tests if method is a varargs method.protected void
setMethodDescriptor(java.lang.String methoddesc)
Set the method descriptor.protected void
setMethodName(java.lang.String methodname)
Set the method name.-
Methods inherited from class jadex.commons.SClassReader.ClassEntity
isPrivate, isProtected, isStatic
-
Methods inherited from class jadex.commons.SClassReader.AnnotatedEntity
getAccessFlags, getAnnotation, getAnnotations, hasAnnotation, isFinal, isPublic, isSynthetic, setAccessFlags, setAnnotations
-
-
-
-
Method Detail
-
getMethodName
public java.lang.String getMethodName()
Get the method name.- Returns:
- the method name.
-
getMethodDescriptor
public java.lang.String getMethodDescriptor()
Get the method descriptor.- Returns:
- the method descriptor.
-
setMethodName
protected void setMethodName(java.lang.String methodname)
Set the method name.- Parameters:
methodname
- the method name to set
-
setMethodDescriptor
protected void setMethodDescriptor(java.lang.String methoddesc)
Set the method descriptor.- Parameters:
methoddesc
- the method descriptor to set
-
isSynchronized
public boolean isSynchronized()
Tests if method is synchronized.- Returns:
- True, if synchronized.
-
isBridge
public boolean isBridge()
Tests if method is a bridge method.- Returns:
- True, if bridge method.
-
isVarArgs
public boolean isVarArgs()
Tests if method is a varargs method.- Returns:
- True, if varargs method.
-
isNative
public boolean isNative()
Tests if method is a native method.- Returns:
- True, if native method.
-
isAbstract
public boolean isAbstract()
Tests if method is abstract.- Returns:
- True, if abstract.
-
isStrict
public boolean isStrict()
Tests if method is strict.- Returns:
- True, if strict.
-
-