|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectscale.common.Root
scale.clef.Node
scale.clef.decl.Declaration
scale.clef.decl.StmtFtnDecl
public final class StmtFtnDecl
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.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 |
|---|
public StmtFtnDecl(Type type,
java.lang.String name,
Vector<java.lang.String> parameters,
java.lang.String stmt)
type - is unusedname - is the name of the statement functionparameters - is the set of statement function parameter namesstmt - is the text of the statement function| Method Detail |
|---|
public java.lang.String toString()
toString in class Nodepublic java.lang.String substitute(Vector<java.lang.String> args)
args - is the set of actual parameterspublic Declaration copy(java.lang.String name)
copy in class Declarationpublic final boolean isStmtFtnDecl()
Declaration
isStmtFtnDecl in class Declarationpublic final StmtFtnDecl returnStmtFtnDecl()
DeclarationStmtFtnDecl instance or
null.
returnStmtFtnDecl in class Declaration
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||