xtc.type
Class DynamicReference

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

public class DynamicReference
extends VariableReference

Representation of a reference to dynamically allocated memory. A dynamic reference has neither a base nor an offset.

Version:
$Revision: 1.2 $
Author:
Robert Grimm

Field Summary
 
Fields inherited from class xtc.type.Reference
type
 
Constructor Summary
DynamicReference(java.lang.String name, Type type)
          Create a new dynamic reference.
DynamicReference(Type type)
          Create a new anonymous dynamic reference.
 
Method Summary
 boolean isDynamic()
          Determine whether this reference is a dynamic 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, isConstant, isIndirect, isNull, isPrefix, isStatic, isString, subtract, subtract, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DynamicReference

public DynamicReference(Type type)
Create a new anonymous dynamic reference.

Parameters:
type - The type.

DynamicReference

public DynamicReference(java.lang.String name,
                        Type type)
Create a new dynamic reference.

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

isDynamic

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

Overrides:
isDynamic in class Reference
Returns:
true if this reference is a dynamic reference.
See Also:
DynamicReference


Copyright © 2012. All Rights Reserved.