Java Doc for FieldEditor.java in  » Database-DBMS » db4o-6.4 » EDU » purdue » cs » bloat » editor » 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 » Database DBMS » db4o 6.4 » EDU.purdue.cs.bloat.editor 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   EDU.purdue.cs.bloat.editor.FieldEditor

FieldEditor
public class FieldEditor (Code)
FieldEditor provides a means to edit a field of a class. A FieldEditor is created from a ClassEditor and a reflect.FieldInfo. A FieldEditor knows its name, type (descriptor), and its constant value (if it has one).
See Also:   EDU.purdue.cs.bloat.reflect.FieldInfo
author:
   Nate Nystrom (author:
   href="mailto:nystrom@cs.purdue.edu">nystrom@cs.purdue.edu)



Constructor Summary
public  FieldEditor(ClassEditor editor, int modifiers, Type type, String name)
    
public  FieldEditor(ClassEditor editor, int modifiers, Class type, String name, Object constantValue)
    
public  FieldEditor(ClassEditor editor, int modifiers, Class type, String name)
    
public  FieldEditor(ClassEditor editor, int modifiers, Type type, String name, Object constantValue)
     Creates a new FieldEditor for editing a field in a given class with the given modifiers, type, name, and constant value.
public  FieldEditor(ClassEditor editor, FieldInfo fieldInfo)
     Constructor.

Method Summary
public  voidcommit()
     Commit changes to the field back to the ClassEditor.
public  ObjectconstantValue()
    
public  ClassEditordeclaringClass()
     Returns the ClassEditor used to edit the class in which this field resides.
public  voiddelete()
     Marks this field for deletion.
public  FieldInfofieldInfo()
     Returns the raw FieldInfo of the field being edited.
public  StringfullName()
    
public  booleanisDirty()
     Returns true if this field has been modified.
public  booleanisFinal()
    
public  booleanisPackage()
     Returns true, if the field has package level visibility.
public  booleanisPrivate()
    
public  booleanisProtected()
    
public  booleanisPublic()
    
public  booleanisStatic()
    
public  booleanisTransient()
    
public  booleanisVolatile()
    
public  MemberRefmemberRef()
    
public  Stringname()
     Returns the name of the field.
public  NameAndTypenameAndType()
     Returns a NameAndType of the field.
public  voidprint(PrintStream out)
     Print the field.
public  voidsetDirty(boolean isDirty)
     Sets the dirty flag of this method.
public  voidsetFinal(boolean flag)
    
public  voidsetPrivate(boolean flag)
    
public  voidsetProtected(boolean flag)
    
public  voidsetPublic(boolean flag)
    
public  voidsetStatic(boolean flag)
    
public  voidsetTransient(boolean flag)
    
public  voidsetVolatile(boolean flag)
    
public  StringtoString()
    
public  Typetype()
     Returns the type of the field.


Constructor Detail
FieldEditor
public FieldEditor(ClassEditor editor, int modifiers, Type type, String name)(Code)
Creates a new FieldEditor for editing a field in a given class with the given modifiers, type and name
throws:
  IllegalArgumentException - If a field with the desired name already exists in the class



FieldEditor
public FieldEditor(ClassEditor editor, int modifiers, Class type, String name, Object constantValue)(Code)



FieldEditor
public FieldEditor(ClassEditor editor, int modifiers, Class type, String name)(Code)



FieldEditor
public FieldEditor(ClassEditor editor, int modifiers, Type type, String name, Object constantValue)(Code)
Creates a new FieldEditor for editing a field in a given class with the given modifiers, type, name, and constant value.
Parameters:
  modifiers - Fields that have a constant value must be staticand final
throws:
  IllegalArgumentException - If a field with the desired name already exists in the classor if constantValue is non-null and neither aString, Integer,Long, Float, norDouble.



FieldEditor
public FieldEditor(ClassEditor editor, FieldInfo fieldInfo)(Code)
Constructor.
Parameters:
  editor - The class containing the field.
Parameters:
  fieldInfo - The field to edit.
See Also:   ClassEditor
See Also:   FieldInfo




Method Detail
commit
public void commit()(Code)
Commit changes to the field back to the ClassEditor. Note that the field is committed regardless of whether or not it is dirty.



constantValue
public Object constantValue()(Code)



declaringClass
public ClassEditor declaringClass()(Code)
Returns the ClassEditor used to edit the class in which this field resides.



delete
public void delete()(Code)
Marks this field for deletion. Once a field has been marked for deletion all attempts to change it will throw an IllegalStateException.



fieldInfo
public FieldInfo fieldInfo()(Code)
Returns the raw FieldInfo of the field being edited.



fullName
public String fullName()(Code)
Returns a String that contains the declaring class name and the name of the field



isDirty
public boolean isDirty()(Code)
Returns true if this field has been modified.



isFinal
public boolean isFinal()(Code)



isPackage
public boolean isPackage()(Code)
Returns true, if the field has package level visibility.



isPrivate
public boolean isPrivate()(Code)



isProtected
public boolean isProtected()(Code)



isPublic
public boolean isPublic()(Code)



isStatic
public boolean isStatic()(Code)



isTransient
public boolean isTransient()(Code)



isVolatile
public boolean isVolatile()(Code)



memberRef
public MemberRef memberRef()(Code)
Returns a MemberRef for the field



name
public String name()(Code)
Returns the name of the field.



nameAndType
public NameAndType nameAndType()(Code)
Returns a NameAndType of the field.



print
public void print(PrintStream out)(Code)
Print the field.
Parameters:
  out - Stream to which to print.



setDirty
public void setDirty(boolean isDirty)(Code)
Sets the dirty flag of this method. The dirty flag is true if the method has been modified.
throws:
  IllegalStateException - This field has been marked for deletion



setFinal
public void setFinal(boolean flag)(Code)

throws:
  IllegalStateException - This field has been marked for deletion



setPrivate
public void setPrivate(boolean flag)(Code)

throws:
  IllegalStateException - This field has been marked for deletion



setProtected
public void setProtected(boolean flag)(Code)

throws:
  IllegalStateException - This field has been marked for deletion



setPublic
public void setPublic(boolean flag)(Code)

throws:
  IllegalStateException - This field has been marked for deletion



setStatic
public void setStatic(boolean flag)(Code)

throws:
  IllegalStateException - This field has been marked for deletion



setTransient
public void setTransient(boolean flag)(Code)

throws:
  IllegalStateException - This field has been marked for deletion



setVolatile
public void setVolatile(boolean flag)(Code)

throws:
  IllegalStateException - This field has been marked for deletion



toString
public String toString()(Code)



type
public Type type()(Code)
Returns the type of the field.



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.