Java Doc for FieldDeclaration.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.BodyDeclaration
         org.eclipse.jdt.core.dom.FieldDeclaration

FieldDeclaration
public class FieldDeclaration extends BodyDeclaration (Code)
Field declaration node type.

This kind of node collects several variable declaration fragments (VariableDeclarationFragment) into a single body declaration (BodyDeclaration), all sharing the same modifiers and base type.

 FieldDeclaration:
 [Javadoc] { ExtendedModifier } Type VariableDeclarationFragment
 { , VariableDeclarationFragment } ;
 

When a Javadoc comment is present, the source range begins with the first character of the "/**" comment delimiter. When there is no Javadoc comment, the source range begins with the first character of the initial modifier or type. The source range extends through the last character of the final ";".


since:
   2.0


Field Summary
final public static  ChildListPropertyDescriptorFRAGMENTS_PROPERTY
     The "fragments" structural property of this node type).
final public static  ChildPropertyDescriptorJAVADOC_PROPERTY
     The "javadoc" 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
 FieldDeclaration(AST ast)
     Creates a new unparented field declaration statement 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 field declaration.
final  intgetNodeType0()
    
public  TypegetType()
     Returns the base type declared in this field declaration.

N.B.

final  ListinternalGetChildListProperty(ChildListPropertyDescriptor property)
    
final  ASTNodeinternalGetSetChildProperty(ChildPropertyDescriptor property, boolean get, ASTNode child)
    
final  intinternalGetSetIntProperty(SimplePropertyDescriptor property, boolean get, int value)
    
final  ChildPropertyDescriptorinternalJavadocProperty()
    
final  ChildListPropertyDescriptorinternalModifiers2Property()
    
final  SimplePropertyDescriptorinternalModifiersProperty()
    
final  ListinternalStructuralPropertiesForType(int apiLevel)
    
 intmemSize()
    
public static  ListpropertyDescriptors(int apiLevel)
     Returns a list of structural property descriptors for this node type.
public  voidsetType(Type type)
     Sets the base type declared in this field 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



JAVADOC_PROPERTY
final public static ChildPropertyDescriptor JAVADOC_PROPERTY(Code)
The "javadoc" 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
FieldDeclaration
FieldDeclaration(AST ast)(Code)
Creates a new unparented field declaration statement node owned by the given AST. By default, the field 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 field declaration. 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 statement (element type: VariableDeclarationFragment)



getNodeType0
final int getNodeType0()(Code)



getType
public Type getType()(Code)
Returns the base type declared in this field 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)



internalJavadocProperty
final ChildPropertyDescriptor internalJavadocProperty()(Code)



internalModifiers2Property
final ChildListPropertyDescriptor internalModifiers2Property()(Code)



internalModifiersProperty
final SimplePropertyDescriptor internalModifiersProperty()(Code)



internalStructuralPropertiesForType
final List internalStructuralPropertiesForType(int apiLevel)(Code)



memSize
int memSize()(Code)



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



setType
public void setType(Type type)(Code)
Sets the base type declared in this field 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)



Fields inherited from org.eclipse.jdt.core.dom.BodyDeclaration
ASTNode.NodeList modifiers(Code)(Java Doc)
Javadoc optionalDocComment(Code)(Java Doc)

Methods inherited from org.eclipse.jdt.core.dom.BodyDeclaration
public Javadoc getJavadoc()(Code)(Java Doc)
final public ChildPropertyDescriptor getJavadocProperty()(Code)(Java Doc)
public int getModifiers()(Code)(Java Doc)
final public ChildListPropertyDescriptor getModifiersProperty()(Code)(Java Doc)
abstract ChildPropertyDescriptor internalJavadocProperty()(Code)(Java Doc)
final static ChildPropertyDescriptor internalJavadocPropertyFactory(Class nodeClass)(Code)(Java Doc)
abstract ChildListPropertyDescriptor internalModifiers2Property()(Code)(Java Doc)
final static ChildListPropertyDescriptor internalModifiers2PropertyFactory(Class nodeClass)(Code)(Java Doc)
abstract SimplePropertyDescriptor internalModifiersProperty()(Code)(Java Doc)
final static SimplePropertyDescriptor internalModifiersPropertyFactory(Class nodeClass)(Code)(Java Doc)
final void internalSetModifiers(int pmodifiers)(Code)(Java Doc)
int memSize()(Code)(Java Doc)
public List modifiers()(Code)(Java Doc)
public void setJavadoc(Javadoc docComment)(Code)(Java Doc)
public void setModifiers(int modifiers)(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.