scale.clef.decl
Class StmtFtnDecl

java.lang.Object
  extended by scale.common.Root
      extended by scale.clef.Node
          extended by scale.clef.decl.Declaration
              extended by scale.clef.decl.StmtFtnDecl
All Implemented Interfaces:
java.lang.Comparable, AnnotationInterface, DisplayNode

public final class StmtFtnDecl
extends Declaration

This class is used to represent Fortran statement functions.

$Id: StmtFtnDecl.java,v 1.3 2007-10-04 19:58:04 burrill Exp $

Copyright 2008 by the Scale Compiler Group,
Department of Computer Science
University of Massachusetts,
Amherst MA. 01003, USA
All Rights Reserved.


Constructor Summary
StmtFtnDecl(Type type, java.lang.String name, Vector<java.lang.String> parameters, java.lang.String stmt)
          Create a new StmtFtnDecl.
 
Method Summary
 Declaration copy(java.lang.String name)
          Return a copy of this Declaration but with a different name.
 boolean isStmtFtnDecl()
          Return true if StmtFtnDecl instance.
 StmtFtnDecl returnStmtFtnDecl()
          Return a StmtFtnDecl instance or null.
 java.lang.String substitute(Vector<java.lang.String> args)
          Return the statement function with the parameters replaced with the actual parameters.
 java.lang.String toString()
           
 
Methods inherited from class scale.clef.decl.Declaration
accessibility, addressTaken, compareTo, getActualType, getAddressRegister, getAlias, getConstantValue, getCoreType, getDecl, getDisplacement, getDisplayColorHint, getDisplayLabel, getDisplayShapeHint, getMode, getName, getPointedToCore, getStorageLoc, getTag, getType, getValueRegister, hashCode, hasHiddenAliases, inMemory, isCaseLabelDecl, isCommonBaseVariable, isConst, isEnumElementDecl, isEquivalenceDecl, isExceptionDecl, isFieldDecl, isFileDecl, isFormalDecl, isForwardProcedureDecl, isFtnResultVar, isGlobal, isLabelDecl, isProcedureDecl, isPure, isReferenced, isRenamed, isRenamedVariableDecl, isRoutineDecl, isTemporary, isTypeDecl, isTypeName, isUnknownFormals, isValueDecl, isVariableDecl, isVirtual, isWeak, residency, returnCaseLabelDecl, returnEnumElementDecl, returnEquivalenceDecl, returnExceptionDecl, returnFieldDecl, returnFileDecl, returnFormalDecl, returnForwardProcedureDecl, returnLabelDecl, returnProcedureDecl, returnRenamedVariableDecl, returnRoutineDecl, returnTypeDecl, returnTypeName, returnUnknownFormals, returnValueDecl, returnVariableDecl, setAccessibility, setAddressRegister, setAddressTaken, setAlias, setDisplacement, setName, setReferenced, setResidency, setStorageLoc, setTag, setType, setValueRegister, setVisibility, setWeak, toStringSpecial, valueRegMode, visibility, visit
 
Methods inherited from class scale.clef.Node
getChild, getSourceLineNumber, numChildren, setAnnotationLevel, setReportLevel, setSourceLineNumber, toString, toStringChildren
 
Methods inherited from class scale.common.Root
addAnnotation, allAnnotations, allMatchingAnnotations, getAnnotation, getDisplayName, getDisplayString, getNodeCount, getNodeID, hasAnnotation, hasEqualAnnotation, removeAnnotation, removeAnnotations, toStringAnnotations, toStringClass, trace, trace, trace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StmtFtnDecl

public StmtFtnDecl(Type type,
                   java.lang.String name,
                   Vector<java.lang.String> parameters,
                   java.lang.String stmt)
Create a new StmtFtnDecl.

Parameters:
type - is unused
name - is the name of the statement function
parameters - is the set of statement function parameter names
stmt - is the text of the statement function
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class Node

substitute

public java.lang.String substitute(Vector<java.lang.String> args)
Return the statement function with the parameters replaced with the actual parameters.

Parameters:
args - is the set of actual parameters

copy

public Declaration copy(java.lang.String name)
Return a copy of this Declaration but with a different name. THis method causes an internal error if called.

Specified by:
copy in class Declaration

isStmtFtnDecl

public final boolean isStmtFtnDecl()
Description copied from class: Declaration
Return true if StmtFtnDecl instance.

Overrides:
isStmtFtnDecl in class Declaration

returnStmtFtnDecl

public final StmtFtnDecl returnStmtFtnDecl()
Description copied from class: Declaration
Return a StmtFtnDecl instance or null.

Overrides:
returnStmtFtnDecl in class Declaration