Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (322)
Collections:
Other Resources:
Apache BCEL Source Code Files
Apache BCEL Source Code Files are inside the Apache BCEL source package file
like bcel-6.6.1-src.zip.
Unzip the source package file and go to the "src/main" sub-directory,
you will see source code files.
Here is the list of Java source code files of the Apache BCEL 6.6.1 in \Users\fyicenter\bcel-6.6.1\src:
✍: FYIcenter
⏎ org/apache/bcel/verifier/VerificationResult.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.bcel.verifier; /** * A VerificationResult is what a PassVerifier returns after verifying. */ public class VerificationResult { /** * Constant to indicate verification has not been tried yet. This happens if some earlier verification pass did not * return VERIFIED_OK. */ public static final int VERIFIED_NOTYET = 0; /** Constant to indicate verification was passed. */ public static final int VERIFIED_OK = 1; /** Constant to indicate verfication failed. */ public static final int VERIFIED_REJECTED = 2; /** * This string is the canonical message for verifications that have not been tried yet. This happens if some earlier * verification pass did not return {@link #VERIFIED_OK}. */ private static final String VERIFIED_NOTYET_MSG = "Not yet verified."; /** This string is the canonical message for passed verification passes. */ private static final String VERIFIED_OK_MSG = "Passed verification."; /** * Canonical VerificationResult for not-yet-tried verifications. This happens if some earlier verification pass did not * return {@link #VERIFIED_OK}. */ public static final VerificationResult VR_NOTYET = new VerificationResult(VERIFIED_NOTYET, VERIFIED_NOTYET_MSG); /** Canonical VerificationResult for passed verifications. */ public static final VerificationResult VR_OK = new VerificationResult(VERIFIED_OK, VERIFIED_OK_MSG); /** The numeric status. */ private final int numeric; /** The detailed message. */ private final String detailMessage; /** The usual constructor. */ public VerificationResult(final int status, final String message) { numeric = status; detailMessage = message; } /** * Returns if two VerificationResult instances are equal. */ @Override public boolean equals(final Object o) { if (!(o instanceof VerificationResult)) { return false; } final VerificationResult other = (VerificationResult) o; return other.numeric == this.numeric && other.detailMessage.equals(this.detailMessage); } /** Returns a detailed message. */ public String getMessage() { return detailMessage; } /** * Returns one of the {@link #VERIFIED_OK}, {@link #VERIFIED_NOTYET}, {@link #VERIFIED_REJECTED} constants. */ public int getStatus() { return numeric; } /** * @return a hash code value for the object. */ @Override public int hashCode() { return numeric ^ detailMessage.hashCode(); } /** * Returns a String representation of the VerificationResult. */ @Override public String toString() { String ret = ""; if (numeric == VERIFIED_NOTYET) { ret = "VERIFIED_NOTYET"; } if (numeric == VERIFIED_OK) { ret = "VERIFIED_OK"; } if (numeric == VERIFIED_REJECTED) { ret = "VERIFIED_REJECTED"; } ret += "\n" + detailMessage + "\n"; return ret; } }
⏎ org/apache/bcel/verifier/VerificationResult.java
Or download all of them as a single archive file:
File name: bcel-6.6.1-sources.jar File size: 688374 bytes Release date: 2022-09-18 Download
⇒ Install Apache BCEL 6.5.0 Binary Package
⇐ Download and Install Apache BCEL Source Package
2021-08-21, 90290👍, 0💬
Popular Posts:
What is the dom\GetElementsByTagName .javaprovided in the Apache Xerces package? I have Apache Xerce...
JLayer is a library that decodes/plays/converts MPEG 1/2/2.5 Layer 1/2/3 (i.e. MP3) in real time for...
How to download and install JDK (Java Development Kit) 6? If you want to write Java applications, yo...
Apache Log4j SLF4J Binding allows applications coded to the SLF4J API to use Log4j 2 as the implemen...
Apache Axis2 is the core engine for Web services. It is a complete re-design and re-write of the wid...