Java Doc for Modifiers.java in  » Byte-Code » Cojen » org » cojen » classfile » 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 » Byte Code » Cojen » org.cojen.classfile 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.cojen.classfile.Modifiers

Modifiers
public class Modifiers (Code)
The Modifiers class is an immutable wrapper around a modifier bitmask. The methods provided to manipulate the bitmask ensure that it is always legal. i.e. setting it public automatically clears it from being private or protected.
author:
   Brian S O'Neill


Field Summary
final public static  ModifiersNONE
    
final public static  ModifiersPRIVATE
    
final public static  ModifiersPROTECTED
    
final public static  ModifiersPUBLIC
    
final public static  ModifiersPUBLIC_ABSTRACT
    
final public static  ModifiersPUBLIC_STATIC
    


Method Summary
public  booleanequals(Object obj)
    
final public  intgetBitmask()
     Returns the bitmask.
public static  ModifiersgetInstance(int bitmask)
     Returns a Modifiers object with the given bitmask.
public  inthashCode()
    
public  booleanisAbstract()
    
public  booleanisBridge()
    
public  booleanisEnum()
    
public  booleanisFinal()
    
public  booleanisInterface()
    
public  booleanisNative()
    
public  booleanisPrivate()
    
public  booleanisProtected()
    
public  booleanisPublic()
    
public  booleanisStatic()
    
public  booleanisStrict()
    
public  booleanisSynchronized()
    
public  booleanisTransient()
    
public  booleanisVarArgs()
    
public  booleanisVolatile()
    
public  ModifierstoAbstract(boolean b)
     When set abstract, the bitmask is cleared from being final, volatile, transient, native, synchronized, and strictfp.
public  ModifierstoBridge(boolean b)
     Used to identify if a method is a bridge method.
public  ModifierstoEnum(boolean b)
     Used to identify if a field is an enum constant.
public  ModifierstoFinal(boolean b)
     When set final, the bitmask is cleared from being an interface or abstract.
public  ModifierstoInterface(boolean b)
     When set as an interface, non-interface settings are cleared and the bitmask is set abstract.
public  ModifierstoNative(boolean b)
     When set native, non-native-method settings are cleared.
public  ModifierstoPrivate(boolean b)
     When set private, the bitmask is cleared from being public or protected.
public  ModifierstoProtected(boolean b)
     When set protected, the bitmask is cleared from being public or private.
public  ModifierstoPublic(boolean b)
     When set public, the bitmask is cleared from being private or protected.
public  ModifierstoStatic(boolean b)
    
public  ModifierstoStrict(boolean b)
    
public  StringtoString()
     Returns the string value generated by the Modifier class.
public  ModifierstoSynchronized(boolean b)
     When set synchronized, non-method settings are cleared.
public  ModifierstoTransient(boolean b)
     When set transient, non-field settings are cleared.
public  ModifierstoVarArgs(boolean b)
     Used to identify if a method accepts a variable amount of arguments.
public  ModifierstoVolatile(boolean b)
     When set volatile, non-field settings are cleared.

Field Detail
NONE
final public static Modifiers NONE(Code)



PRIVATE
final public static Modifiers PRIVATE(Code)



PROTECTED
final public static Modifiers PROTECTED(Code)



PUBLIC
final public static Modifiers PUBLIC(Code)



PUBLIC_ABSTRACT
final public static Modifiers PUBLIC_ABSTRACT(Code)



PUBLIC_STATIC
final public static Modifiers PUBLIC_STATIC(Code)





Method Detail
equals
public boolean equals(Object obj)(Code)



getBitmask
final public int getBitmask()(Code)
Returns the bitmask.



getInstance
public static Modifiers getInstance(int bitmask)(Code)
Returns a Modifiers object with the given bitmask.



hashCode
public int hashCode()(Code)



isAbstract
public boolean isAbstract()(Code)



isBridge
public boolean isBridge()(Code)



isEnum
public boolean isEnum()(Code)



isFinal
public boolean isFinal()(Code)



isInterface
public boolean isInterface()(Code)



isNative
public boolean isNative()(Code)



isPrivate
public boolean isPrivate()(Code)



isProtected
public boolean isProtected()(Code)



isPublic
public boolean isPublic()(Code)



isStatic
public boolean isStatic()(Code)



isStrict
public boolean isStrict()(Code)



isSynchronized
public boolean isSynchronized()(Code)



isTransient
public boolean isTransient()(Code)



isVarArgs
public boolean isVarArgs()(Code)



isVolatile
public boolean isVolatile()(Code)



toAbstract
public Modifiers toAbstract(boolean b)(Code)
When set abstract, the bitmask is cleared from being final, volatile, transient, native, synchronized, and strictfp. When cleared from being abstract, the bitmask is also cleared from being an interface.
Parameters:
  b - true to set abstract, false otherwise



toBridge
public Modifiers toBridge(boolean b)(Code)
Used to identify if a method is a bridge method.
Parameters:
  b - true to set bridge, false otherwise



toEnum
public Modifiers toEnum(boolean b)(Code)
Used to identify if a field is an enum constant.
Parameters:
  b - true to set enum, false otherwise



toFinal
public Modifiers toFinal(boolean b)(Code)
When set final, the bitmask is cleared from being an interface or abstract.
Parameters:
  b - true to set final, false otherwise



toInterface
public Modifiers toInterface(boolean b)(Code)
When set as an interface, non-interface settings are cleared and the bitmask is set abstract.
Parameters:
  b - true to set interface, false otherwise



toNative
public Modifiers toNative(boolean b)(Code)
When set native, non-native-method settings are cleared.
Parameters:
  b - true to set native, false otherwise



toPrivate
public Modifiers toPrivate(boolean b)(Code)
When set private, the bitmask is cleared from being public or protected.
Parameters:
  b - true to set private, false otherwise



toProtected
public Modifiers toProtected(boolean b)(Code)
When set protected, the bitmask is cleared from being public or private.
Parameters:
  b - true to set protected, false otherwise



toPublic
public Modifiers toPublic(boolean b)(Code)
When set public, the bitmask is cleared from being private or protected.
Parameters:
  b - true to set public, false otherwise



toStatic
public Modifiers toStatic(boolean b)(Code)

Parameters:
  b - true to set static, false otherwise



toStrict
public Modifiers toStrict(boolean b)(Code)

Parameters:
  b - true to set strictfp, false otherwise



toString
public String toString()(Code)
Returns the string value generated by the Modifier class.
See Also:   java.lang.reflect.Modifier.toString



toSynchronized
public Modifiers toSynchronized(boolean b)(Code)
When set synchronized, non-method settings are cleared.
Parameters:
  b - true to set synchronized, false otherwise



toTransient
public Modifiers toTransient(boolean b)(Code)
When set transient, non-field settings are cleared.
Parameters:
  b - true to set transient, false otherwise



toVarArgs
public Modifiers toVarArgs(boolean b)(Code)
Used to identify if a method accepts a variable amount of arguments.
Parameters:
  b - true to set varargs, false otherwise



toVolatile
public Modifiers toVolatile(boolean b)(Code)
When set volatile, non-field settings are cleared.
Parameters:
  b - true to set volatile, false otherwise



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.