xtc.type
Class StaticReference
java.lang.Object
xtc.type.Reference
xtc.type.VariableReference
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
|
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.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 |
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.
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.