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


java.lang.Object
   com.sun.tools.javac.code.Symbol

Symbol
abstract public class Symbol implements Element(Code)
Root class for Java symbols. It contains subclasses for specific sorts of symbols, such as variables, methods and operators, types, packages. Each subclass is represented as a static inner class inside Symbol.

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 DelegatedSymbol extends Symbol
Inner Class :public static class TypeSymbol extends Symbol implements TypeParameterElement
Inner Class :public static class PackageSymbol extends TypeSymbol implements PackageElement
Inner Class :public static class ClassSymbol extends TypeSymbol implements TypeElement
Inner Class :public static class VarSymbol extends Symbol implements VariableElement
Inner Class :public static class MethodSymbol extends Symbol implements ExecutableElement
Inner Class :public static class OperatorSymbol extends MethodSymbol
Inner Class :public static interface Completer
Inner Class :public static class CompletionFailure extends RuntimeException

Field Summary
public  List<Attribute.Compound>attributes_field
     The attributes of this symbol.
public  Completercompleter
     The completer of this symbol.
public  Typeerasure_field
     A cache for the type erasure of this symbol.
public  longflags_field
     The flags of this symbol.
public  intkind
     The kind of this symbol.
public  Namename
     The name of this symbol in Utf8 representation.
public  Symbolowner
     The owner of this symbol.
public  Typetype
     The type of this symbol.

Constructor Summary
public  Symbol(int kind, long flags, Name name, Type type, Symbol owner)
     Construct a symbol with given kind, flags, name, type and owner.

Method Summary
public  SymbolasMemberOf(Type site, Types types)
     The (variable or method) symbol seen as a member of given class type`site' (this might change the symbol's type).
public  TypeasType()
    
public  Attribute.Compoundattribute(Symbol anno)
     Fetch a particular annotation from a symbol.
public  Symbolclone(Symbol newOwner)
     Clone this symbol with new owner.
public  voidcomplete()
     Complete the elaboration of this symbol's definition.
public  ClassSymbolenclClass()
     The closest enclosing class of this symbol's declaration.
public  Typeerasure(Types types)
     The symbol's erased type.
public  booleanexists()
     True if the symbol represents an entity that exists.
public  TypeexternalType(Types types)
     The external type of a symbol.
public  longflags()
     An accessor method for the flags of this symbol.
public  NameflatName()
     The fully qualified name of this symbol after converting to flat representation.
public  AgetAnnotation(Class<A> annoType)
    
public  List<Attribute.Compound>getAnnotationMirrors()
     An accessor method for the attributes of this symbol.
public  java.util.List<Symbol>getEnclosedElements()
    
public  SymbolgetEnclosingElement()
    
public  ElementKindgetKind()
    
public  Set<Modifier>getModifiers()
    
public  NamegetQualifiedName()
     The fully qualified name of this symbol.
public  NamegetSimpleName()
    
public  List<TypeSymbol>getTypeParameters()
    
public  booleanhasOuterInstance()
     An inner class has an outer instance if it is not an interface it has an enclosing instance class which might be referenced from the class.
public  booleanisConstructor()
    
public  booleanisEnclosedBy(ClassSymbol clazz)
    
public  booleanisInheritedIn(Symbol clazz, Types types)
     Is this symbol inherited into a given class? PRE: If symbol's owner is a interface, it is already assumed that the interface is a superinterface of given class.
public  booleanisInner()
     A class is an inner class if it it has an enclosing instance class.
public  booleanisInterface()
    
public  booleanisLocal()
     Is this symbol declared (directly or indirectly) local to a method or variable initializer? Also includes fields of inner classes which are in turn local to a method or variable initializer.
public  booleanisMemberOf(TypeSymbol clazz, Types types)
     Fully check membership: hierarchy, protection, and hiding.
public  booleanisStatic()
    
public  booleanisSubClass(Symbol base, Types types)
     Is this symbol a subclass of `base'? Only defined for ClassSymbols.
public  Stringlocation()
     A Java source description of the location of this symbol; used for error reporting.
public  Stringlocation(Type site, Types types)
    
public  Scopemembers()
     If this is a class or package, its members, otherwise null.
public  ClassSymboloutermostClass()
     The outermost class which indirectly owns this symbol.
public  booleanoverrides(Symbol _other, TypeSymbol origin, Types types, boolean checkResult)
     Does this method symbol override `other' symbol, when both are seen as members of class `origin'? It is assumed that _other is a member of origin. It is assumed that both symbols have the same name.
public  PackageSymbolpackge()
     The package which indirectly owns this symbol.
public  StringtoString()
     The Java source which this symbol represents.

Field Detail
attributes_field
public List<Attribute.Compound> attributes_field(Code)
The attributes of this symbol.



completer
public Completer completer(Code)
The completer of this symbol.



erasure_field
public Type erasure_field(Code)
A cache for the type erasure of this symbol.



flags_field
public long flags_field(Code)
The flags of this symbol.



kind
public int kind(Code)
The kind of this symbol.
See Also:   Kinds



