Java Doc for VariableDeclarationExpression.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) 


java.lang.Object
   org.eclipse.jdt.core.dom.ASTNode
      org.eclipse.jdt.core.dom.Expression
         org.eclipse.jdt.core.dom.VariableDeclarationExpression

VariableDeclarationExpression
public class VariableDeclarationExpression extends Expression (Code)
Local variable declaration expression AST node type.

This kind of node collects together several variable declaration fragments (VariableDeclarationFragment) into a single expression (Expression), all sharing the same modifiers and base type. This type of node can be used as the initializer of a ForStatement, or wrapped in an ExpressionStatement to form the equivalent of a VariableDeclarationStatement.

For JLS2:
 VariableDeclarationExpression:
 { Modifier } Type VariableDeclarationFragment
 { , VariableDeclarationFragment } 
 
For JLS3, the modifier flags were replaced by a list of modifier nodes (intermixed with annotations):
 VariableDeclarationExpression:
 { ExtendedModifier } Type VariableDeclarationFragment
 { , VariableDeclarationFragment } 
 

since:
   2.0


Field Summary
final public static  ChildListPropertyDescriptorFRAGMENTS_PROPERTY
     The "fragments" structural property of this node type).
final public static  ChildListPropertyDescriptorMODIFIERS2_PROPERTY
     The "modifiers" structural property of this node type (added in JLS3 API).
final public static  SimplePropertyDescriptorMODIFIERS_PROPERTY
     The "modifiers" structural property of this node type (JLS2 API only).
final public static  ChildPropertyDescriptorTYPE_PROPERTY
     The "type" structural property of this node type.

Constructor Summary
 VariableDeclarationExpression(AST ast)
     Creates a new unparented local variable declaration expression node owned by the given AST.

Method Summary
 voidaccept0(ASTVisitor visitor)
    
 ASTNodeclone0(AST target)
    
public  Listfragments()
     Returns the live list of variable declaration fragments in this expression.
public  intgetModifiers()
     Returns the modifiers explicitly specified on this declaration.
final  intgetNodeType0()
    
public  TypegetType()
     Returns the base type declared in this variable declaration.

N.B.

final  ListinternalGetChildListProperty(ChildListPropertyDescriptor property)
    
final  ASTNodeinternalGetSetChildProperty(ChildPropertyDescriptor property, boolean get, ASTNode child)
    
final  intinternalGetSetIntProperty(SimplePropertyDescriptor property, boolean get, int value)
    
final  voidinternalSetModifiers(int pmodifiers)
     Internal synonym for deprecated method.
final  ListinternalStructuralPropertiesForType(int apiLevel)
    
 intmemSize()
    
public  Listmodifiers()
     Returns the live ordered list of modifiers and annotations of this declaration (added in JLS3 API).
public static  ListpropertyDescriptors(int apiLevel)
     Returns a list of structural property descriptors for this node type.
public  voidsetModifiers(int modifiers)
     Sets the modifiers explicitly specified on this declaration (JLS2 API only).
public  voidsetType(Type type)
     Sets the base type declared in this variable declaration to the given type.
final  booleansubtreeMatch0(ASTMatcher matcher, Object other)
    
 inttreeSize()
    

Field Detail
FRAGMENTS_PROPERTY
final public static ChildListPropertyDescriptor FRAGMENTS_PROPERTY(Code)
The "fragments" structural property of this node type).
since:
   3.0



MODIFIERS2_PROPERTY
final public static ChildListPropertyDescriptor MODIFIERS2_PROPERTY(Code)
The "modifiers" structural property of this node type (added in JLS3 API).
since:
   3.1



MODIFIERS_PROPERTY
final public static SimplePropertyDescriptor MODIFIERS_PROPERTY(Code)
The "modifiers" structural property of this node type (JLS2 API only).
since:
   3.0



