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


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

All known Subclasses:   com.sun.tools.javac.jvm.UninitializedType,
Type
public class Type implements PrimitiveType(Code)
This class represents Java types. The class itself defines the behavior of the following types:
 base types (tags: BYTE, CHAR, SHORT, INT, LONG, FLOAT, DOUBLE, BOOLEAN),
 type `void' (tag: VOID),
 the bottom type (tag: BOT),
 the missing type (tag: NONE).
 

The behavior of the following types is defined in subclasses, which are all static inner classes of this class:

 class types (tag: CLASS, class: ClassType),
 array types (tag: ARRAY, class: ArrayType),
 method types (tag: METHOD, class: MethodType),
 package types (tag: PACKAGE, class: PackageType),
 type variables (tag: TYPEVAR, class: TypeVar),
 type arguments (tag: WILDCARD, class: WildcardType),
 polymorphic types (tag: FORALL, class: ForAll),
 the error type (tag: ERROR, class: ErrorType).
 

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.
See Also:   TypeTags


Inner Class :abstract public static class Mapping
Inner Class :public static class WildcardType extends Type implements javax.lang.model.type.WildcardType
Inner Class :public static class ClassType extends Type implements DeclaredType
Inner Class :public static class ArrayType extends Type implements javax.lang.model.type.ArrayType
Inner Class :public static class MethodType extends Type implements Cloneable,ExecutableType
Inner Class :public static class PackageType extends Type implements NoType
Inner Class :public static class TypeVar extends Type implements TypeVariable
Inner Class :public static class CapturedType extends TypeVar
Inner Class :abstract public static class DelegatedType extends Type
Inner Class :public static class ForAll extends DelegatedType implements Cloneable,ExecutableType
Inner Class :public static class UndetVar extends DelegatedType
Inner Class :static class JCNoType extends Type implements NoType
Inner Class :static class BottomType extends Type implements NullType
Inner Class :public static class ErrorType extends ClassType implements javax.lang.model.type.ErrorType
Inner Class :public interface Visitor

Field Summary
public static  booleanmoreInfo
     If this switch is turned on, the names of type variables and anonymous classes are printed with hashcodes appended.
final public static  JCNoTypenoType
     Constant type: no type at all.
public  inttag
     The tag of this type.
public  TypeSymboltsym
    

Constructor Summary
public  Type(int tag, TypeSymbol tsym)
    

Method Summary
public  Raccept(Type.Visitor<R, S> v, S s)
    
public  Raccept(TypeVisitor<R, P> v, P p)
    
public  List<Type>allparams()
     Return all parameters of this type and all its outer types in order outer (first) to inner (last).
public  Stringargtypes(boolean varargs)
    
public  TypeSymbolasElement()
    
public  MethodTypeasMethodType()
     The underlying method type of this type.
public  TypebaseType()
     If this is a constant type, return its underlying type.
public static  List<Type>baseTypes(List<Type> ts)
     Return the base types of a list of types.
public  Objectclone()
    
public  voidcomplete()
     Complete loading all classes in this type.
public  TypeconstType(Object constValue)
    
public  ObjectconstValue()
     The constant value of this type, null if this type does not have a constant value attribute.
public  booleancontains(Type t)
    
public static  booleancontains(List<Type> ts, Type t)
    
public  booleancontainsSome(List<Type> ts)
    
public  booleanequals(Object t)
     This method is analogous to isSameType, but weaker, since we never complete classes.
public  TypegetEnclosingType()
    
public  TypeKindgetKind()
    
public  TypegetLowerBound()
    
public  List<Type>getParameterTypes()
    
public  TypegetReturnType()
    
public  List<Type>getThrownTypes()
    
public  List<Type>getTypeArguments()
     Access methods.
public  TypegetUpperBound()
    
public  inthashCode()
    
public  booleanisCompound()
    
public  booleanisErroneous()
    
public static  booleanisErroneous(List<Type> ts)
    
public  booleanisExtendsBound()
    
public  booleanisFalse()
    
public  booleanisInterface()
    
public  booleanisParameterized()
     Is this type parameterized? A class type is parameterized if it has some parameters.
public  booleanisPrimitive()
    
public  booleanisRaw()
     Is this type a raw type? A class type is a raw type if it misses some of its parameters.
public  booleanisSuperBound()
    
public  booleanisTrue()
    
public  booleanisUnbound()
    
public  Typemap(Mapping f)
    
public static  List<Type>map(List<Type> ts, Mapping f)
    
public static  List<Type>removeBounds(List<Type> ts)
    
public  TyperemoveBounds()
    
public  voidsetThrown(List<Type> ts)
    
public  StringstringValue()
    
public  StringtoString()
     The Java source which this type represents.
public static  StringtoString(List<Type> ts)
     The Java source which this type list represents.
public  TypewithTypeVar(Type t)
    

Field Detail
moreInfo
public static boolean moreInfo(Code)
If this switch is turned on, the names of type variables and anonymous classes are printed with hashcodes appended.



noType
final public static JCNoType noType(Code)
Constant type: no type at all.



tag
public int tag(Code)
The tag of this type.
See Also:   TypeTags



tsym
public TypeSymbol tsym(Code)
The defining class / interface / package / type variable




Constructor Detail
Type
public Type(int tag, TypeSymbol tsym)(Code)
Define a type given its tag and type symbol




Method Detail
accept
public R accept(Type.Visitor<R, S> v, S s)(Code)



accept
public R accept(TypeVisitor<R, P> v, P p)(Code)



allparams
public List<Type> allparams()(Code)
Return all parameters of this type and all its outer types in order outer (first) to inner (last).



argtypes
public String argtypes(boolean varargs)(Code)



asElement
public TypeSymbol asElement()(Code)



asMethodType
public MethodType asMethodType()(Code)
The underlying method type of this type.



baseType
public Type baseType()(Code)
If this is a constant type, return its underlying type. Otherwise, return the type itself.



baseTypes
public static List<Type> baseTypes(List<Type> ts)(Code)
Return the base types of a list of types.



clone
public Object clone()(Code)



complete
public void complete()(Code)
Complete loading all classes in this type.



constType
public Type constType(Object constValue)(Code)
Define a constant type, of the same kind as this type and with given constant value



constValue
public Object constValue()(Code)
The constant value of this type, null if this type does not have a constant value attribute. Only primitive types and strings (ClassType) can have a constant value attribute. the constant value attribute of this type



contains
public boolean contains(Type t)(Code)
Does this type contain occurrences of type t?



contains
public static boolean contains(List<Type> ts, Type t)(Code)



containsSome
public boolean containsSome(List<Type> ts)(Code)
Does this type contain an occurrence of some type in `elems'?