name
public Name name(Code)
The name of this symbol in Utf8 representation.



owner
public Symbol owner(Code)
The owner of this symbol.



type
public Type type(Code)
The type of this symbol.




Constructor Detail
Symbol
public Symbol(int kind, long flags, Name name, Type type, Symbol owner)(Code)
Construct a symbol with given kind, flags, name, type and owner.




Method Detail
asMemberOf
public Symbol asMemberOf(Type site, Types types)(Code)
The (variable or method) symbol seen as a member of given class type`site' (this might change the symbol's type). This is used exclusively for producing diagnostics.



asType
public Type asType()(Code)



attribute
public Attribute.Compound attribute(Symbol anno)(Code)
Fetch a particular annotation from a symbol.



clone
public Symbol clone(Symbol newOwner)(Code)
Clone this symbol with new owner. Legal only for fields and methods.



complete
public void complete() throws CompletionFailure(Code)
Complete the elaboration of this symbol's definition.



enclClass
public ClassSymbol enclClass()(Code)
The closest enclosing class of this symbol's declaration.



erasure
public Type erasure(Types types)(Code)
The symbol's erased type.



exists
public boolean exists()(Code)
True if the symbol represents an entity that exists.



externalType
public Type externalType(Types types)(Code)
The external type of a symbol. This is the symbol's erased type except for constructors of inner classes which get the enclosing instance class added as first argument.



flags
public long flags()(Code)
An accessor method for the flags of this symbol. Flags of class symbols should be accessed through the accessor method to make sure that the class symbol is loaded.



flatName
public Name flatName()(Code)
The fully qualified name of this symbol after converting to flat representation. This is the same as the symbol's name except for class symbols, which are handled separately.



getAnnotation
public A getAnnotation(Class<A> annoType)(Code)



getAnnotationMirrors
public List<Attribute.Compound> getAnnotationMirrors()(Code)
An accessor method for the attributes of this symbol. Attributes of class symbols should be accessed through the accessor method to make sure that the class symbol is loaded.



getEnclosedElements
public java.util.List<Symbol> getEnclosedElements()(Code)



getEnclosingElement
public Symbol getEnclosingElement()(Code)



getKind
public ElementKind getKind()(Code)



getModifiers
public Set<Modifier> getModifiers()(Code)



getQualifiedName
public Name getQualifiedName()(Code)
The fully qualified name of this symbol. This is the same as the symbol's name except for class symbols, which are handled separately.



getSimpleName
public Name getSimpleName()(Code)



getTypeParameters
public List<TypeSymbol> getTypeParameters()(Code)



hasOuterInstance
public boolean hasOuterInstance()(Code)
An inner class has an outer instance if it is not an interface it has an enclosing instance class which might be referenced from the class. Nested classes can see instance members of their enclosing class. Their constructors carry an additional this$n parameter, inserted implicitly by the compiler.
See Also:   Symbol.isInner



isConstructor
public boolean isConstructor()(Code)
Is this symbol a constructor?



isEnclosedBy
public boolean isEnclosedBy(ClassSymbol clazz)(Code)
Is this symbol the same as or enclosed by the given class?



isInheritedIn
public boolean isInheritedIn(Symbol clazz, Types types)(Code)
Is this symbol inherited into a given class? PRE: If symbol's owner is a interface, it is already assumed that the interface is a superinterface of given class.
Parameters:
  clazz - The class for which we want to establish membership.This must be a subclass of the member's owner.



isInner
public boolean isInner()(Code)
A class is an inner class if it it has an enclosing instance class.



isInterface
public boolean isInterface()(Code)



isLocal
public boolean isLocal()(Code)
Is this symbol declared (directly or indirectly) local to a method or variable initializer? Also includes fields of inner classes which are in turn local to a method or variable initializer.



isMemberOf
public boolean isMemberOf(TypeSymbol clazz, Types types)(Code)
Fully check membership: hierarchy, protection, and hiding. Does not exclude methods not inherited due to overriding.



isStatic
public boolean isStatic()(Code)



isSubClass
public boolean isSubClass(Symbol base, Types types)(Code)
Is this symbol a subclass of `base'? Only defined for ClassSymbols.



location
public String location()(Code)
A Java source description of the location of this symbol; used for error reporting. Use of this method may result in the loss of the symbol's description.



location
public String location(Type site, Types types)(Code)



members
public Scope members()(Code)
If this is a class or package, its members, otherwise null.



outermostClass
public ClassSymbol outermostClass()(Code)
The outermost class which indirectly owns this symbol.



overrides
public boolean overrides(Symbol _other, TypeSymbol origin, Types types, boolean checkResult)(Code)
Does this method symbol override `other' symbol, when both are seen as members of class `origin'? It is assumed that _other is a member of origin. It is assumed that both symbols have the same name. The static modifier is ignored for this test. See JLS 8.4.6.1 (without transitivity) and 8.4.6.4



packge
public PackageSymbol packge()(Code)
The package which indirectly owns this symbol.



toString
public String toString()(Code)
The Java source which this symbol represents. A description of this symbol; overrides Object.



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.