Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse JDT
Release 3.5

org.eclipse.jdt.core.dom
Interface IMemberValuePairBinding

All Superinterfaces:
IBinding

public interface IMemberValuePairBinding
extends IBinding

Represents a resolved instance of an annotation's member value pair. Resolved annotation are computed along with other bindings; these objects correspond to MemberValuePair nodes.

Since:
3.2
Restriction:
This interface is not intended to be implemented by clients.

Field Summary
 
Fields inherited from interface org.eclipse.jdt.core.dom. IBinding
ANNOTATION, MEMBER_VALUE_PAIR, METHOD, PACKAGE, TYPE, VARIABLE
 
Method Summary
  IMethodBinding getMethodBinding ()
          Returns the method binding corresponding to the named annotation type member.
  String getName ()
          Returns the name of the annotation type member.
  Object getValue ()
          Returns the resolved value.
 boolean isDefault ()
           
 
Methods inherited from interface org.eclipse.jdt.core.dom. IBinding
equals, getAnnotations, getJavaElement, getKey, getKind, getModifiers, isDeprecated, isEqualTo, isRecovered, isSynthetic, toString
 

Method Detail

getName

String getName()
Returns the name of the annotation type member.

Specified by:
getName in interface IBinding
Returns:
the name of the member

getMethodBinding

IMethodBinding getMethodBinding()
Returns the method binding corresponding to the named annotation type member.

Returns:
the method binding for the annotation type member

getValue

Object getValue()
Returns the resolved value. Resolved values are represented as follows:
  • Primitive type - the equivalent boxed object
  • java.lang.Class - the ITypeBinding for the class object
  • java.lang.String - the string value itself
  • enum type - the IVariableBinding for the enum constant
  • annotation type - an IAnnotationBinding
  • array type - an Object[] whose elements are as per above (the language only allows single dimensional arrays in annotations)

Returns:
the resolved value, or null if none exists

isDefault

boolean isDefault()
Returns:
true iff this member value pair's value is the default value. Returns false otherwise.

Eclipse JDT
Release 3.5

Copyright (c) IBM Corp. and others 2000, 2008. All Rights Reserved.

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire