Main Page   Packages   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

AnalysisAdapter.java

00001 package edu.ksu.cis.bandera.birp.analysis;
00002 
00003 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
00004  * Bandera, a Java(TM) analysis and transformation toolkit           *
00005  * Copyright (C) 1998-2001 SAnToS Laboratories (santos@cis.ksu.edu)  *
00006 
00007  * All rights reserved.                                              *
00008  *                                                                   *
00009  * This work was done as a project in the SAnToS Laboratory,         *
00010  * Department of Computing and Information Sciences, Kansas State    *
00011  * University, USA (http://www.cis.ksu.edu/santos).                  *
00012  * It is understood that any modification not identified as such is  *
00013  * not covered by the preceding statement.                           *
00014  *                                                                   *
00015  * This work is free software; you can redistribute it and/or        *
00016  * modify it under the terms of the GNU Library General Public       *
00017  * License as published by the Free Software Foundation; either      *
00018  * version 2 of the License, or (at your option) any later version.  *
00019  *                                                                   *
00020  * This work is distributed in the hope that it will be useful,      *
00021  * but WITHOUT ANY WARRANTY; without even the implied warranty of    *
00022  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU *
00023  * Library General Public License for more details.                  *
00024  *                                                                   *
00025  * You should have received a copy of the GNU Library General Public *
00026  * License along with this toolkit; if not, write to the             *
00027  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,      *
00028  * Boston, MA  02111-1307, USA.                                      *
00029  *                                                                   *
00030  * Java is a trademark of Sun Microsystems, Inc.                     *
00031  *                                                                   *
00032  * To submit a bug report, send a comment, or get the latest news on *
00033  * this project and other SAnToS projects, please visit the web-site *
00034  *                http://www.cis.ksu.edu/santos                      *
00035  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
00036 import ca.mcgill.sable.util.*;
00037 import java.util.*;
00038 import edu.ksu.cis.bandera.birp.node.*;
00039 
00040 public class AnalysisAdapter implements Analysis
00041 {
00042     private Hashtable in;
00043     private Hashtable out;
00044 
00045     public void caseAAllocation(AAllocation node)
00046     {
00047         defaultCase(node);
00048     }
00049     public void caseAAllocationAction(AAllocationAction node)
00050     {
00051         defaultCase(node);
00052     }
00053     public void caseAAndExpr6(AAndExpr6 node)
00054     {
00055         defaultCase(node);
00056     }
00057     public void caseAArraylength(AArraylength node)
00058     {
00059         defaultCase(node);
00060     }
00061     public void caseAArraylengthExpr0(AArraylengthExpr0 node)
00062     {
00063         defaultCase(node);
00064     }
00065     public void caseAArraylengthLhs(AArraylengthLhs node)
00066     {
00067         defaultCase(node);
00068     }
00069     public void caseAArrayselectExpr0(AArrayselectExpr0 node)
00070     {
00071         defaultCase(node);
00072     }
00073     public void caseAArrayselectLhs(AArrayselectLhs node)
00074     {
00075         defaultCase(node);
00076     }
00077     public void caseAArrayTypespec(AArrayTypespec node)
00078     {
00079         defaultCase(node);
00080     }
00081     public void caseAAssertaction(AAssertaction node)
00082     {
00083         defaultCase(node);
00084     }
00085     public void caseAAssertactionAction(AAssertactionAction node)
00086     {
00087         defaultCase(node);
00088     }
00089     public void caseAAssignment(AAssignment node)
00090     {
00091         defaultCase(node);
00092     }
00093     public void caseAAssignmentAction(AAssignmentAction node)
00094     {
00095         defaultCase(node);
00096     }
00097     public void caseAAtlocationThreadtest(AAtlocationThreadtest node)
00098     {
00099         defaultCase(node);
00100     }
00101     public void caseABooleanTypespec(ABooleanTypespec node)
00102     {
00103         defaultCase(node);
00104     }
00105     public void caseABoolValue(ABoolValue node)
00106     {
00107         defaultCase(node);
00108     }
00109     public void caseAChoice(AChoice node)
00110     {
00111         defaultCase(node);
00112     }
00113     public void caseAChoiceAction(AChoiceAction node)
00114     {
00115         defaultCase(node);
00116     }
00117     public void caseAChoicetail(AChoicetail node)
00118     {
00119         defaultCase(node);
00120     }
00121     public void caseACollection(ACollection node)
00122     {
00123         defaultCase(node);
00124     }
00125     public void caseACollectionGlobal(ACollectionGlobal node)
00126     {
00127         defaultCase(node);
00128     }
00129     public void caseAConstantDefinition(AConstantDefinition node)
00130     {
00131         defaultCase(node);
00132     }
00133     public void caseADefinedType(ADefinedType node)
00134     {
00135         defaultCase(node);
00136     }
00137     public void caseADivExpr2(ADivExpr2 node)
00138     {
00139         defaultCase(node);
00140     }
00141     public void caseAEmptyLiveset(AEmptyLiveset node)
00142     {
00143         defaultCase(node);
00144     }
00145     public void caseAEnumdeftail(AEnumdeftail node)
00146     {
00147         defaultCase(node);
00148     }
00149     public void caseAEnumeratedTypespec(AEnumeratedTypespec node)
00150     {
00151         defaultCase(node);
00152     }
00153     public void caseAEqExpr5(AEqExpr5 node)
00154     {
00155         defaultCase(node);
00156     }
00157     public void caseAExitThreadop(AExitThreadop node)
00158     {
00159         defaultCase(node);
00160     }
00161     public void caseAExpr(AExpr node)
00162     {
00163         defaultCase(node);
00164     }
00165     public void caseAExpr0Expr1(AExpr0Expr1 node)
00166     {
00167         defaultCase(node);
00168     }
00169     public void caseAExpr1Expr2(AExpr1Expr2 node)
00170     {
00171         defaultCase(node);
00172     }
00173     public void caseAExpr2Expr3(AExpr2Expr3 node)
00174     {
00175         defaultCase(node);
00176     }
00177     public void caseAExpr3Expr4(AExpr3Expr4 node)
00178     {
00179         defaultCase(node);
00180     }
00181     public void caseAExpr4Expr5(AExpr4Expr5 node)
00182     {
00183         defaultCase(node);
00184     }
00185     public void caseAExpr5Expr6(AExpr5Expr6 node)
00186     {
00187         defaultCase(node);
00188     }
00189     public void caseAExpr6Expr7(AExpr6Expr7 node)
00190     {
00191         defaultCase(node);
00192     }
00193     public void caseAFalseBool(AFalseBool node)
00194     {
00195         defaultCase(node);
00196     }
00197     public void caseAField(AField node)
00198     {
00199         defaultCase(node);
00200     }
00201     public void caseAFieldselectExpr0(AFieldselectExpr0 node)
00202     {
00203         defaultCase(node);
00204     }
00205     public void caseAFieldselectLhs(AFieldselectLhs node)
00206     {
00207         defaultCase(node);
00208     }
00209     public void caseAGeExpr4(AGeExpr4 node)
00210     {
00211         defaultCase(node);
00212     }
00213     public void caseAGtExpr4(AGtExpr4 node)
00214     {
00215         defaultCase(node);
00216     }
00217     public void caseAHaslockLocktestop(AHaslockLocktestop node)
00218     {
00219         defaultCase(node);
00220     }
00221     public void caseAIdConst(AIdConst node)
00222     {
00223         defaultCase(node);
00224     }
00225     public void caseAIdValue(AIdValue node)
00226     {
00227         defaultCase(node);
00228     }
00229     public void caseAInitializer(AInitializer node)
00230     {
00231         defaultCase(node);
00232     }
00233     public void caseAInstanceofExpr0(AInstanceofExpr0 node)
00234     {
00235         defaultCase(node);
00236     }
00237     public void caseAIntConst(AIntConst node)
00238     {
00239         defaultCase(node);
00240     }
00241     public void caseAIntegerValue(AIntegerValue node)
00242     {
00243         defaultCase(node);
00244     }
00245     public void caseAJoinThreadop(AJoinThreadop node)
00246     {
00247         defaultCase(node);
00248     }
00249     public void caseALeExpr4(ALeExpr4 node)
00250     {
00251         defaultCase(node);
00252     }
00253     public void caseALivevar(ALivevar node)
00254     {
00255         defaultCase(node);
00256     }
00257     public void caseALocation(ALocation node)
00258     {
00259         defaultCase(node);
00260     }
00261     public void caseALockavailableLocktestop(ALockavailableLocktestop node)
00262     {
00263         defaultCase(node);
00264     }
00265     public void caseALockLockOp(ALockLockOp node)
00266     {
00267         defaultCase(node);
00268     }
00269     public void caseALocktest(ALocktest node)
00270     {
00271         defaultCase(node);
00272     }
00273     public void caseALocktestExpr0(ALocktestExpr0 node)
00274     {
00275         defaultCase(node);
00276     }
00277     public void caseALockTypespec(ALockTypespec node)
00278     {
00279         defaultCase(node);
00280     }
00281     public void caseALockupdate(ALockupdate node)
00282     {
00283         defaultCase(node);
00284     }
00285     public void caseALockupdateAction(ALockupdateAction node)
00286     {
00287         defaultCase(node);
00288     }
00289     public void caseALtExpr4(ALtExpr4 node)
00290     {
00291         defaultCase(node);
00292     }
00293     public void caseAMinusExpr1(AMinusExpr1 node)
00294     {
00295         defaultCase(node);
00296     }
00297     public void caseAMinusExpr3(AMinusExpr3 node)
00298     {
00299         defaultCase(node);
00300     }
00301     public void caseAModExpr2(AModExpr2 node)
00302     {
00303         defaultCase(node);
00304     }
00305     public void caseAMorePrintargs(AMorePrintargs node)
00306     {
00307         defaultCase(node);
00308     }
00309     public void caseAMultExpr2(AMultExpr2 node)
00310     {
00311         defaultCase(node);
00312     }
00313     public void caseANameEnumconst(ANameEnumconst node)
00314     {
00315         defaultCase(node);
00316     }
00317     public void caseANamevalueEnumconst(ANamevalueEnumconst node)
00318     {
00319         defaultCase(node);
00320     }
00321     public void caseANonemptyLiveset(ANonemptyLiveset node)
00322     {
00323         defaultCase(node);
00324     }
00325     public void caseANoteqExpr5(ANoteqExpr5 node)
00326     {
00327         defaultCase(node);
00328     }
00329     public void caseANotExpr1(ANotExpr1 node)
00330     {
00331         defaultCase(node);
00332     }
00333     public void caseANotifyallLockOp(ANotifyallLockOp node)
00334     {
00335         defaultCase(node);
00336     }
00337     public void caseANotifyLockOp(ANotifyLockOp node)
00338     {
00339         defaultCase(node);
00340     }
00341     public void caseANullValue(ANullValue node)
00342     {
00343         defaultCase(node);
00344     }
00345     public void caseAOnePrintargs(AOnePrintargs node)
00346     {
00347         defaultCase(node);
00348     }
00349     public void caseAOrExpr7(AOrExpr7 node)
00350     {
00351         defaultCase(node);
00352     }
00353     public void caseAParenexprExpr0(AParenexprExpr0 node)
00354     {
00355         defaultCase(node);
00356     }
00357     public void caseAPlusExpr1(APlusExpr1 node)
00358     {
00359         defaultCase(node);
00360     }
00361     public void caseAPlusExpr3(APlusExpr3 node)
00362     {
00363         defaultCase(node);
00364     }
00365     public void caseAPredicate(APredicate node)
00366     {
00367         defaultCase(node);
00368     }
00369     public void caseAPredicates(APredicates node)
00370     {
00371         defaultCase(node);
00372     }
00373     public void caseAPrintaction(APrintaction node)
00374     {
00375         defaultCase(node);
00376     }
00377     public void caseAPrintactionAction(APrintactionAction node)
00378     {
00379         defaultCase(node);
00380     }
00381     public void caseAProcess(AProcess node)
00382     {
00383         defaultCase(node);
00384     }
00385     public void caseAProgram(AProgram node)
00386     {
00387         defaultCase(node);
00388     }
00389     public void caseARangeTypespec(ARangeTypespec node)
00390     {
00391         defaultCase(node);
00392     }
00393     public void caseARecordTypespec(ARecordTypespec node)
00394     {
00395         defaultCase(node);
00396     }
00397     public void caseAReftail(AReftail node)
00398     {
00399         defaultCase(node);
00400     }
00401     public void caseARefTypespec(ARefTypespec node)
00402     {
00403         defaultCase(node);
00404     }
00405     public void caseARefValue(ARefValue node)
00406     {
00407         defaultCase(node);
00408     }
00409     public void caseARemoterefExpr0(ARemoterefExpr0 node)
00410     {
00411         defaultCase(node);
00412     }
00413     public void caseAStartThreadop(AStartThreadop node)
00414     {
00415         defaultCase(node);
00416     }
00417     public void caseAStringPrintarg(AStringPrintarg node)
00418     {
00419         defaultCase(node);
00420     }
00421     public void caseATerminatedThreadtest(ATerminatedThreadtest node)
00422     {
00423         defaultCase(node);
00424     }
00425     public void caseAThread(AThread node)
00426     {
00427         defaultCase(node);
00428     }
00429     public void caseAThreadtestExpr0(AThreadtestExpr0 node)
00430     {
00431         defaultCase(node);
00432     }
00433     public void caseAThreadupdate(AThreadupdate node)
00434     {
00435         defaultCase(node);
00436     }
00437     public void caseAThreadupdateAction(AThreadupdateAction node)
00438     {
00439         defaultCase(node);
00440     }
00441     public void caseATransformation(ATransformation node)
00442     {
00443         defaultCase(node);
00444     }
00445     public void caseATrueBool(ATrueBool node)
00446     {
00447         defaultCase(node);
00448     }
00449     public void caseATypedefDefinition(ATypedefDefinition node)
00450     {
00451         defaultCase(node);
00452     }
00453     public void caseATypespecType(ATypespecType node)
00454     {
00455         defaultCase(node);
00456     }
00457     public void caseAUnlockLockOp(AUnlockLockOp node)
00458     {
00459         defaultCase(node);
00460     }
00461     public void caseAUnwaitLockOp(AUnwaitLockOp node)
00462     {
00463         defaultCase(node);
00464     }
00465     public void caseAValueExpr0(AValueExpr0 node)
00466     {
00467         defaultCase(node);
00468     }
00469     public void caseAValueLhs(AValueLhs node)
00470     {
00471         defaultCase(node);
00472     }
00473     public void caseAVariable(AVariable node)
00474     {
00475         defaultCase(node);
00476     }
00477     public void caseAVariableGlobal(AVariableGlobal node)
00478     {
00479         defaultCase(node);
00480     }
00481     public void caseAVarPrintarg(AVarPrintarg node)
00482     {
00483         defaultCase(node);
00484     }
00485     public void caseAWaitLockOp(AWaitLockOp node)
00486     {
00487         defaultCase(node);
00488     }
00489     public void caseAWasnotifiedLocktestop(AWasnotifiedLocktestop node)
00490     {
00491         defaultCase(node);
00492     }
00493     public void caseEOF(EOF node)
00494     {
00495         defaultCase(node);
00496     }
00497     public void caseStart(Start node)
00498     {
00499         defaultCase(node);
00500     }
00501     public void caseTAnd(TAnd node)
00502     {
00503         defaultCase(node);
00504     }
00505     public void caseTArray(TArray node)
00506     {
00507         defaultCase(node);
00508     }
00509     public void caseTAssert(TAssert node)
00510     {
00511         defaultCase(node);
00512     }
00513     public void caseTAssign(TAssign node)
00514     {
00515         defaultCase(node);
00516     }
00517     public void caseTAt(TAt node)
00518     {
00519         defaultCase(node);
00520     }
00521     public void caseTBar(TBar node)
00522     {
00523         defaultCase(node);
00524     }
00525     public void caseTBoolean(TBoolean node)
00526     {
00527         defaultCase(node);
00528     }
00529     public void caseTChoose(TChoose node)
00530     {
00531         defaultCase(node);
00532     }
00533     public void caseTCollection(TCollection node)
00534     {
00535         defaultCase(node);
00536     }
00537     public void caseTColon(TColon node)
00538     {
00539         defaultCase(node);
00540     }
00541     public void caseTComma(TComma node)
00542     {
00543         defaultCase(node);
00544     }
00545     public void caseTComment(TComment node)
00546     {
00547         defaultCase(node);
00548     }
00549     public void caseTDiv(TDiv node)
00550     {
00551         defaultCase(node);
00552     }
00553     public void caseTDo(TDo node)
00554     {
00555         defaultCase(node);
00556     }
00557     public void caseTDot(TDot node)
00558     {
00559         defaultCase(node);
00560     }
00561     public void caseTDotdot(TDotdot node)
00562     {
00563         defaultCase(node);
00564     }
00565     public void caseTEnd(TEnd node)
00566     {
00567         defaultCase(node);
00568     }
00569     public void caseTEnum(TEnum node)
00570     {
00571         defaultCase(node);
00572     }
00573     public void caseTEq(TEq node)
00574     {
00575         defaultCase(node);
00576     }
00577     public void caseTEquals(TEquals node)
00578     {
00579         defaultCase(node);
00580     }
00581     public void caseTExit(TExit node)
00582     {
00583         defaultCase(node);
00584     }
00585     public void caseTFalse(TFalse node)
00586     {
00587         defaultCase(node);
00588     }
00589     public void caseTGe(TGe node)
00590     {
00591         defaultCase(node);
00592     }
00593     public void caseTGoto(TGoto node)
00594     {
00595         defaultCase(node);
00596     }
00597     public void caseTGt(TGt node)
00598     {
00599         defaultCase(node);
00600     }
00601     public void caseTHaslock(THaslock node)
00602     {
00603         defaultCase(node);
00604     }
00605     public void caseTId(TId node)
00606     {
00607         defaultCase(node);
00608     }
00609     public void caseTInstanceof(TInstanceof node)
00610     {
00611         defaultCase(node);
00612     }
00613     public void caseTInt(TInt node)
00614     {
00615         defaultCase(node);
00616     }
00617     public void caseTInvisible(TInvisible node)
00618     {
00619         defaultCase(node);
00620     }
00621     public void caseTJoin(TJoin node)
00622     {
00623         defaultCase(node);
00624     }
00625     public void caseTLbrace(TLbrace node)
00626     {
00627         defaultCase(node);
00628     }
00629     public void caseTLbrack(TLbrack node)
00630     {
00631         defaultCase(node);
00632     }
00633     public void caseTLe(TLe node)
00634     {
00635         defaultCase(node);
00636     }
00637     public void caseTLength(TLength node)
00638     {
00639         defaultCase(node);
00640     }
00641     public void caseTLive(TLive node)
00642     {
00643         defaultCase(node);
00644     }
00645     public void caseTLoc(TLoc node)
00646     {
00647         defaultCase(node);
00648     }
00649     public void caseTLock(TLock node)
00650     {
00651         defaultCase(node);
00652     }
00653     public void caseTLockavailable(TLockavailable node)
00654     {
00655         defaultCase(node);
00656     }
00657     public void caseTLparen(TLparen node)
00658     {
00659         defaultCase(node);
00660     }
00661     public void caseTLt(TLt node)
00662     {
00663         defaultCase(node);
00664     }
00665     public void caseTMain(TMain node)
00666     {
00667         defaultCase(node);
00668     }
00669     public void caseTMinus(TMinus node)
00670     {
00671         defaultCase(node);
00672     }
00673     public void caseTMod(TMod node)
00674     {
00675         defaultCase(node);
00676     }
00677     public void caseTMult(TMult node)
00678     {
00679         defaultCase(node);
00680     }
00681     public void caseTNew(TNew node)
00682     {
00683         defaultCase(node);
00684     }
00685     public void caseTNot(TNot node)
00686     {
00687         defaultCase(node);
00688     }
00689     public void caseTNoteq(TNoteq node)
00690     {
00691         defaultCase(node);
00692     }
00693     public void caseTNotify(TNotify node)
00694     {
00695         defaultCase(node);
00696     }
00697     public void caseTNotifyall(TNotifyall node)
00698     {
00699         defaultCase(node);
00700     }
00701     public void caseTNull(TNull node)
00702     {
00703         defaultCase(node);
00704     }
00705     public void caseTOf(TOf node)
00706     {
00707         defaultCase(node);
00708     }
00709     public void caseTOr(TOr node)
00710     {
00711         defaultCase(node);
00712     }
00713     public void caseTPlus(TPlus node)
00714     {
00715         defaultCase(node);
00716     }
00717     public void caseTPredicates(TPredicates node)
00718     {
00719         defaultCase(node);
00720     }
00721     public void caseTPrintln(TPrintln node)
00722     {
00723         defaultCase(node);
00724     }
00725     public void caseTProcess(TProcess node)
00726     {
00727         defaultCase(node);
00728     }
00729     public void caseTRange(TRange node)
00730     {
00731         defaultCase(node);
00732     }
00733     public void caseTRbrace(TRbrace node)
00734     {
00735         defaultCase(node);
00736     }
00737     public void caseTRbrack(TRbrack node)
00738     {
00739         defaultCase(node);
00740     }
00741     public void caseTRecord(TRecord node)
00742     {
00743         defaultCase(node);
00744     }
00745     public void caseTReentrant(TReentrant node)
00746     {
00747         defaultCase(node);
00748     }
00749     public void caseTRef(TRef node)
00750     {
00751         defaultCase(node);
00752     }
00753     public void caseTRparen(TRparen node)
00754     {
00755         defaultCase(node);
00756     }
00757     public void caseTSemicolon(TSemicolon node)
00758     {
00759         defaultCase(node);
00760     }
00761     public void caseTStart(TStart node)
00762     {
00763         defaultCase(node);
00764     }
00765     public void caseTString(TString node)
00766     {
00767         defaultCase(node);
00768     }
00769     public void caseTThread(TThread node)
00770     {
00771         defaultCase(node);
00772     }
00773     public void caseTThreadterminated(TThreadterminated node)
00774     {
00775         defaultCase(node);
00776     }
00777     public void caseTTrue(TTrue node)
00778     {
00779         defaultCase(node);
00780     }
00781     public void caseTUnlock(TUnlock node)
00782     {
00783         defaultCase(node);
00784     }
00785     public void caseTUnwait(TUnwait node)
00786     {
00787         defaultCase(node);
00788     }
00789     public void caseTWait(TWait node)
00790     {
00791         defaultCase(node);
00792     }
00793     public void caseTWasnotified(TWasnotified node)
00794     {
00795         defaultCase(node);
00796     }
00797     public void caseTWhen(TWhen node)
00798     {
00799         defaultCase(node);
00800     }
00801     public void caseTWhitespace(TWhitespace node)
00802     {
00803         defaultCase(node);
00804     }
00805     public void defaultCase(Node node)
00806     {
00807     }
00808     public Object getIn(Node node)
00809     {
00810         if(in == null)
00811         {
00812             return null;
00813         }
00814 
00815         return in.get(node);
00816     }
00817     public Object getOut(Node node)
00818     {
00819         if(out == null)
00820         {
00821             return null;
00822         }
00823 
00824         return out.get(node);
00825     }
00826     public void setIn(Node node, Object in)
00827     {
00828         if(this.in == null)
00829         {
00830             this.in = new Hashtable(1);
00831         }
00832 
00833         if(in != null)
00834         {
00835             this.in.put(node, in);
00836         }
00837         else
00838         {
00839             this.in.remove(node);
00840         }
00841     }
00842     public void setOut(Node node, Object out)
00843     {
00844         if(this.out == null)
00845         {
00846             this.out = new Hashtable(1);
00847         }
00848 
00849         if(out != null)
00850         {
00851             this.out.put(node, out);
00852         }
00853         else
00854         {
00855             this.out.remove(node);
00856         }
00857     }
00858 }

Generated at Thu Feb 7 06:38:22 2002 for Bandera by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001