xtc.type
Class StaticReference

java.lang.Object
  extended by xtc.type.Reference
      extended by xtc.type.VariableReference
          extended by xtc.type.StaticReference

public class StaticReference
extends VariableReference

Representation of a reference to statically allocated memory. A static reference has neither a base nor an offset.

Version:
$Revision: 1.3 $
Author:
Robert Grimm

Field Summary
 
Fields inherited from class xtc.type.Reference
type
 
Constructor Summary
StaticReference(java.lang.String name, Type type)
          Create a new static reference.
StaticReference(Type type)
          Create a new anonymous static reference.
 
Method Summary
 boolean isConstant()
          Determine whether this reference represents a compile-time constant memory location.
 boolean isStatic()
          Determine whether this reference is a static reference.
 
Methods inherited from class xtc.type.VariableReference
getName, hasName, isVariable, write
 
Methods inherited from class xtc.type.Reference
add, add, difference, getBase, getField, getIndex, getLocation, getType, hasBase, hasField, hasIndex, hasLocation, indirect, isCast, isDynamic, isIndirect, isNull, isPrefix, isString, subtract, subtract, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StaticReference

public StaticReference(Type type)
Create a new anonymous static reference.

Parameters:
type - The declared type.

StaticReference

public StaticReference(java.lang.String name,
                       Type type)
Create a new static reference.

Parameters:
name - The declared name.
type - The declared type.
Method Detail

isStatic

public boolean isStatic()
Description copied from class: Reference
Determine whether this reference is a static reference.

Overrides:
isStatic in class Reference
Returns:
true if this reference is a static reference.
See Also:
StaticReference

isConstant

public boolean isConstant()
Description copied from class: Reference
Determine whether this reference represents a compile-time constant memory location.

Overrides:
isConstant in class Reference
Returns:
true if this reference represents a compile-time memory location.


Copyright © 2012. All Rights Reserved.