Java Doc for VariantT.java in  » Parser » Rats-Parser-Generators » xtc » type » 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 » Parser » Rats Parser Generators » xtc.type 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


xtc.type.Type
   xtc.type.DerivedT
      xtc.type.VariantT

VariantT
public class VariantT extends DerivedT (Code)
A variant type. Variants can be monomorphic or polymorphic, with the latter possibly sharing tuples with other variants. Monomorphic variants must be named and are compared through name equivalence. Polymorphic variants may be anonymous and are compared through structural equivalence.
author:
   Robert Grimm
version:
   $Revision: 1.12 $



Constructor Summary
public  VariantT(String name)
     Create a new incomplete variant type.
public  VariantT(String name, List<TupleT> tuples)
     Create a new variant type.
public  VariantT(String name, boolean polymorphic, List<TupleT> tuples)
     Create a new variant type.
public  VariantT(Type template, String name, boolean polymorphic, List<TupleT> tuples)
     Create a new variant type.

Method Summary
public  VariantTcopy()
    
public  booleanequals(Object o)
     Determine whether this variant equals the specified object.
public  StringgetName()
     Get this variant's name.
public  StringgetQualifier()
     Get this variant's qualifier.
public  StringgetSimpleName()
     Get this variant's simple name.
public  List<TupleT>getTuples()
     Get this variant's tuples.
public  inthashCode()
    
public  booleanisPolymorphic()
     Determine whether the variant is polymorphic.
public  booleanisVariant()
    
public  Typelookup(String name)
     Look up the tuple with the specified name.
Parameters:
  name - The name.
public  TypelookupSimple(String name)
     Look up the tuple with the specified simple name.
Parameters:
  name - The simple name.
public  Typeseal()
    
public  voidsetTuples(List<TupleT> tuples)
     Set this variant's tuples.
public  Type.Tagtag()
    
public  VariantTtoVariant()
    
public  voidwrite(Appendable out)
    


Constructor Detail
VariantT
public VariantT(String name)(Code)
Create a new incomplete variant type. The new variant type is not polymorphic.
Parameters:
  name - The name.
throws:
  NullPointerException - Signals that the name is null.



VariantT
public VariantT(String name, List<TupleT> tuples)(Code)
Create a new variant type. The new variant type is not polymorphic.
Parameters:
  name - The name.
Parameters:
  tuples - The tuples.
throws:
  NullPointerException - Signals that the name is null.



VariantT
public VariantT(String name, boolean polymorphic, List<TupleT> tuples)(Code)
Create a new variant type. Note that polymorphic variants may be anonymous, i.e., have a null name.
Parameters:
  name - The name.
Parameters:
  polymorphic - The flag for polymorphic variants.
Parameters:
  tuples - The tuples.
throws:
  NullPointerException - Signals that the name is null for amonomorphic variant.



VariantT
public VariantT(Type template, String name, boolean polymorphic, List<TupleT> tuples)(Code)
Create a new variant type.
Parameters:
  template - The type whose annotations to copy.
Parameters:
  name - The name.
Parameters:
  polymorphic - The flag for polymorphic variants.
Parameters:
  tuples - The tuples.
throws:
  NullPointerException - Signals that the name is null for amonomorphic variant.




Method Detail
copy
public VariantT copy()(Code)



equals
public boolean equals(Object o)(Code)
Determine whether this variant equals the specified object. This method implements name equivalence for non-polymorphic variants and structural equivalence for polymorphic variants.
Parameters:
  o - The object. true if this variant equals the object.



getName
public String getName()(Code)
Get this variant's name. The name or null if this variant is anonymous.



getQualifier
public String getQualifier()(Code)
Get this variant's qualifier. The qualifier or null if this variant doesnot have a qualified name.



getSimpleName
public String getSimpleName()(Code)
Get this variant's simple name. The simple name or null if this variant isanonymous.



getTuples
public List<TupleT> getTuples()(Code)
Get this variant's tuples. The list of tuples.



hashCode
public int hashCode()(Code)



isPolymorphic
public boolean isPolymorphic()(Code)
Determine whether the variant is polymorphic. true if the variant is polymorphic.



isVariant
public boolean isVariant()(Code)



lookup
public Type lookup(String name)(Code)
Look up the tuple with the specified name.
Parameters:
  name - The name. The tuple or ErrorT.TYPE if this variant has nosuch tuple.