TYPE_PROPERTY
final public static ChildPropertyDescriptor TYPE_PROPERTY(Code)
The "type" structural property of this node type.
since:
   3.0




Constructor Detail
VariableDeclarationExpression
VariableDeclarationExpression(AST ast)(Code)
Creates a new unparented local variable declaration expression node owned by the given AST. By default, the variable declaration has: no modifiers, an unspecified (but legal) type, and an empty list of variable declaration fragments (which is syntactically illegal).

N.B. This constructor is package-private.


Parameters:
  ast - the AST that is to own this node




Method Detail
accept0
void accept0(ASTVisitor visitor)(Code)



clone0
ASTNode clone0(AST target)(Code)



fragments
public List fragments()(Code)
Returns the live list of variable declaration fragments in this expression. Adding and removing nodes from this list affects this node dynamically. All nodes in this list must be VariableDeclarationFragments; attempts to add any other type of node will trigger an exception. the live list of variable declaration fragments in this expression (element type: VariableDeclarationFragment)



getModifiers
public int getModifiers()(Code)
Returns the modifiers explicitly specified on this declaration.

In the JLS3 API, this method is a convenience method that computes these flags from modifiers().

the bit-wise or of Modifier constants
See Also:   Modifier



getNodeType0
final int getNodeType0()(Code)



getType
public Type getType()(Code)
Returns the base type declared in this variable declaration.

N.B. The individual child variable declaration fragments may specify additional array dimensions. So the type of the variable are not necessarily exactly this type.

the base type



internalGetChildListProperty
final List internalGetChildListProperty(ChildListPropertyDescriptor property)(Code)



internalGetSetChildProperty
final ASTNode internalGetSetChildProperty(ChildPropertyDescriptor property, boolean get, ASTNode child)(Code)



internalGetSetIntProperty
final int internalGetSetIntProperty(SimplePropertyDescriptor property, boolean get, int value)(Code)



internalSetModifiers
final void internalSetModifiers(int pmodifiers)(Code)
Internal synonym for deprecated method. Used to avoid deprecation warnings.
since:
   3.1



internalStructuralPropertiesForType
final List internalStructuralPropertiesForType(int apiLevel)(Code)



memSize
int memSize()(Code)



modifiers
public List modifiers()(Code)
Returns the live ordered list of modifiers and annotations of this declaration (added in JLS3 API).

Note that the final modifier is the only meaningful modifier for local variable declarations.

the live list of modifiers and annotations(element type: IExtendedModifier)
exception:
  UnsupportedOperationException - if this operation is used ina JLS2 AST
since:
   3.1



propertyDescriptors
public static List propertyDescriptors(int apiLevel)(Code)
Returns a list of structural property descriptors for this node type. Clients must not modify the result.
Parameters:
  apiLevel - the API level; one of theAST.JLS* constants a list of property descriptors (element type: StructuralPropertyDescriptor)
since:
   3.0



setModifiers
public void setModifiers(int modifiers)(Code)
Sets the modifiers explicitly specified on this declaration (JLS2 API only).

Note that the final modifier is the only meaningful modifier for local variable declarations.


Parameters:
  modifiers - the given modifiers (bit-wise or of Modifier constants)
exception:
  UnsupportedOperationException - if this operation is used inan AST later than JLS2
See Also:   ModifierVariableDeclarationExpression.modifiers()



setType
public void setType(Type type)(Code)
Sets the base type declared in this variable declaration to the given type.
Parameters:
  type - the new base type
exception:
  IllegalArgumentException - if:
  • the node belongs to a different AST
  • the node already has a parent



subtreeMatch0
final boolean subtreeMatch0(ASTMatcher matcher, Object other)(Code)



treeSize
int treeSize()(Code)



Methods inherited from org.eclipse.jdt.core.dom.Expression
final public boolean resolveBoxing()(Code)(Java Doc)
final public Object resolveConstantExpressionValue()(Code)(Java Doc)
final public ITypeBinding resolveTypeBinding()(Code)(Java Doc)
final public boolean resolveUnboxing()(Code)(Java Doc)

