Java Doc for Type.java in  » Net » Terracotta » com » tc » asm » 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 » Net » Terracotta » com.tc.asm 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.tc.asm.Type

Type
public class Type (Code)
A Java type. This class can be used to make it easier to manipulate type and method descriptors.
author:
   Eric Bruneton
author:
   Chris Nokleberg


Field Summary
final public static  intARRAY
     The sort of array reference types.
final public static  intBOOLEAN
     The sort of the boolean type.
final public static  TypeBOOLEAN_TYPE
     The boolean type.
final public static  intBYTE
     The sort of the byte type.
final public static  TypeBYTE_TYPE
     The byte type.
final public static  intCHAR
     The sort of the char type.
final public static  TypeCHAR_TYPE
     The char type.
final public static  intDOUBLE
     The sort of the double type.
final public static  TypeDOUBLE_TYPE
     The double type.
final public static  intFLOAT
     The sort of the float type.
final public static  TypeFLOAT_TYPE
     The float type.
final public static  intINT
     The sort of the int type.
final public static  TypeINT_TYPE
     The int type.
final public static  intLONG
     The sort of the long type.
final public static  TypeLONG_TYPE
     The long type.
final public static  intOBJECT
     The sort of object reference type.
final public static  intSHORT
     The sort of the short type.
final public static  TypeSHORT_TYPE
     The short type.
final public static  intVOID
     The sort of the void type.
final public static  TypeVOID_TYPE
     The void type.


Method Summary
public  booleanequals(Object o)
     Tests if the given object is equal to this type.
Parameters:
  o - the object to be compared to this type.
public static  Type[]getArgumentTypes(String methodDescriptor)
     Returns the Java types corresponding to the argument types of the given method descriptor.
Parameters:
  methodDescriptor - a method descriptor.
public static  Type[]getArgumentTypes(Method method)
     Returns the Java types corresponding to the argument types of the given method.
Parameters:
  method - a method.
public  StringgetClassName()
     Returns the name of the class corresponding to this type.
public static  StringgetConstructorDescriptor(Constructor c)
     Returns the descriptor corresponding to the given constructor.
Parameters:
  c - a Constructor Constructor object.
public  StringgetDescriptor()
     Returns the descriptor corresponding to this Java type.
public static  StringgetDescriptor(Class c)
     Returns the descriptor corresponding to the given Java type.
Parameters:
  c - an object class, a primitive class or an array class.
public  intgetDimensions()
     Returns the number of dimensions of this array type.
public  TypegetElementType()
     Returns the type of the elements of this array type.
public  StringgetInternalName()
     Returns the internal name of the class corresponding to this object type. The internal name of a class is its fully qualified name, where '.' are replaced by '/'.
public static  StringgetInternalName(Class c)
     Returns the internal name of the given class.
public static  StringgetMethodDescriptor(Type returnType, Type[] argumentTypes)
     Returns the descriptor corresponding to the given argument and return types.
Parameters:
  returnType - the return type of the method.
Parameters:
  argumentTypes - the argument types of the method.
public static  StringgetMethodDescriptor(Method m)
     Returns the descriptor corresponding to the given method.
Parameters:
  m - a Method Method object.
public static  TypegetObjectType(String name)
     Returns the Type.OBJECT type for the given internal class name. This is a shortcut method for Type.getType("L"+name+";"). Note that opposed to Type.getType(String) , this method takes internal class names and not class descriptor.
Parameters:
  name - an internal class name.
public  intgetOpcode(int opcode)
     Returns a JVM instruction opcode adapted to this Java type.
Parameters:
  opcode - a JVM instruction opcode.
public static  TypegetReturnType(String methodDescriptor)
     Returns the Java type corresponding to the return type of the given method descriptor.
Parameters:
  methodDescriptor - a method descriptor.
public static  TypegetReturnType(Method method)
     Returns the Java type corresponding to the return type of the given method.
Parameters:
  method - a method.
public  intgetSize()
     Returns the size of values of this type.
public  intgetSort()
     Returns the sort of this Java type.
public static  TypegetType(String typeDescriptor)
     Returns the Java type corresponding to the given type descriptor.
Parameters:
  typeDescriptor - a type descriptor.
public static  TypegetType(Class c)
     Returns the Java type corresponding to the given class.
Parameters:
  c - a class.
public  inthashCode()
     Returns a hash code value for this type.
public  StringtoString()
     Returns a string representation of this type.

Field Detail
ARRAY
final public static int ARRAY(Code)
The sort of array reference types. See Type.getSort getSort .



BOOLEAN
final public static int BOOLEAN(Code)
The sort of the boolean type. See Type.getSort getSort .



BOOLEAN_TYPE
final public static Type BOOLEAN_TYPE(Code)
The boolean type.



BYTE
final public static int BYTE(Code)
The sort of the byte type. See Type.getSort getSort .



BYTE_TYPE
final public static Type BYTE_TYPE(Code)
The byte type.



CHAR
final public static int CHAR(Code)
The sort of the char type. See Type.getSort getSort .



CHAR_TYPE
final public static Type CHAR_TYPE(Code)
The char type.



DOUBLE
final public static int DOUBLE(Code)
The sort of the double type. See Type.getSort getSort .



DOUBLE_TYPE
final public static Type DOUBLE_TYPE(Code)
The double type.



FLOAT
final public static int FLOAT(Code)
The sort of the float type. See Type.getSort getSort .



FLOAT_TYPE
final public static Type FLOAT_TYPE(Code)
The float type.



INT
final public static int INT(Code)
The sort of the int type. See Type.getSort getSort .



INT_TYPE
final public static Type INT_TYPE(Code)
The int type.



