Package jadex.classreader
Class SClassReader.MethodInfo
java.lang.Object
jadex.classreader.SClassReader.AnnotatedEntity
jadex.classreader.SClassReader.ClassEntity
jadex.classreader.SClassReader.MethodInfo
- Enclosing class:
SClassReader
Info object describing a method.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
The method descriptor.protected String
The method name.protected String
The method signature (cached).Fields inherited from class jadex.classreader.SClassReader.AnnotatedEntity
accessflags, annotations
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the method descriptor.Get the method name.Returns a String representation of the method signature.boolean
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
Tests if method is synchronized.boolean
Tests if method is a varargs method.protected void
setMethodDescriptor
(String methoddesc) Set the method descriptor.protected void
setMethodName
(String methodname) Set the method name.toString()
Methods inherited from class jadex.classreader.SClassReader.ClassEntity
isPrivate, isProtected, isStatic
Methods inherited from class jadex.classreader.SClassReader.AnnotatedEntity
getAccessFlags, getAnnotation, getAnnotations, hasAnnotation, isFinal, isPublic, isSynthetic, setAccessFlags, setAnnotations
-
Field Details
-
methodname
The method name. -
methoddesc
The method descriptor. -
signature
The method signature (cached).
-
-
Constructor Details
-
MethodInfo
protected MethodInfo()Create mew method info.
-
-
Method Details
-
getMethodName
Get the method name.- Returns:
- the method name.
-
getMethodDescriptor
Get the method descriptor.- Returns:
- the method descriptor.
-
getMethodSignature
Returns a String representation of the method signature.- Returns:
- Method signature.
-
setMethodName
Set the method name.- Parameters:
methodname
- the method name to set
-
setMethodDescriptor
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.
-
toString
-