equals
public boolean equals(Object t)(Code)
This method is analogous to isSameType, but weaker, since we never complete classes. Where isSameType would complete a class, equals assumes that the two types are different.



getEnclosingType
public Type getEnclosingType()(Code)



getKind
public TypeKind getKind()(Code)



getLowerBound
public Type getLowerBound()(Code)



getParameterTypes
public List<Type> getParameterTypes()(Code)



getReturnType
public Type getReturnType()(Code)



getThrownTypes
public List<Type> getThrownTypes()(Code)



getTypeArguments
public List<Type> getTypeArguments()(Code)
Access methods.



getUpperBound
public Type getUpperBound()(Code)



hashCode
public int hashCode()(Code)



isCompound
public boolean isCompound()(Code)



isErroneous
public boolean isErroneous()(Code)
Does this type contain "error" elements?



isErroneous
public static boolean isErroneous(List<Type> ts)(Code)



isExtendsBound
public boolean isExtendsBound()(Code)



isFalse
public boolean isFalse()(Code)
Is this a constant type whose value is false?



isInterface
public boolean isInterface()(Code)



isParameterized
public boolean isParameterized()(Code)
Is this type parameterized? A class type is parameterized if it has some parameters. An array type is parameterized if its element type is parameterized. All other types are not parameterized.



isPrimitive
public boolean isPrimitive()(Code)



isRaw
public boolean isRaw()(Code)
Is this type a raw type? A class type is a raw type if it misses some of its parameters. An array type is a raw type if its element type is raw. All other types are not raw. Type validation will ensure that the only raw types in a program are types that miss all their type variables.



isSuperBound
public boolean isSuperBound()(Code)



isTrue
public boolean isTrue()(Code)
Is this a constant type whose value is true?



isUnbound
public boolean isUnbound()(Code)



map
public Type map(Mapping f)(Code)
map a type function over all immediate descendants of this type



map
public static List<Type> map(List<Type> ts, Mapping f)(Code)
map a type function over a list of types



removeBounds
public static List<Type> removeBounds(List<Type> ts)(Code)



removeBounds
public Type removeBounds()(Code)



setThrown
public void setThrown(List<Type> ts)(Code)



stringValue
public String stringValue()(Code)
The constant value of this type, converted to String



toString
public String toString()(Code)
The Java source which this type represents.



toString
public static String toString(List<Type> ts)(Code)
The Java source which this type list represents. A List is represented as a comma-spearated listing of the elements in that list.



withTypeVar
public Type withTypeVar(Type t)(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.