scale.clef.decl
Class ConstructorDecl
java.lang.Object
|
+--scale.common.Root
|
+--scale.clef.Node
|
+--scale.clef.decl.Declaration
|
+--scale.clef.decl.RoutineDecl
|
+--scale.clef.decl.MethodDecl
|
+--scale.clef.decl.ConstructorDecl
- All Implemented Interfaces:
- AnnotationInterface, DisplayNode, java.io.Serializable
- public class ConstructorDecl
- extends MethodDecl
This class represents the declaration of a constructor method.
$Id: ConstructorDecl.java,v 1.25 2002/01/03 21:42:41 burrill Exp $
Copyright 2002 by the Scale Compiler Group,
Department of Computer Science
University of Massachusetts,
Amherst MA. 01003, USA
All Rights Reserved.
- 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 |
| Methods inherited from class scale.clef.decl.RoutineDecl |
finalize, getBody, getFtnResultVar, getSignature, isMain, isReferenced, isSpecification, number, setBody, setFtnResultVar, setMain, setReferenced, setSignature, setSpecification, setUsesVaStart, toStringSpecial, usesVaStart |
| Methods inherited from class scale.clef.decl.Declaration |
addressTaken, DDname, getConstantValue, getCoreType, getDecl, getDisplayColorHint, getDisplayShapeHint, getDisplayText, getName, getParent, getScope, getTag, getType, hashCode, inMemory, isFtnResultVar, isGlobal, isPure, isTemporary, isVariable, residency, setAddressTaken, setChildParent, setName, setParent, setResidency, 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 |
ConstructorDecl
public ConstructorDecl(java.lang.String n,
MethodType pt,
Statement b,
Vector i,
ClassType myClass)
- A constructor to create a complete definition for a Constructor
routine. Note that the class to which this constructor belongs
may not be known at this point.
ConstructorDecl
public ConstructorDecl(java.lang.String n,
MethodType pt,
Vector i)
- Construct a specification for a constructor. The constructor does not
have statements nor do we know what class it belongs too.
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 MethodDecl
getInitializer
public final Vector getInitializer()
setInitializer
public final void setInitializer(Vector i)
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 RoutineDecl
- Following copied from class:
scale.clef.Node
- Returns:
- the list of children