LONG
final public static int LONG(Code)
The sort of the long type. See Type.getSort getSort .



LONG_TYPE
final public static Type LONG_TYPE(Code)
The long type.



OBJECT
final public static int OBJECT(Code)
The sort of object reference type. See Type.getSort getSort .



SHORT
final public static int SHORT(Code)
The sort of the short type. See Type.getSort getSort .



SHORT_TYPE
final public static Type SHORT_TYPE(Code)
The short type.



VOID
final public static int VOID(Code)
The sort of the void type. See Type.getSort getSort .



VOID_TYPE
final public static Type VOID_TYPE(Code)
The void type.





Method Detail
equals
public boolean equals(Object o)(Code)
Tests if the given object is equal to this type.
Parameters:
  o - the object to be compared to this type. true if the given object is equal to this type.



getArgumentTypes
public static Type[] getArgumentTypes(String methodDescriptor)(Code)
Returns the Java types corresponding to the argument types of the given method descriptor.
Parameters:
  methodDescriptor - a method descriptor. the Java types corresponding to the argument types of the givenmethod descriptor.



getArgumentTypes
public static Type[] getArgumentTypes(Method method)(Code)
Returns the Java types corresponding to the argument types of the given method.
Parameters:
  method - a method. the Java types corresponding to the argument types of the givenmethod.



getClassName
public String getClassName()(Code)
Returns the name of the class corresponding to this type. the fully qualified name of the class corresponding to this type.



getConstructorDescriptor
public static String getConstructorDescriptor(Constructor c)(Code)
Returns the descriptor corresponding to the given constructor.
Parameters:
  c - a Constructor Constructor object. the descriptor of the given constructor.



getDescriptor
public String getDescriptor()(Code)
Returns the descriptor corresponding to this Java type. the descriptor corresponding to this Java type.



getDescriptor
public static String getDescriptor(Class c)(Code)
Returns the descriptor corresponding to the given Java type.
Parameters:
  c - an object class, a primitive class or an array class. the descriptor corresponding to the given class.



getDimensions
public int getDimensions()(Code)
Returns the number of dimensions of this array type. This method should only be used for an array type. the number of dimensions of this array type.



getElementType
public Type getElementType()(Code)
Returns the type of the elements of this array type. This method should only be used for an array type. Returns the type of the elements of this array type.



getInternalName
public String getInternalName()(Code)
Returns the internal name of the class corresponding to this object type. The internal name of a class is its fully qualified name, where '.' are replaced by '/'. This method should only be used for an object type. the internal name of the class corresponding to this object type.



getInternalName
public static String getInternalName(Class c)(Code)
Returns the internal name of the given class. The internal name of a class is its fully qualified name, where '.' are replaced by '/'.
Parameters:
  c - an object class. the internal name of the given class.



getMethodDescriptor
public static String getMethodDescriptor(Type returnType, Type[] argumentTypes)(Code)
Returns the descriptor corresponding to the given argument and return types.
Parameters:
  returnType - the return type of the method.
Parameters:
  argumentTypes - the argument types of the method. the descriptor corresponding to the given argument and returntypes.



getMethodDescriptor
public static String getMethodDescriptor(Method m)(Code)
Returns the descriptor corresponding to the given method.
Parameters:
  m - a Method Method object. the descriptor of the given method.



getObjectType
public static Type getObjectType(String name)(Code)
Returns the Type.OBJECT type for the given internal class name. This is a shortcut method for Type.getType("L"+name+";"). Note that opposed to Type.getType(String) , this method takes internal class names and not class descriptor.
Parameters:
  name - an internal class name. the the Type.OBJECT type for the given class name.



getOpcode
public int getOpcode(int opcode)(Code)
Returns a JVM instruction opcode adapted to this Java type.
Parameters:
  opcode - a JVM instruction opcode. This opcode must be one of ILOAD,ISTORE, IALOAD, IASTORE, IADD, ISUB, IMUL, IDIV, IREM, INEG, ISHL,ISHR, IUSHR, IAND, IOR, IXOR and IRETURN. an opcode that is similar to the given opcode, but adapted tothis Java type. For example, if this type is float andopcode is IRETURN, this method returns FRETURN.



getReturnType
public static Type getReturnType(String methodDescriptor)(Code)
Returns the Java type corresponding to the return type of the given method descriptor.
Parameters:
  methodDescriptor - a method descriptor. the Java type corresponding to the return type of the givenmethod descriptor.



getReturnType
public static Type getReturnType(Method method)(Code)
Returns the Java type corresponding to the return type of the given method.
Parameters:
  method - a method. the Java type corresponding to the return type of the givenmethod.



getSize
public int getSize()(Code)
Returns the size of values of this type. the size of values of this type, i.e., 2 for long anddouble, and 1 otherwise.



getSort
public int getSort()(Code)
Returns the sort of this Java type. Type.VOID VOID, Type.BOOLEAN BOOLEAN,Type.CHAR CHAR, Type.BYTE BYTE, Type.SHORT SHORT,Type.INT INT, Type.FLOAT FLOAT, Type.LONG LONG,Type.DOUBLE DOUBLE, Type.ARRAY ARRAY orType.OBJECT OBJECT.



getType
public static Type getType(String typeDescriptor)(Code)
Returns the Java type corresponding to the given type descriptor.
Parameters:
  typeDescriptor - a type descriptor. the Java type corresponding to the given type descriptor.



getType
public static Type getType(Class c)(Code)
Returns the Java type corresponding to the given class.
Parameters:
  c - a class. the Java type corresponding to the given class.



hashCode
public int hashCode()(Code)
Returns a hash code value for this type. a hash code value for this type.



toString
public String toString()(Code)
Returns a string representation of this type. the descriptor of this type.



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.