Java Doc for Symbol.java in  » Scripting » Kawa » gnu » mapping » 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 » Kawa » gnu.mapping 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   gnu.mapping.Symbol

All known Subclasses:   gnu.xml.XName,  gnu.expr.Keyword,
Symbol
public class Symbol implements EnvironmentKey,Comparable,Externalizable(Code)
A Symbol is a name, usually in a specific Namespace. A Symbol is stateless: Comon Lisp-style "value", "function" and "property list" bindings are not part of the Symbol itself, but looked up in the current Environment. A Symbol may be viewed as an EnvironmentKey with a null property component.


Field Summary
final public static  SymbolFUNCTION
     Conventional value used as a property key for function bindings.
final public static  SymbolPLIST
     Conventional value used as a Symbol name to access an Object's property list.
protected  Stringname
    
 Namespacenamespace
    

Constructor Summary
public  Symbol()
    
public  Symbol(Namespace ns, String name)
     Create new Symbol in a given namespace.

Method Summary
public  intcompareTo(Object o)
    
public static  booleanequals(Symbol sym1, Symbol sym2)
    
final public  booleanequals(Object o)
     Just tests for identity. Otherwise hashTables that have Symbols as keys will break.
final public  ObjectgetKeyProperty()
    
final public  SymbolgetKeySymbol()
    
final public  StringgetLocalName()
     Synonym for getName - the "print name" of the symbol without Namespace. Useful when thinking of a Symbol as an XML QName.
final public  StringgetLocalPart()
    
final public  StringgetName()
    
final public  NamespacegetNamespace()
    
final public  StringgetNamespaceURI()
    
final public  StringgetPrefix()
    
final public  booleanhasEmptyNamespace()
    
public  inthashCode()
    
public static  Symbolmake(String uri, String name, String prefix)
     Find or create a symbol in a specificed namespace.
public static  Symbolmake(Object namespace, String name)
     Find or create a symbol in a specificed namespace.
public static  SymbolmakeUninterned(String name)
    
public static  SymbolmakeWithUnknownNamespace(String local, String prefix)
     Make a placeholder symbol with a known prefix and unknown namespace-uri. This is convenient for processing definition commands like "prefix:name=value" - such as on the Kawa command-line - where we don't yet know the namespace-uri.
public  booleanmatches(EnvironmentKey key)
    
public  booleanmatches(Symbol symbol, Object property)
    
public static  Symbolparse(String symbol)
    
public  voidreadExternal(ObjectInput in)
    
public  ObjectreadResolve()
    
final public  voidsetNamespace(Namespace ns)
    
public  StringtoString()
    
public  voidwriteExternal(ObjectOutput out)
    

Field Detail
FUNCTION
final public static Symbol FUNCTION(Code)
Conventional value used as a property key for function bindings.



PLIST
final public static Symbol PLIST(Code)
Conventional value used as a Symbol name to access an Object's property list. A property list is a list with a even number of Pairs, containing alternating keys and values. They are used in Common Lisp and Emacs Lisp. Kawa (following XEmacs) allows arbitrary objects to have property lists, thus the PLIST as used as the name and the object as the property. (In the future we'll do somethingg clever so that get(SYMBOL, KEY) as the same as getf(get(PLIST, SYMBOL), KEY) - but much faster.)



name
protected String name(Code)



namespace
Namespace namespace(Code)




Constructor Detail
Symbol
public Symbol()(Code)



Symbol
public Symbol(Namespace ns, String name)(Code)
Create new Symbol in a given namespace. Does not enter the result in the namespace's symbol table.
Parameters:
  name - an interned String




Method Detail
compareTo
public int compareTo(Object o)(Code)



equals
public static boolean equals(Symbol sym1, Symbol sym2)(Code)



equals
final public boolean equals(Object o)(Code)
Just tests for identity. Otherwise hashTables that have Symbols as keys will break.



getKeyProperty
final public Object getKeyProperty()(Code)



getKeySymbol
final public Symbol getKeySymbol()(Code)



getLocalName
final public String getLocalName()(Code)
Synonym for getName - the "print name" of the symbol without Namespace. Useful when thinking of a Symbol as an XML QName.



getLocalPart
final public String getLocalPart()(Code)



getName
final public String getName()(Code)



getNamespace
final public Namespace getNamespace()(Code)



getNamespaceURI
final public String getNamespaceURI()(Code)



getPrefix
final public String getPrefix()(Code)



hasEmptyNamespace
final public boolean hasEmptyNamespace()(Code)



hashCode
public int hashCode()(Code)



make
public static Symbol make(String uri, String name, String prefix)(Code)
Find or create a symbol in a specificed namespace.
Parameters:
  uri - a namespace uri.
Parameters:
  name - The "local name" or "print name" of the desired symbol.
Parameters:
  prefix - namespace prefix, or ""



make
public static Symbol make(Object namespace, String name)(Code)
Find or create a symbol in a specificed namespace.
Parameters:
  namespace - can be an Namespace, or a namespace/environment name(resolved using Namespace.getInstance), or null (in which casean uninterned symbol is created).
Parameters:
  name - The "local name" or "print name" of the desired symbol.



makeUninterned
public static Symbol makeUninterned(String name)(Code)



makeWithUnknownNamespace
public static Symbol makeWithUnknownNamespace(String local, String prefix)(Code)
Make a placeholder symbol with a known prefix and unknown namespace-uri. This is convenient for processing definition commands like "prefix:name=value" - such as on the Kawa command-line - where we don't yet know the namespace-uri. Code that later looks for a value should look both under the true namespace-uri and less LOG.JA * using this method (or Namespace.makeUnknownNamespace ).



matches
public boolean matches(EnvironmentKey key)(Code)



matches
public boolean matches(Symbol symbol, Object property)(Code)



parse
public static Symbol parse(String symbol)(Code)



readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException(Code)



readResolve
public Object readResolve() throws ObjectStreamException(Code)



setNamespace
final public void setNamespace(Namespace ns)(Code)



toString
public String toString()(Code)



writeExternal
public void writeExternal(ObjectOutput out) throws IOException(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.