1 17 package org.apache.bcel.verifier; 18 19 import java.util.ArrayList ; 20 import java.util.List ; 21 22 48 public abstract class PassVerifier { 49 50 51 private List messages = new ArrayList (); 53 private VerificationResult verificationResult = null; 54 55 56 69 public VerificationResult verify() { 70 if (verificationResult == null) { 71 verificationResult = do_verify(); 72 } 73 return verificationResult; 74 } 75 76 77 78 public abstract VerificationResult do_verify(); 79 80 81 89 public void addMessage( String message ) { 90 messages.add(message); 91 } 92 93 94 101 public String [] getMessages() { 102 verify(); return (String []) messages.toArray(new String [messages.size()]); 104 } 105 } 106 | Popular Tags |