Skip navigation links

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09


com.bea.util.jam
Interface JMethod

All Superinterfaces:
JAnnotatedElement, JElement, JInvokable, JMember

public interface JMethod
extends JInvokable

Represents a method of a java class.


Method Summary
abstract  String getQualifiedName()
          Returns a qualied name for this method as specified by java.lang.reflect.Method.toString():
abstract  JClass getReturnType()
          Returns a JClass object representing the type of this methods return value.
abstract  boolean isAbstract()
          Return true if this member is abstract.
abstract  boolean isFinal()
          Return true if this method is declared final.
abstract  boolean isNative()
          Returns true if this method is declared native.
abstract  boolean isStatic()
          Return true if this method is static.
abstract  boolean isSynchronized()
          Returns true if this method is declared synchronized.

 

Methods inherited from interface com.bea.util.jam.JInvokable
getExceptionTypes, getParameters

 

Methods inherited from interface com.bea.util.jam.JMember
getContainingClass, getModifiers, isPackagePrivate, isPrivate, isProtected, isPublic

 

Methods inherited from interface com.bea.util.jam.JAnnotatedElement
getAllJavadocTags, getAnnotation, getAnnotation, getAnnotations, getAnnotationValue, getComment

 

Methods inherited from interface com.bea.util.jam.JElement
accept, getArtifact, getParent, getSimpleName, getSourcePosition, isSourceAvailable, toString

 

Method Detail

getReturnType

JClass getReturnType()

Returns a JClass object representing the type of this methods return value. Note that void methods will return a JClass for which isVoidType() returns true.


isFinal

boolean isFinal()
Return true if this method is declared final.

isStatic

boolean isStatic()
Return true if this method is static.

isAbstract

boolean isAbstract()
Return true if this member is abstract.

isNative

boolean isNative()
Returns true if this method is declared native.

isSynchronized

boolean isSynchronized()
Returns true if this method is declared synchronized.

getQualifiedName

String getQualifiedName()

Returns a qualied name for this method as specified by java.lang.reflect.Method.toString():

Returns a string describing this Method. The string is formatted as the method access modifiers, if any, followed by the method return type, followed by a space, followed by the class declaring the method, followed by a period, followed by the method name, followed by a parenthesized, comma-separated list of the method's formal parameter types. If the method throws checked exceptions, the parameter list is followed by a space, followed by the word throws followed by a comma-separated list of the thrown exception types. For example:

public boolean java.lang.Object.equals(java.lang.Object)

The access modifiers are placed in canonical order as specified by "The Java Language Specification". This is public, protected or private first, and then other modifiers in the following order: abstract, static, final, synchronized native.

Specified by:
getQualifiedName in interface JElement

Skip navigation links

Copyright 1996, 2015, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09