Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-04

javax.ide.model.java.declaration
Interface MethodD

All Superinterfaces:
Declaration, ExecutableD, GenericD, HasAnnotationsD, HasNameD, HasTypeD, MemberD

public interface MethodD
extends ExecutableD, HasNameD, HasTypeD

Represents a method or annotation element.

An annotation element MUST be a MethodD because annotation types may be extended/implemented where an annotation element will be treated like an ordinary interface method.


Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.ide.model.java.declaration.Declaration
Declaration.DeclarationKind
 
Method Summary
 java.lang.Object getDefaultValue()
          Gets the default value, null if this is not an annotation element.
 TypeD getReturnType()
          Gets the return type.
 boolean isAbstract()
          True if this is modified with "abstract".
 boolean isAnnotationElement()
          True if this is an annotation element.
 boolean isBridge()
          True if marked as a bridge method.
 boolean isNative()
          True if this is modified with "native".
 boolean isStrictfp()
          True if this is modified with "strictfp".
 boolean isSynchronized()
          True if this is modified with "synchronized".
 
Methods inherited from interface javax.ide.model.java.declaration.ExecutableD
getExceptionTypes, getParameters, getParameterTypes, isVarArgs
 
Methods inherited from interface javax.ide.model.java.declaration.GenericD
getTypeParameters
 
Methods inherited from interface javax.ide.model.java.declaration.MemberD
getEnclosingClass, getModifiers, isFinal, isPrivate, isProtected, isPublic, isStatic
 
Methods inherited from interface javax.ide.model.java.declaration.Declaration
getDeclarationKind, getPosition, isSynthetic
 
Methods inherited from interface javax.ide.model.java.declaration.HasAnnotationsD
getAnnotations
 
Methods inherited from interface javax.ide.model.java.declaration.HasNameD
getName
 
Methods inherited from interface javax.ide.model.java.declaration.HasTypeD
getType
 

Method Detail

isAnnotationElement

boolean isAnnotationElement()
True if this is an annotation element.

Returns:
True if this is an annotation element.

isSynchronized

boolean isSynchronized()
True if this is modified with "synchronized".

Returns:
True if this is modified with "synchronized".

isBridge

boolean isBridge()
True if marked as a bridge method.

Returns:
True if marked as a bridge method.

isNative

boolean isNative()
True if this is modified with "native".

Returns:
True if this is modified with "native".

isAbstract

boolean isAbstract()
True if this is modified with "abstract".

Returns:
True if this is modified with "abstract".

isStrictfp

boolean isStrictfp()
True if this is modified with "strictfp".

Returns:
True if this is modified with "strictfp".

getDefaultValue

java.lang.Object getDefaultValue()
Gets the default value, null if this is not an annotation element.

Returns:
An object representing the default value:
  • A value of a primitive type gets returned as an instance of its appropriate wrapper class (e.g. Integer).
  • A String value gets returned as a String instance.
  • A class reference gets returned as a TypeM instance.
  • An annotation gets returned as an AnnotationM instance.
  • An array gets returned as a Collection, one element for each value.

    getReturnType

    TypeD getReturnType()
    Gets the return type.

    Returns:
    The type declaration for the return type of this method.

    Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
    11g Release 1 (11.1.1)

    E13403-04

    Copyright © 1997, 2010, Oracle. All rights reserved.