lookupSimple
public Type lookupSimple(String name)(Code)
Look up the tuple with the specified simple name.
Parameters:
  name - The simple name. The first such tuple or ErrorT.TYPE if thisvariant has no such tuple.



seal
public Type seal()(Code)



setTuples
public void setTuples(List<TupleT> tuples)(Code)
Set this variant's tuples.
Parameters:
  tuples - The new list of tuples.



tag
public Type.Tag tag()(Code)



toVariant
public VariantT toVariant()(Code)



write
public void write(Appendable out) throws IOException(Code)



Methods inherited from xtc.type.DerivedT
public boolean isDerived()(Code)(Java Doc)

Fields inherited from xtc.type.Type
List<Attribute> attributes(Code)(Java Doc)
Constant constant(Code)(Java Doc)
Language language(Code)(Java Doc)
String scope(Code)(Java Doc)
boolean sealed(Code)(Java Doc)
Reference shape(Code)(Java Doc)

Methods inherited from xtc.type.Type
public void addAttribute(Attribute att)(Code)(Java Doc)
public Type annotate()(Code)(Java Doc)
public Type attribute(Attribute att)(Code)(Java Doc)
public Type attribute(List<Attribute> attributes)(Code)(Java Doc)
public Type attribute(Type template)(Code)(Java Doc)
public List<Attribute> attributes()(Code)(Java Doc)
public static Type cast(Object type)(Code)(Java Doc)
protected void checkNotSealed()(Code)(Java Doc)
public Type constant(boolean value)(Code)(Java Doc)
public Type constant(Object value)(Code)(Java Doc)
abstract public Type copy()(Code)(Java Doc)
public static List<T> copy(List<T> types)(Code)(Java Doc)
public Type deannotate()(Code)(Java Doc)
public Attribute getAttribute(String name)(Code)(Java Doc)
public Attribute getAttribute(String name, boolean forward)(Code)(Java Doc)
public Constant getConstant()(Code)(Java Doc)
public Constant getConstant(boolean forward)(Code)(Java Doc)
public Language getLanguage()(Code)(Java Doc)
public Language getLanguage(boolean forward)(Code)(Java Doc)
public Location getLocation()(Code)(Java Doc)
public Location getLocation(boolean forward)(Code)(Java Doc)
public String getScope()(Code)(Java Doc)
public String getScope(boolean forward)(Code)(Java Doc)
public Reference getShape()(Code)(Java Doc)
public Reference getShape(boolean forward)(Code)(Java Doc)
public boolean hasAlias()(Code)(Java Doc)
public boolean hasAnnotated()(Code)(Java Doc)
public boolean hasAttribute(Attribute att)(Code)(Java Doc)
public boolean hasAttribute(Attribute att, boolean forward)(Code)(Java Doc)
public boolean hasAttribute(String name)(Code)(Java Doc)
public boolean hasAttribute(String name, boolean forward)(Code)(Java Doc)
public boolean hasAttributes()(Code)(Java Doc)
public boolean hasConstant()(Code)(Java Doc)
public boolean hasConstant(boolean forward)(Code)(Java Doc)
public boolean hasEnum()(Code)(Java Doc)
public boolean hasEnumerator()(Code)(Java Doc)
public boolean hasError()(Code)(Java Doc)
public boolean hasInstantiated()(Code)(Java Doc)
public boolean hasLanguage()(Code)(Java Doc)
public boolean hasLanguage(boolean forward)(Code)(Java Doc)
public boolean hasLocation()(Code)(Java Doc)
public boolean hasLocation(boolean forward)(Code)(Java Doc)
public boolean hasParameterized()(Code)(Java Doc)
public boolean hasScope()(Code)(Java Doc)
public boolean hasScope(boolean forward)(Code)(Java Doc)
public boolean hasShape()(Code)(Java Doc)
public boolean hasShape(boolean forward)(Code)(Java Doc)
public boolean hasStructOrUnion()(Code)(Java Doc)
public boolean hasTag(Tag tag)(Code)(Java Doc)
public boolean hasTagged()(Code)(Java Doc)
public boolean hasVariable()(Code)(Java Doc)
public boolean hasWTag(Tag tag)(Code)(Java Doc)
public boolean isAlias()(Code)(Java Doc)
public boolean isAnnotated()(Code)(Java Doc)
public boolean isArray()(Code)(Java Doc)
public boolean isBoolean()(Code)(Java Doc)
public boolean isClass()(Code)(Java Doc)
public boolean isConcrete()(Code)(Java Doc)
public boolean isDerived()(Code)(Java Doc)
public boolean isEnum()(Code)(Java Doc)
public boolean isEnumerator()(Code)(Java Doc)
public boolean isError()(Code)(Java Doc)
public boolean isFloat()(Code)(Java Doc)
public boolean isFunction()(Code)(Java Doc)
public boolean isInstantiated()(Code)(Java Doc)
public boolean isInteger()(Code)(Java Doc)
public boolean isInterface()(Code)(Java Doc)
public boolean isInternal()(Code)(Java Doc)
public boolean isLabel()(Code)(Java Doc)
public boolean isMethod()(Code)(Java Doc)
public boolean isNumber()(Code)(Java Doc)
public boolean isPackage()(Code)(Java Doc)
public boolean isParameter()(Code)(Java Doc)
public boolean isParameterized()(Code)(Java Doc)
public boolean isPointer()(Code)(Java Doc)
public boolean isSealed()(Code)(Java Doc)
public boolean isStruct()(Code)(Java Doc)
public boolean isTuple()(Code)(Java Doc)
public boolean isUnion()(Code)(Java Doc)
public boolean isUnit()(Code)(Java Doc)
public boolean isVariable()(Code)(Java Doc)
public boolean isVariant()(Code)(Java Doc)
public boolean isVoid()(Code)(Java Doc)
public boolean isWildcard()(Code)(Java Doc)
public boolean isWrapped()(Code)(Java Doc)
public Type language(Language language)(Code)(Java Doc)
public Type locate(Location location)(Code)(Java Doc)
public Type locate(Locatable locatable)(Code)(Java Doc)
public void mark(Node node)(Code)(Java Doc)
public Set<String> properties()(Code)(Java Doc)
public boolean removeAttribute(Attribute att)(Code)(Java Doc)
public Object removeProperty(String name)(Code)(Java Doc)
public Type resolve()(Code)(Java Doc)
public static Type resolve(Object type)(Code)(Java Doc)
public Type scope(String scope)(Code)(Java Doc)
public Type seal()(Code)(Java Doc)
public static List<T> seal(List<T> types)(Code)(Java Doc)
public void setLocation(Location location)(Code)(Java Doc)
public void setLocation(Locatable locatable)(Code)(Java Doc)
public Object setProperty(String name, Object value)(Code)(Java Doc)
public Type shape(boolean isStatic, String name)(Code)(Java Doc)
public Type shape(Reference shape)(Code)(Java Doc)
abstract public Tag tag()(Code)(Java Doc)
public AliasT toAlias()(Code)(Java Doc)
public AnnotatedT toAnnotated()(Code)(Java Doc)
public ArrayT toArray()(Code)(Java Doc)
public BooleanT toBoolean()(Code)(Java Doc)
public ClassT toClass()(Code)(Java Doc)
public EnumT toEnum()(Code)(Java Doc)
public EnumeratorT toEnumerator()(Code)(Java Doc)
public FloatT toFloat()(Code)(Java Doc)
public FunctionT toFunction()(Code)(Java Doc)
public InstantiatedT toInstantiated()(Code)(Java Doc)
public IntegerT toInteger()(Code)(Java Doc)
public InterfaceT toInterface()(Code)(Java Doc)
public InternalT toInternal()(Code)(Java Doc)
public LabelT toLabel()(Code)(Java Doc)
public MethodT toMethod()(Code)(Java Doc)
public NumberT toNumber()(Code)(Java Doc)
public PackageT toPackage()(Code)(Java Doc)
public Parameter toParameter()(Code)(Java Doc)
public ParameterizedT toParameterized()(Code)(Java Doc)
public PointerT toPointer()(Code)(Java Doc)
public StructT toStruct()(Code)(Java Doc)
public Tagged toTagged()(Code)(Java Doc)
public TupleT toTuple()(Code)(Java Doc)
public UnionT toUnion()(Code)(Java Doc)
public UnitT toUnit()(Code)(Java Doc)
public VariableT toVariable()(Code)(Java Doc)
public VariantT toVariant()(Code)(Java Doc)
public VoidT toVoid()(Code)(Java Doc)
public Wildcard toWildcard()(Code)(Java Doc)
public WrappedT toWrapped()(Code)(Java Doc)
public void trace(Runtime runtime)(Code)(Java Doc)
public Tag wtag()(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.