Fields inherited from org.eclipse.jdt.core.dom.ASTNode
final public static int ANNOTATION_TYPE_DECLARATION(Code)(Java Doc)
final public static int ANNOTATION_TYPE_MEMBER_DECLARATION(Code)(Java Doc)
final public static int ANONYMOUS_CLASS_DECLARATION(Code)(Java Doc)
final public static int ARRAY_ACCESS(Code)(Java Doc)
final public static int ARRAY_CREATION(Code)(Java Doc)
final public static int ARRAY_INITIALIZER(Code)(Java Doc)
final public static int ARRAY_TYPE(Code)(Java Doc)
final public static int ASSERT_STATEMENT(Code)(Java Doc)
final public static int ASSIGNMENT(Code)(Java Doc)
final static int BASE_NODE_SIZE(Code)(Java Doc)
final public static int BLOCK(Code)(Java Doc)
final public static int BLOCK_COMMENT(Code)(Java Doc)
final public static int BOOLEAN_LITERAL(Code)(Java Doc)
final public static int BREAK_STATEMENT(Code)(Java Doc)
final public static int CAST_EXPRESSION(Code)(Java Doc)
final public static int CATCH_CLAUSE(Code)(Java Doc)
final public static int CHARACTER_LITERAL(Code)(Java Doc)
final public static int CLASS_INSTANCE_CREATION(Code)(Java Doc)
final public static int COMPILATION_UNIT(Code)(Java Doc)
final public static int CONDITIONAL_EXPRESSION(Code)(Java Doc)
final public static int CONSTRUCTOR_INVOCATION(Code)(Java Doc)
final public static int CONTINUE_STATEMENT(Code)(Java Doc)
final static boolean CYCLE_RISK(Code)(Java Doc)
final public static int DO_STATEMENT(Code)(Java Doc)
final public static int EMPTY_STATEMENT(Code)(Java Doc)
final public static int ENHANCED_FOR_STATEMENT(Code)(Java Doc)
final public static int ENUM_CONSTANT_DECLARATION(Code)(Java Doc)
final public static int ENUM_DECLARATION(Code)(Java Doc)
final public static int EXPRESSION_STATEMENT(Code)(Java Doc)
final public static int FIELD_ACCESS(Code)(Java Doc)
final public static int FIELD_DECLARATION(Code)(Java Doc)
final public static int FOR_STATEMENT(Code)(Java Doc)
final static int HEADERS(Code)(Java Doc)
final public static int IF_STATEMENT(Code)(Java Doc)
final public static int IMPORT_DECLARATION(Code)(Java Doc)
final public static int INFIX_EXPRESSION(Code)(Java Doc)
final public static int INITIALIZER(Code)(Java Doc)
final public static int INSTANCEOF_EXPRESSION(Code)(Java Doc)
final public static int JAVADOC(Code)(Java Doc)
final public static int LABELED_STATEMENT(Code)(Java Doc)
final public static int LINE_COMMENT(Code)(Java Doc)
final public static int MALFORMED(Code)(Java Doc)
final static boolean MANDATORY(Code)(Java Doc)
final public static int MARKER_ANNOTATION(Code)(Java Doc)
final public static int MEMBER_REF(Code)(Java Doc)
final public static int MEMBER_VALUE_PAIR(Code)(Java Doc)
final public static int METHOD_DECLARATION(Code)(Java Doc)
final public static int METHOD_INVOCATION(Code)(Java Doc)
final public static int METHOD_REF(Code)(Java Doc)
final public static int METHOD_REF_PARAMETER(Code)(Java Doc)
final public static int MODIFIER(Code)(Java Doc)
final public static int NORMAL_ANNOTATION(Code)(Java Doc)
final static boolean NO_CYCLE_RISK(Code)(Java Doc)
final public static int NULL_LITERAL(Code)(Java Doc)
final public static int NUMBER_LITERAL(Code)(Java Doc)
final static boolean OPTIONAL(Code)(Java Doc)
final public static int ORIGINAL(Code)(Java Doc)
final public static int PACKAGE_DECLARATION(Code)(Java Doc)
final public static int PARAMETERIZED_TYPE(Code)(Java Doc)
final public static int PARENTHESIZED_EXPRESSION(Code)(Java Doc)
final public static int POSTFIX_EXPRESSION(Code)(Java Doc)
final public static int PREFIX_EXPRESSION(Code)(Java Doc)
final public static int PRIMITIVE_TYPE(Code)(Java Doc)
final public static int PROTECT(Code)(Java Doc)
final public static int QUALIFIED_NAME(Code)(Java Doc)
final public static int QUALIFIED_TYPE(Code)(Java Doc)
final public static int RECOVERED(Code)(Java Doc)
final public static int RETURN_STATEMENT(Code)(Java Doc)
final public static int SIMPLE_NAME(Code)(Java Doc)
final public static int SIMPLE_TYPE(Code)(Java Doc)
final public static int SINGLE_MEMBER_ANNOTATION(Code)(Java Doc)
final public static int SINGLE_VARIABLE_DECLARATION(Code)(Java Doc)
final public static int STRING_LITERAL(Code)(Java Doc)
final public static int SUPER_CONSTRUCTOR_INVOCATION(Code)(Java Doc)
final public static int SUPER_FIELD_ACCESS(Code)(Java Doc)
final public static int SUPER_METHOD_INVOCATION(Code)(Java Doc)
final public static int SWITCH_CASE(Code)(Java Doc)
final public static int SWITCH_STATEMENT(Code)(Java Doc)
final public static int SYNCHRONIZED_STATEMENT(Code)(Java Doc)
final public static int TAG_ELEMENT(Code)(Java Doc)
final public static int TEXT_ELEMENT(Code)(Java Doc)
final public static int THIS_EXPRESSION(Code)(Java Doc)
final public static int THROW_STATEMENT(Code)(Java Doc)
final public static int TRY_STATEMENT(Code)(Java Doc)
final public static int TYPE_DECLARATION(Code)(Java Doc)
final public static int TYPE_DECLARATION_STATEMENT(Code)(Java Doc)
final public static int TYPE_LITERAL(Code)(Java Doc)
final public static int TYPE_PARAMETER(Code)(Java Doc)
final public static int VARIABLE_DECLARATION_EXPRESSION(Code)(Java Doc)
final public static int VARIABLE_DECLARATION_FRAGMENT(Code)(Java Doc)
final public static int VARIABLE_DECLARATION_STATEMENT(Code)(Java Doc)
final public static int WHILE_STATEMENT(Code)(Java Doc)
final public static int WILDCARD_TYPE(Code)(Java Doc)
final AST ast(Code)(Java Doc)
int typeAndFlags(Code)(Java Doc)

