Java Doc for IVariableBinding.java in  » IDE-Eclipse » jdt » org » eclipse » jdt » core » dom » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » IDE Eclipse » jdt » org.eclipse.jdt.core.dom 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.eclipse.jdt.core.dom.IVariableBinding

All known Subclasses:   org.eclipse.jdt.core.dom.VariableBinding,  org.eclipse.jdt.core.dom.RecoveredVariableBinding,
IVariableBinding
public interface IVariableBinding extends IBinding(Code)
A variable binding represents either a field of a class or interface, or a local variable declaration (including formal parameters, local variables, and exception variables).

This interface is not intended to be implemented by clients.


See Also:   ITypeBinding.getDeclaredFields
since:
   2.0




Method Summary
public  ObjectgetConstantValue()
     Returns this binding's constant value if it has one. Some variables may have a value computed at compile-time.
public  ITypeBindinggetDeclaringClass()
     Returns the type binding representing the class or interface that declares this field.

The declaring class of a field is the class or interface of which it is a member.

public  IMethodBindinggetDeclaringMethod()
     Returns the method binding representing the method containing the scope in which this local variable is declared.

The declaring method of a method formal parameter is the method itself. For a local variable declared somewhere within the body of a method, the declaring method is the enclosing method.

public  StringgetName()
     Returns the name of the field or local variable declared in this binding.
public  ITypeBindinggetType()
     Returns the binding for the type of this field or local variable.
public  IVariableBindinggetVariableDeclaration()
     Returns the binding for the variable declaration corresponding to this variable binding.
public  intgetVariableId()
     Returns a small integer variable id for this variable binding.

Local variables inside methods: Local variables (and parameters) declared within a single method are assigned ascending ids in normal code reading order; var1.getVariableId()<var2.getVariableId() means that var1 is declared before var2.

Local variables outside methods: Local variables declared in a type's static initializers (or initializer expressions of static fields) are assigned ascending ids in normal code reading order.

public  booleanisEnumConstant()
     Returns whether this binding is for an enum constant.
public  booleanisField()
     Returns whether this binding is for a field. Note that this method returns true for constants, including enum constants.
public  booleanisParameter()
     Returns whether this binding corresponds to a parameter.



Method Detail
getConstantValue
public Object getConstantValue()(Code)
Returns this binding's constant value if it has one. Some variables may have a value computed at compile-time. If the type of the value is a primitive type, the result is the boxed equivalent (i.e., int returned as an Integer). If the type of the value is String, the result is the string itself. If the variable has no compile-time computed value, the result is null. (Note: compile-time constant expressions cannot denote null; JLS2 15.28.). The result is always null for enum constants. the constant value, or null if none
since:
   3.0



getDeclaringClass
public ITypeBinding getDeclaringClass()(Code)
Returns the type binding representing the class or interface that declares this field.

The declaring class of a field is the class or interface of which it is a member. Local variables have no declaring class. The field length of an array type has no declaring class.

the binding of the class or interface that declares this field,or null if none



getDeclaringMethod
public IMethodBinding getDeclaringMethod()(Code)
Returns the method binding representing the method containing the scope in which this local variable is declared.

The declaring method of a method formal parameter is the method itself. For a local variable declared somewhere within the body of a method, the declaring method is the enclosing method. When local or anonymous classes are involved, the declaring method is the innermost such method. There is no declaring method for a field, or for a local variable declared in a static or instance initializer; this method returns null in those cases.

the binding of the method or constructor that declares thislocal variable, or null if none
since:
   3.1



getName
public String getName()(Code)
Returns the name of the field or local variable declared in this binding. The name is always a simple identifier. the name of this field or local variable



getType
public ITypeBinding getType()(Code)
Returns the binding for the type of this field or local variable. the binding for the type of this field or local variable



getVariableDeclaration
public IVariableBinding getVariableDeclaration()(Code)
Returns the binding for the variable declaration corresponding to this variable binding. For a binding for a field declaration in an instance of a generic type, this method returns the binding for the corresponding field declaration in the generic type. For other variable bindings, including all ones for local variables and parameters, this method returns the same binding. the variable binding for the originating declaration
since:
   3.1



getVariableId
public int getVariableId()(Code)
Returns a small integer variable id for this variable binding.

Local variables inside methods: Local variables (and parameters) declared within a single method are assigned ascending ids in normal code reading order; var1.getVariableId()<var2.getVariableId() means that var1 is declared before var2.

Local variables outside methods: Local variables declared in a type's static initializers (or initializer expressions of static fields) are assigned ascending ids in normal code reading order. Local variables declared in a type's instance initializers (or initializer expressions of non-static fields) are assigned ascending ids in normal code reading order. These ids are useful when checking definite assignment for static initializers (JLS 16.7) and instance initializers (JLS 16.8), respectively.

Fields: Fields declared as members of a type are assigned ascending ids in normal code reading order; field1.getVariableId()<field2.getVariableId() means that field1 is declared before field2.

a small non-negative variable id



isEnumConstant
public boolean isEnumConstant()(Code)
Returns whether this binding is for an enum constant. Note that this method returns false for local variables and for fields other than enum constants. true if this is the binding for an enum constant,and false otherwise
since:
   3.1



isField
public boolean isField()(Code)
Returns whether this binding is for a field. Note that this method returns true for constants, including enum constants. This method returns false for local variables. true if this is the binding for a field,and false otherwise



isParameter
public boolean isParameter()(Code)
Returns whether this binding corresponds to a parameter. true if this is the binding for a parameter,and false otherwise
since:
   3.2



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.