Java Doc for Reference.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) 


java.lang.Object
   xtc.type.Reference

All known Subclasses:   xtc.type.StringReference,  xtc.type.RelativeReference,  xtc.type.NullReference,  xtc.type.VariableReference,
Reference
abstract public class Reference (Code)
Representation of a reference. A reference represents a specific region of memory. It has a type, which determines the layout of the referenced memory region. Furthermore, it may optionally have a base and an offset, indicating a memory region relative to another. The optional base is a reference, and the optional offset is either an index or a field.
author:
   Robert Grimm
version:
   $Revision: 1.12 $


Field Summary
protected  Typetype
     The type.

Constructor Summary
public  Reference(Type type)
     Create a new reference.

Method Summary
public  Referenceadd(long val)
     Add the specified value to this reference.
Parameters:
  val - The value.
public  Referenceadd(BigInteger val)
     Add the specified value to this reference.
Parameters:
  val - The value.
public  BigIntegerdifference(Reference ref)
     Determine the difference between the two references.
Parameters:
  ref - The other reference.
public  ReferencegetBase()
     Get this reference's base.
public  StringgetField()
     Get this reference's field.
public  BigIntegergetIndex()
     Get this reference's index.
public  BigIntegergetLocation()
     Get this reference's absolute memory location.
public  TypegetType()
     Get this reference's type.
public  booleanhasBase()
     Determine whether this reference has a base.
public  booleanhasField()
     Determine whether this reference has a field.
public  booleanhasIndex()
     Determine whether this reference has an index.
public  booleanhasLocation()
     Determine whether this reference has an absolute memory location.
public  Referenceindirect(Type type)
     Indirect this reference.
public  booleanisCast()
     Determine whether this reference is a cast reference.
public  booleanisConstant()
     Determine whether this reference represents a compile-time constant memory location.
public  booleanisDynamic()
     Determine whether this reference is a dynamic reference.
public  booleanisIndirect()
     Determine whether this reference is an indirect reference.
public  booleanisNull()
     Determine whether this reference is a null reference.
public  booleanisPrefix()
     Determine whether this reference represents a prefix operator in C syntax.
public  booleanisStatic()
     Determine whether this reference is a static reference.
public  booleanisString()
     Determine whether this reference is a string reference.
public  booleanisVariable()
     Determine whether this reference is a variable reference.
protected  voidnormalize()
     Normalize this reference.
public  Referencesubtract(long val)
     Subtract the specified value from this reference.
Parameters:
  val - The value.
public  Referencesubtract(BigInteger val)
     Subtract the specified value from this reference.
Parameters:
  val - The value.
public  StringtoString()
    
abstract public  voidwrite(Appendable out)
     Write a human readable representation to the specified appendable.

Field Detail
type
protected Type type(Code)
The type.




Constructor Detail
Reference
public Reference(Type type)(Code)
Create a new reference. Note that this constructor resolves the specified type.
Parameters:
  type - The type.




Method Detail
add
public Reference add(long val)(Code)
Add the specified value to this reference.
Parameters:
  val - The value. A reference with an index increased by val.



add
public Reference add(BigInteger val)(Code)
Add the specified value to this reference.
Parameters:
  val - The value. A reference with an index increased by val.



difference
public BigInteger difference(Reference ref)(Code)
Determine the difference between the two references.
Parameters:
  ref - The other reference. The difference or null if the differencecannot be statically determined.



getBase
public Reference getBase()(Code)
Get this reference's base.
See Also:   RelativeReference The base.
throws:
  IllegalStateException - Signals that this reference doesnot have a base.



getField
public String getField()(Code)
Get this reference's field. The field.
throws:
  IllegalStateException - Signals that this reference doesnot have a field.



getIndex
public BigInteger getIndex()(Code)
Get this reference's index. The index.
throws:
  IllegalStateException - Signals that this reference doesnot have an index.



getLocation
public BigInteger getLocation()(Code)
Get this reference's absolute memory location. The memory location.
throws:
  IllegalStateException - Signals that this reference doesnot have an absolute memory location.



getType
public Type getType()(Code)
Get this reference's type. The type.



hasBase
public boolean hasBase()(Code)
Determine whether this reference has a base.
See Also:   RelativeReference true if this reference has a base.



hasField
public boolean hasField()(Code)
Determine whether this reference has a field.
See Also:   FieldReference true if this reference has a field.



hasIndex
public boolean hasIndex()(Code)
Determine whether this reference has an index.
See Also:   IndexReference true if this reference has an index.



hasLocation
public boolean hasLocation()(Code)
Determine whether this reference has an absolute memory location. true if this reference has an absolutememory location.



indirect
public Reference indirect(Type type)(Code)
Indirect this reference. This method determines the appropriate reference when using a pointer-decayed type. For arrays and functions, it simly returns this reference. For all other types, it returns an indirect reference, with this reference as the base.
Parameters:
  type - The reference's declared type (before pointer decay).



isCast
public boolean isCast()(Code)
Determine whether this reference is a cast reference. true if this reference is a castreference.



isConstant
public boolean isConstant()(Code)
Determine whether this reference represents a compile-time constant memory location. true if this reference represents acompile-time memory location.



isDynamic
public boolean isDynamic()(Code)
Determine whether this reference is a dynamic reference.
See Also:   DynamicReference true if this reference is a dynamicreference.



isIndirect
public boolean isIndirect()(Code)
Determine whether this reference is an indirect reference. true if this reference is an indirectreference.



isNull
public boolean isNull()(Code)
Determine whether this reference is a null reference. Note that a reference other than NullReference.NULL may still return true; notably, an index reference with a null base and a zero offset still is null.
See Also:   NullReference true if this reference is a nullreference.



isPrefix
public boolean isPrefix()(Code)
Determine whether this reference represents a prefix operator in C syntax. true if this reference represents aprefix operator.



isStatic
public boolean isStatic()(Code)
Determine whether this reference is a static reference.
See Also:   StaticReference true if this reference is a staticreference.



isString
public boolean isString()(Code)
Determine whether this reference is a string reference.
See Also:   StringReference true if this reference is a stringreference.



isVariable
public boolean isVariable()(Code)
Determine whether this reference is a variable reference.
See Also:   VariableReference true if this reference is a variablereference.



normalize
protected void normalize()(Code)
Normalize this reference. This method adjusts the internal type and should be called from constructors that explicitly set the type (instead of just using a base reference's type).



subtract
public Reference subtract(long val)(Code)
Subtract the specified value from this reference.
Parameters:
  val - The value. A reference with an index decreased by val.



subtract
public Reference subtract(BigInteger val)(Code)
Subtract the specified value from this reference.
Parameters:
  val - The value. A reference with an index decreased by val.



toString
public String toString()(Code)



write
abstract public void write(Appendable out) throws IOException(Code)
Write a human readable representation to the specified appendable.
Parameters:
  out - The appendable.
throws:
  IOException - Signals an I/O error.



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.