Methods inherited from org.eclipse.jdt.core.dom.ASTNode
final public void accept(ASTVisitor visitor)(Code)(Java Doc)
abstract void accept0(ASTVisitor visitor)(Code)(Java Doc)
final void acceptChild(ASTVisitor visitor, ASTNode child)(Code)(Java Doc)
final void acceptChildren(ASTVisitor visitor, ASTNode.NodeList children)(Code)(Java Doc)
static void addProperty(StructuralPropertyDescriptor property, List propertyList)(Code)(Java Doc)
void appendDebugString(StringBuffer buffer)(Code)(Java Doc)
final void appendPrintString(StringBuffer buffer)(Code)(Java Doc)
final void checkModifiable()(Code)(Java Doc)
static void checkNewChild(ASTNode node, ASTNode newChild, boolean cycleCheck, Class nodeType)(Code)(Java Doc)
final ASTNode clone(AST target)(Code)(Java Doc)
abstract ASTNode clone0(AST target)(Code)(Java Doc)
public static ASTNode copySubtree(AST target, ASTNode node)(Code)(Java Doc)
public static List copySubtrees(AST target, List nodes)(Code)(Java Doc)
static void createPropertyList(Class nodeClass, List propertyList)(Code)(Java Doc)
final public void delete()(Code)(Java Doc)
final public boolean equals(Object obj)(Code)(Java Doc)
final public AST getAST()(Code)(Java Doc)
final public int getFlags()(Code)(Java Doc)
final public int getLength()(Code)(Java Doc)
final public StructuralPropertyDescriptor getLocationInParent()(Code)(Java Doc)
final public int getNodeType()(Code)(Java Doc)
abstract int getNodeType0()(Code)(Java Doc)
final public ASTNode getParent()(Code)(Java Doc)
final public Object getProperty(String propertyName)(Code)(Java Doc)
final public ASTNode getRoot()(Code)(Java Doc)
final public int getStartPosition()(Code)(Java Doc)
final public Object getStructuralProperty(StructuralPropertyDescriptor property)(Code)(Java Doc)
final public int hashCode()(Code)(Java Doc)
List internalGetChildListProperty(ChildListPropertyDescriptor property)(Code)(Java Doc)
boolean internalGetSetBooleanProperty(SimplePropertyDescriptor property, boolean get, boolean value)(Code)(Java Doc)
ASTNode internalGetSetChildProperty(ChildPropertyDescriptor property, boolean get, ASTNode child)(Code)(Java Doc)
int internalGetSetIntProperty(SimplePropertyDescriptor property, boolean get, int value)(Code)(Java Doc)
Object internalGetSetObjectProperty(SimplePropertyDescriptor property, boolean get, Object value)(Code)(Java Doc)
abstract List internalStructuralPropertiesForType(int apiLevel)(Code)(Java Doc)
abstract int memSize()(Code)(Java Doc)
public static Class nodeClassForType(int nodeType)(Code)(Java Doc)
final void postLazyInit(ASTNode newChild, ChildPropertyDescriptor property)(Code)(Java Doc)
final void postReplaceChild(ASTNode oldChild, ASTNode newChild, ChildPropertyDescriptor property)(Code)(Java Doc)
final void postValueChange(SimplePropertyDescriptor property)(Code)(Java Doc)
final void preLazyInit()(Code)(Java Doc)
final void preReplaceChild(ASTNode oldChild, ASTNode newChild, ChildPropertyDescriptor property)(Code)(Java Doc)
final void preValueChange(SimplePropertyDescriptor property)(Code)(Java Doc)
final public Map properties()(Code)(Java Doc)
static List reapPropertyList(List propertyList)(Code)(Java Doc)
final public void setFlags(int flags)(Code)(Java Doc)
final void setParent(ASTNode parent, StructuralPropertyDescriptor property)(Code)(Java Doc)
final public void setProperty(String propertyName, Object data)(Code)(Java Doc)
final public void setSourceRange(int startPosition, int length)(Code)(Java Doc)
final public void setStructuralProperty(StructuralPropertyDescriptor property, Object value)(Code)(Java Doc)
final String standardToString()(Code)(Java Doc)
static int stringSize(String string)(Code)(Java Doc)
final public List structuralPropertiesForType()(Code)(Java Doc)
final public int subtreeBytes()(Code)(Java Doc)
final public boolean subtreeMatch(ASTMatcher matcher, Object other)(Code)(Java Doc)
abstract boolean subtreeMatch0(ASTMatcher matcher, Object other)(Code)(Java Doc)
final void supportedOnlyIn2()(Code)(Java Doc)
final public String toString()(Code)(Java Doc)
abstract int treeSize()(Code)(Java Doc)
final void unsupportedIn2()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

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