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 StringThe method descriptor.protected StringThe method name.protected StringThe 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.booleanTests if method is abstract.booleanisBridge()Tests if method is a bridge method.booleanisNative()Tests if method is a native method.booleanisStrict()Tests if method is strict.booleanTests if method is synchronized.booleanTests if method is a varargs method.protected voidsetMethodDescriptor(String methoddesc) Set the method descriptor.protected voidsetMethodName(String methodname) Set the method name.toString()Methods inherited from class jadex.classreader.SClassReader.ClassEntity
isPrivate, isProtected, isStaticMethods 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
-