Java Doc for Name.java in  » 6.0-JDK-Modules-sun » javac-compiler » com » sun » tools » javac » util » 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 » 6.0 JDK Modules sun » javac compiler » com.sun.tools.javac.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.tools.javac.util.Name

Name
public class Name implements javax.lang.model.element.Name(Code)
An abstraction for internal compiler strings. For efficiency reasons, GJC uses hashed strings that are stored in a common large buffer.

Names represent unique hashable strings. Two names are equal if their indices are equal. Utf8 representation is used for storing names internally.

This is NOT part of any API supported by Sun Microsystems. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.


Inner Class :public static class Table

Field Summary
public  intindex
     The index where the bytes of this name are stored in the global name buffer `names'.
public  intlen
     The number of bytes in this name.
 Namenext
     The next name occupying the same hash bucket.
public  Tabletable
    


Method Summary
public  Nameappend(Name n)
     Return the concatenation of this name and name `n'.
public  Nameappend(char c, Name n)
     Return the concatenation of this name, the given ASCII character, and name `n'.
public  bytebyteAt(int i)
     Returns i'th byte of this name.
public  charcharAt(int index)
    
public  intcompareTo(Name other)
     An arbitrary but consistent complete order among all Names.
public static  Nameconcat(Table table, Name ns)
     Return the concatenation of all names in the array `ns'.
public  booleancontentEquals(CharSequence cs)
    
public  booleanendsWith(Name suffix)
    
public  booleanequals(Object other)
    
public static  NamefromChars(Table table, char[] cs, int start, int len)
     Create a name from the characters in cs[start..start+len-1].
public static  NamefromString(Table table, String s)
     Create a name from the characters in string s.
public static  NamefromString(Table table, CharSequence s)
     Create a name from the characters in char sequence s.
public static  NamefromUtf(Table table, byte cs, int start, int len)
     Create a name from the bytes in cs[start..start+len-1].
public static  NamefromUtf(Table table, byte cs)
     Create a name from the bytes in array cs.
public  voidgetBytes(byte cs, int start)
     Copy all bytes of this name to buffer cs, starting at start.
public  inthashCode()
     Return the hash value of this name.
public  intindexOf(byte b)
     Returns first occurrence of byte b in this name, len if not found.
public  booleanisEmpty()
    
public  intlastIndexOf(byte b)
     Returns last occurrence of byte b in this name, -1 if not found.
public  intlength()
     Returns the length of this name.
public  booleanless(Name that)
     Compare this name to other name, yielding -1 if smaller, 0 if equal, 1 if greater.
public  Namereplace(byte from, byte to)
     Replace all `from' bytes in this name with `to' bytes.
public  booleanstartsWith(Name prefix)
    
public  NamesubName(int start, int end)
     Returns the sub-name starting at position start, up to and excluding position end.
public  CharSequencesubSequence(int start, int end)
    
public  StringtoString()
     Return the string representation of this name.
public  byte[]toUtf()
     Return the Utf8 representation of this name.

Field Detail
index
public int index(Code)
The index where the bytes of this name are stored in the global name buffer `names'.



len
public int len(Code)
The number of bytes in this name.



next
Name next(Code)
The next name occupying the same hash bucket.



table
public Table table(Code)
The table structure where the name is stored





Method Detail
append
public Name append(Name n)(Code)
Return the concatenation of this name and name `n'.



append
public Name append(char c, Name n)(Code)
Return the concatenation of this name, the given ASCII character, and name `n'.



byteAt
public byte byteAt(int i)(Code)
Returns i'th byte of this name.



charAt
public char charAt(int index)(Code)



compareTo
public int compareTo(Name other)(Code)
An arbitrary but consistent complete order among all Names.



concat
public static Name concat(Table table, Name ns)(Code)
Return the concatenation of all names in the array `ns'.



contentEquals
public boolean contentEquals(CharSequence cs)(Code)



endsWith
public boolean endsWith(Name suffix)(Code)
Does this name end with suffix?



equals
public boolean equals(Object other)(Code)
Is this name equal to other?



fromChars
public static Name fromChars(Table table, char[] cs, int start, int len)(Code)
Create a name from the characters in cs[start..start+len-1].



fromString
public static Name fromString(Table table, String s)(Code)
Create a name from the characters in string s.



fromString
public static Name fromString(Table table, CharSequence s)(Code)
Create a name from the characters in char sequence s.



fromUtf
public static Name fromUtf(Table table, byte cs, int start, int len)(Code)
Create a name from the bytes in cs[start..start+len-1]. Assume that bytes are in utf8 format.



fromUtf
public static Name fromUtf(Table table, byte cs)(Code)
Create a name from the bytes in array cs. Assume that bytes are in utf8 format.



getBytes
public void getBytes(byte cs, int start)(Code)
Copy all bytes of this name to buffer cs, starting at start.



hashCode
public int hashCode()(Code)
Return the hash value of this name.



indexOf
public int indexOf(byte b)(Code)
Returns first occurrence of byte b in this name, len if not found.



isEmpty
public boolean isEmpty()(Code)



lastIndexOf
public int lastIndexOf(byte b)(Code)
Returns last occurrence of byte b in this name, -1 if not found.



length
public int length()(Code)
Returns the length of this name.



less
public boolean less(Name that)(Code)
Compare this name to other name, yielding -1 if smaller, 0 if equal, 1 if greater.



replace
public Name replace(byte from, byte to)(Code)
Replace all `from' bytes in this name with `to' bytes.



startsWith
public boolean startsWith(Name prefix)(Code)
Does this name start with prefix?



subName
public Name subName(int start, int end)(Code)
Returns the sub-name starting at position start, up to and excluding position end.



subSequence
public CharSequence subSequence(int start, int end)(Code)



toString
public String toString()(Code)
Return the string representation of this name.



toUtf
public byte[] toUtf()(Code)
Return the Utf8 representation of this name.



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.