scale.clef.decl
Class RenamedVariableDecl
java.lang.Object
|
+--scale.common.Root
|
+--scale.clef.Node
|
+--scale.clef.decl.Declaration
|
+--scale.clef.decl.ValueDecl
|
+--scale.clef.decl.VariableDecl
|
+--scale.clef.decl.RenamedVariableDecl
- All Implemented Interfaces:
- AnnotationInterface, DisplayNode, java.io.Serializable
- public class RenamedVariableDecl
- extends VariableDecl
This class declares a variable that was renamed from another variable.
$Id: RenamedVariableDecl.java,v 1.15 2002/01/03 21:42:45 burrill Exp $
Copyright 2002 by the Scale Compiler Group,
Department of Computer Science
University of Massachusetts,
Amherst MA. 01003, USA
All Rights Reserved.
see scale.score.SSA
- See Also:
- Serialized Form
| Fields inherited from class scale.clef.decl.Declaration |
accessibilities, cAuto, cExtern, cFile, cGlobal, cLocal, cMemory, cPrivate, cProtected, cPublic, cRegister, residencies, visibilitys |
|
Method Summary |
boolean |
addressTaken()
Return true if the address of this Declaration has been taken. |
protected Vector |
createChildren()
Create the list of children for the node - each node that
has children must implement this method. |
static int |
created()
Return the number of instances of this class created. |
protected void |
finalize()
Keep the count of instances up-to-date. |
VariableDecl |
getOriginal()
Return the variable that this variable was renamed from. |
boolean |
isVirtual()
Return true if the declaration is a virtual variable. |
static int |
number()
Return the current number of instances of this class. |
void |
visit(Predicate p)
The visit() method is used to implement a visit 'pattern'. |
| Methods inherited from class scale.clef.decl.VariableDecl |
alignment, declareFtnResultVar, getConstantValue, getInitialValue, inMemory, isConst, isFormalArg, isFtnResultVar, isReferenced, isStatic, isTemporary, isVariable, isVolatile, residency, setAddressTaken, setAlignment, setInitialValue, setReferenced, setResidency, setTemporary, shouldBeInRegister, toStringSpecial |
| Methods inherited from class scale.clef.decl.Declaration |
accessibility, DDname, getCoreType, getDecl, getDisplayColorHint, getDisplayShapeHint, getDisplayText, getName, getParent, getScope, getScopeNode, getTag, getType, hashCode, isGlobal, isPure, setAccessibility, setChildParent, setName, setParent, setScope, setTag, setType, setVisibility, visibility |
| Methods inherited from class scale.common.Root |
addAnnotation, allAnnotations, allMatchingAnnotations, getAnnotation, getDisplayName, getDisplayString, getNodeCount, getNodeID, hasAnnotation, hasEqualAnnotation, removeAnnotation, removeAnnotations, toStringAnnotations, toStringClass |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, notify, notifyAll, wait, wait, wait |
RenamedVariableDecl
public RenamedVariableDecl(java.lang.String name,
VariableDecl original)
- Parameters:
name - is the new name (should be based on the original name)original - is the variable that this variable was renamed from- See Also:
SSA
finalize
protected void finalize()
throws java.lang.Throwable
- Keep the count of instances up-to-date.
- Overrides:
finalize in class VariableDecl
- Throws:
java.lang.Throwable - [needs description]
number
public static int number()
- Return the current number of instances of this class.
created
public static int created()
- Return the number of instances of this class created.
visit
public void visit(Predicate p)
- Description copied from class:
Node
- The visit() method is used to implement a visit 'pattern'.
- Overrides:
visit in class VariableDecl
getOriginal
public VariableDecl getOriginal()
- Return the variable that this variable was renamed from.
- Overrides:
getOriginal in class VariableDecl
addressTaken
public boolean addressTaken()
- Return true if the address of this Declaration has been taken.
- Overrides:
addressTaken in class VariableDecl
isVirtual
public boolean isVirtual()
- Return true if the declaration is a virtual variable.
- Overrides:
isVirtual in class Declaration
createChildren
protected Vector createChildren()
- Description copied from class:
Node
- Create the list of children for the node - each node that
has children must implement this method. However, use
getChildren() to actually get the children.
- Overrides:
createChildren in class ValueDecl
- Following copied from class:
scale.clef.Node
- Returns:
- the list of children