dk.brics.xact.analysis.flowgraph
Class Method

java.lang.Object
  extended by dk.brics.xact.analysis.flowgraph.Method

public class Method
extends Object

A method in an application class with its relevant variables and type annotations.


Constructor Summary
Method(String name, Statement entry, Statement exit, Variable[] parameters, Variable returnVar, SchemaType returnType, SchemaType[] parameterTypes)
           
 
Method Summary
 Statement getEntry()
           
 Statement getExit()
           
 String getName()
           
 Variable getParameter(int i)
           
 Variable[] getParameters()
           
 SchemaType getParameterType(int i)
           
 SchemaType[] getParameterTypes()
           
 SchemaType getReturnType()
           
 Variable getReturnVar()
           
 void setEntry(Statement entry)
           
 void setExit(Statement exit)
           
 void setName(String name)
           
 void setParameter(int i, Variable var)
           
 void setParameters(Variable[] parameters)
           
 void setParameterType(int i, SchemaType type)
           
 void setParameterTypes(SchemaType[] parameterTypes)
           
 void setReturnType(SchemaType returnType)
           
 void setReturnVar(Variable returnVar)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Method

public Method(String name,
              Statement entry,
              Statement exit,
              Variable[] parameters,
              Variable returnVar,
              SchemaType returnType,
              SchemaType[] parameterTypes)
Method Detail

getEntry

public Statement getEntry()

getExit

public Statement getExit()

getName

public String getName()

getParameter

public Variable getParameter(int i)

getParameters

public Variable[] getParameters()

getParameterType

public SchemaType getParameterType(int i)

getParameterTypes

public SchemaType[] getParameterTypes()

getReturnType

public SchemaType getReturnType()

getReturnVar

public Variable getReturnVar()

setEntry

public void setEntry(Statement entry)

setExit

public void setExit(Statement exit)

setName

public void setName(String name)

setParameter

public void setParameter(int i,
                         Variable var)

setParameters

public void setParameters(Variable[] parameters)

setParameterType

public void setParameterType(int i,
                             SchemaType type)

setParameterTypes

public void setParameterTypes(SchemaType[] parameterTypes)

setReturnType

public void setReturnType(SchemaType returnType)

setReturnVar

public void setReturnVar(Variable returnVar)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2005-2011 Aarhus University.