Java Doc for Descriptor.java in  » Scripting » jacl » org » codehaus » janino » 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 » Scripting » jacl » org.codehaus.janino 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.codehaus.janino.Descriptor

Descriptor
public class Descriptor (Code)
Helper class that defines useful methods for handling "field descriptors" (JVMS 4.3.2) and "method descriptors" (JVMS 4.3.3).

Typical descriptors are:

  • I Integer
  • [I Array of integer
  • Lpkg1/pkg2/Cls; Class
  • Lpkg1/pkg2/Outer$Inner; Member class


Field Summary
final public static  StringBOOLEAN
    
final public static  StringBYTE
    
final public static  StringCHAR
    
final public static  StringCLASS
    
final public static  StringCLONEABLE
    
final public static  StringDOUBLE
    
final public static  StringERROR
    
final public static  StringFLOAT
    
final public static  StringINT
    
final public static  StringLONG
    
final public static  StringOBJECT
    
final public static  StringRUNTIME_EXCEPTION
    
final public static  StringSERIALIZABLE
    
final public static  StringSHORT
    
final public static  StringSTRING
    
final public static  StringTHROWABLE
    
final public static  StringVOID
    


Method Summary
public static  booleanareInSamePackage(String d1, String d2)
     Check whether two reference types are declared in the same package.
public static  StringfromClassName(String className)
     Convert a class name as defined by "Class.getName()" into a descriptor.
public static  StringfromInternalForm(String internalForm)
     Convert a class name in the "internal form" as described in JVMS 4.2 into a descriptor.
public static  StringgetComponentDescriptor(String d)
    
public static  StringgetPackageName(String d)
     Returns the package name of a class or interface reference descriptor, or null if the class or interface is declared in the default package.
public static  booleanhasSize1(String d)
    
public static  booleanhasSize2(String d)
    
public static  booleanisArrayReference(String d)
    
public static  booleanisClassOrInterfaceReference(String d)
    
public static  booleanisPrimitive(String d)
    
public static  booleanisPrimitiveNumeric(String d)
    
public static  booleanisReference(String d)
    
public static  shortsize(String d)
    
public static  StringtoClassName(String d)
     Convert a field descriptor into a class name as defined by Class.getName .
public static  StringtoInternalForm(String d)
     Convert a descriptor into the "internal form" as defined by JVMS 4.2.
public static  StringtoString(String d)
    

Field Detail
BOOLEAN
final public static String BOOLEAN(Code)



BYTE
final public static String BYTE(Code)



CHAR
final public static String CHAR(Code)



CLASS
final public static String CLASS(Code)



CLONEABLE
final public static String CLONEABLE(Code)



DOUBLE
final public static String DOUBLE(Code)



ERROR
final public static String ERROR(Code)



FLOAT
final public static String FLOAT(Code)



INT
final public static String INT(Code)



LONG
final public static String LONG(Code)



OBJECT
final public static String OBJECT(Code)



RUNTIME_EXCEPTION
final public static String RUNTIME_EXCEPTION(Code)



SERIALIZABLE
final public static String SERIALIZABLE(Code)



SHORT
final public static String SHORT(Code)



STRING
final public static String STRING(Code)



THROWABLE
final public static String THROWABLE(Code)



VOID
final public static String VOID(Code)





Method Detail
areInSamePackage
public static boolean areInSamePackage(String d1, String d2)(Code)
Check whether two reference types are declared in the same package.



fromClassName
public static String fromClassName(String className)(Code)
Convert a class name as defined by "Class.getName()" into a descriptor.



fromInternalForm
public static String fromInternalForm(String internalForm)(Code)
Convert a class name in the "internal form" as described in JVMS 4.2 into a descriptor.

Also implement the encoding of array types as described in JVMS 4.4.1.




getComponentDescriptor
public static String getComponentDescriptor(String d)(Code)



getPackageName
public static String getPackageName(String d)(Code)
Returns the package name of a class or interface reference descriptor, or null if the class or interface is declared in the default package.



hasSize1
public static boolean hasSize1(String d)(Code)



hasSize2
public static boolean hasSize2(String d)(Code)



isArrayReference
public static boolean isArrayReference(String d)(Code)



isClassOrInterfaceReference
public static boolean isClassOrInterfaceReference(String d)(Code)



isPrimitive
public static boolean isPrimitive(String d)(Code)



isPrimitiveNumeric
public static boolean isPrimitiveNumeric(String d)(Code)



isReference
public static boolean isReference(String d)(Code)



size
public static short size(String d)(Code)



toClassName
public static String toClassName(String d)(Code)
Convert a field descriptor into a class name as defined by Class.getName .



toInternalForm
public static String toInternalForm(String d)(Code)
Convert a descriptor into the "internal form" as defined by JVMS 4.2.



toString
public static String toString(String d)(Code)



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.