edu.mit.csail.sdg.squander.spec.MethodSpec Class Reference
[Specification]

Collaboration diagram for edu.mit.csail.sdg.squander.spec.MethodSpec:
Collaboration graph
[legend]

List of all members.

Classes

class  CaseSource

Public Member Functions

Options options ()
boolean isHelper ()
boolean isPure ()
List< CaseSourcecases ()
boolean isTrivial ()
Map< JType.Unary, Integer > freshObjects ()
void typecheck (JavaScene javaScene)
void translateSpecs (ForgeEnv env, ForgeScene forgeScene)
void addOptions (Options opt)

Package Functions

 MethodSpec ()
void addFreshObj (Class<?> cls, Class<?>[] typeParams, int num)
void addCase (Source requires, Source ensures, Source modifies, boolean exceptional)
void mergeCasesWith (MethodSpec ms)
void makeHelper ()
void makePure ()

Private Attributes

final List< CaseSourcecases
final Map< String, CaseSourcepre2cs = new HashMap<String, CaseSource>()
final Map< JType.Unary, Integer > freshObj = new HashMap<JType.Unary, Integer>()
Options options
boolean helper
boolean pure

Detailed Description

Method specification source. Abstract data type that holds method specifications.

Empty specification source should be the identity with respect to the union operation.

Author:
kuat
Aleksandar Milicevic

Definition at line 27 of file MethodSpec.java.


Constructor & Destructor Documentation

edu.mit.csail.sdg.squander.spec.MethodSpec.MethodSpec (  )  [package]

Member Function Documentation

void edu.mit.csail.sdg.squander.spec.MethodSpec.addCase ( Source  requires,
Source  ensures,
Source  modifies,
boolean  exceptional 
) [package]
void edu.mit.csail.sdg.squander.spec.MethodSpec.addFreshObj ( Class<?>  cls,
Class<?>[]  typeParams,
int  num 
) [package]
void edu.mit.csail.sdg.squander.spec.MethodSpec.addOptions ( Options  opt  ) 
Map<JType.Unary, Integer> edu.mit.csail.sdg.squander.spec.MethodSpec.freshObjects (  ) 
boolean edu.mit.csail.sdg.squander.spec.MethodSpec.isHelper (  ) 
boolean edu.mit.csail.sdg.squander.spec.MethodSpec.isPure (  ) 

Definition at line 67 of file MethodSpec.java.

References edu.mit.csail.sdg.squander.spec.MethodSpec.pure.

boolean edu.mit.csail.sdg.squander.spec.MethodSpec.isTrivial (  ) 
void edu.mit.csail.sdg.squander.spec.MethodSpec.makeHelper (  )  [package]
void edu.mit.csail.sdg.squander.spec.MethodSpec.makePure (  )  [package]
void edu.mit.csail.sdg.squander.spec.MethodSpec.mergeCasesWith ( MethodSpec  ms  )  [package]

Definition at line 140 of file MethodSpec.java.

References edu.mit.csail.sdg.squander.spec.MethodSpec.cases.

void edu.mit.csail.sdg.squander.spec.MethodSpec.translateSpecs ( ForgeEnv  env,
ForgeScene  forgeScene 
)
void edu.mit.csail.sdg.squander.spec.MethodSpec.typecheck ( JavaScene  javaScene  ) 

Member Data Documentation

final Map<JType.Unary, Integer> edu.mit.csail.sdg.squander.spec.MethodSpec.freshObj = new HashMap<JType.Unary, Integer>() [private]
final Map<String, CaseSource> edu.mit.csail.sdg.squander.spec.MethodSpec.pre2cs = new HashMap<String, CaseSource>() [private]

Definition at line 58 of file MethodSpec.java.

Referenced by edu.mit.csail.sdg.squander.spec.MethodSpec.addCase().


The documentation for this class was generated from the following file:
Generated by  doxygen 1.6.2-20100208