org.apache.bcel.verifier.statics
Class StringRepresentation
java.lang.Object
  |
  +--org.apache.bcel.classfile.EmptyVisitor
        |
        +--org.apache.bcel.verifier.statics.StringRepresentation
- All Implemented Interfaces: 
- Visitor
- public class StringRepresentation- extends EmptyVisitor- implements Visitor
BCEL's Node classes (those from the classfile API that accept() Visitor
 instances) have toString() methods that were not designed to be robust,
 this gap is closed by this class.
 When performing class file verification, it may be useful to output which
 entity (e.g. a Code instance) is not satisfying the verifier's
 constraints, but in this case it could be possible for the toString()
 method to throw a RuntimeException.
 A (new StringRepresentation(Node n)).toString() never throws any exception.
 Note that this class also serves as a placeholder for more sophisticated message
 handling in future versions of JustIce.
- Version:
- $Id: StringRepresentation.java,v 1.5 2002/08/05 17:31:32 enver Exp $
- Author:
- Enver Haase
| Constructor Summary | 
| StringRepresentation(Node n)Creates a new StringRepresentation object which is the representation of n.
 | 
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
 
 
StringRepresentation
public StringRepresentation(Node n)
- Creates a new StringRepresentation object which is the representation of n.
 
- See Also:
- toString()
toString
public java.lang.String toString()
- Returns the String representation.
 
- 
- Overrides:
- toStringin class- java.lang.Object
 
- 
 
visitCode
public void visitCode(Code obj)
- 
- Specified by:
- visitCodein interface- Visitor
- Overrides:
- visitCodein class- EmptyVisitor
 
- 
 
visitCodeException
public void visitCodeException(CodeException obj)
- 
- Specified by:
- visitCodeExceptionin interface- Visitor
- Overrides:
- visitCodeExceptionin class- EmptyVisitor
 
- 
 
visitConstantClass
public void visitConstantClass(ConstantClass obj)
- 
- Specified by:
- visitConstantClassin interface- Visitor
- Overrides:
- visitConstantClassin class- EmptyVisitor
 
- 
 
visitConstantDouble
public void visitConstantDouble(ConstantDouble obj)
- 
- Specified by:
- visitConstantDoublein interface- Visitor
- Overrides:
- visitConstantDoublein class- EmptyVisitor
 
- 
 
visitConstantFieldref
public void visitConstantFieldref(ConstantFieldref obj)
- 
- Specified by:
- visitConstantFieldrefin interface- Visitor
- Overrides:
- visitConstantFieldrefin class- EmptyVisitor
 
- 
 
visitConstantFloat
public void visitConstantFloat(ConstantFloat obj)
- 
- Specified by:
- visitConstantFloatin interface- Visitor
- Overrides:
- visitConstantFloatin class- EmptyVisitor
 
- 
 
visitConstantInteger
public void visitConstantInteger(ConstantInteger obj)
- 
- Specified by:
- visitConstantIntegerin interface- Visitor
- Overrides:
- visitConstantIntegerin class- EmptyVisitor
 
- 
 
visitConstantInterfaceMethodref
public void visitConstantInterfaceMethodref(ConstantInterfaceMethodref obj)
- 
- Specified by:
- visitConstantInterfaceMethodrefin interface- Visitor
- Overrides:
- visitConstantInterfaceMethodrefin class- EmptyVisitor
 
- 
 
visitConstantLong
public void visitConstantLong(ConstantLong obj)
- 
- Specified by:
- visitConstantLongin interface- Visitor
- Overrides:
- visitConstantLongin class- EmptyVisitor
 
- 
 
visitConstantMethodref
public void visitConstantMethodref(ConstantMethodref obj)
- 
- Specified by:
- visitConstantMethodrefin interface- Visitor
- Overrides:
- visitConstantMethodrefin class- EmptyVisitor
 
- 
 
visitConstantNameAndType
public void visitConstantNameAndType(ConstantNameAndType obj)
- 
- Specified by:
- visitConstantNameAndTypein interface- Visitor
- Overrides:
- visitConstantNameAndTypein class- EmptyVisitor
 
- 
 
visitConstantPool
public void visitConstantPool(ConstantPool obj)
- 
- Specified by:
- visitConstantPoolin interface- Visitor
- Overrides:
- visitConstantPoolin class- EmptyVisitor
 
- 
 
visitConstantString
public void visitConstantString(ConstantString obj)
- 
- Specified by:
- visitConstantStringin interface- Visitor
- Overrides:
- visitConstantStringin class- EmptyVisitor
 
- 
 
visitConstantUtf8
public void visitConstantUtf8(ConstantUtf8 obj)
- 
- Specified by:
- visitConstantUtf8in interface- Visitor
- Overrides:
- visitConstantUtf8in class- EmptyVisitor
 
- 
 
visitConstantValue
public void visitConstantValue(ConstantValue obj)
- 
- Specified by:
- visitConstantValuein interface- Visitor
- Overrides:
- visitConstantValuein class- EmptyVisitor
 
- 
 
visitDeprecated
public void visitDeprecated(Deprecated obj)
- 
- Specified by:
- visitDeprecatedin interface- Visitor
- Overrides:
- visitDeprecatedin class- EmptyVisitor
 
- 
 
visitExceptionTable
public void visitExceptionTable(ExceptionTable obj)
- 
- Specified by:
- visitExceptionTablein interface- Visitor
- Overrides:
- visitExceptionTablein class- EmptyVisitor
 
- 
 
visitField
public void visitField(Field obj)
- 
- Specified by:
- visitFieldin interface- Visitor
- Overrides:
- visitFieldin class- EmptyVisitor
 
- 
 
visitInnerClass
public void visitInnerClass(InnerClass obj)
- 
- Specified by:
- visitInnerClassin interface- Visitor
- Overrides:
- visitInnerClassin class- EmptyVisitor
 
- 
 
visitInnerClasses
public void visitInnerClasses(InnerClasses obj)
- 
- Specified by:
- visitInnerClassesin interface- Visitor
- Overrides:
- visitInnerClassesin class- EmptyVisitor
 
- 
 
visitJavaClass
public void visitJavaClass(JavaClass obj)
- 
- Specified by:
- visitJavaClassin interface- Visitor
- Overrides:
- visitJavaClassin class- EmptyVisitor
 
- 
 
visitLineNumber
public void visitLineNumber(LineNumber obj)
- 
- Specified by:
- visitLineNumberin interface- Visitor
- Overrides:
- visitLineNumberin class- EmptyVisitor
 
- 
 
visitLineNumberTable
public void visitLineNumberTable(LineNumberTable obj)
- 
- Specified by:
- visitLineNumberTablein interface- Visitor
- Overrides:
- visitLineNumberTablein class- EmptyVisitor
 
- 
 
visitLocalVariable
public void visitLocalVariable(LocalVariable obj)
- 
- Specified by:
- visitLocalVariablein interface- Visitor
- Overrides:
- visitLocalVariablein class- EmptyVisitor
 
- 
 
visitLocalVariableTable
public void visitLocalVariableTable(LocalVariableTable obj)
- 
- Specified by:
- visitLocalVariableTablein interface- Visitor
- Overrides:
- visitLocalVariableTablein class- EmptyVisitor
 
- 
 
visitMethod
public void visitMethod(Method obj)
- 
- Specified by:
- visitMethodin interface- Visitor
- Overrides:
- visitMethodin class- EmptyVisitor
 
- 
 
visitSignature
public void visitSignature(Signature obj)
- 
- Specified by:
- visitSignaturein interface- Visitor
- Overrides:
- visitSignaturein class- EmptyVisitor
 
- 
 
visitSourceFile
public void visitSourceFile(SourceFile obj)
- 
- Specified by:
- visitSourceFilein interface- Visitor
- Overrides:
- visitSourceFilein class- EmptyVisitor
 
- 
 
visitStackMap
public void visitStackMap(StackMap obj)
- 
- Specified by:
- visitStackMapin interface- Visitor
- Overrides:
- visitStackMapin class- EmptyVisitor
 
- 
 
visitSynthetic
public void visitSynthetic(Synthetic obj)
- 
- Specified by:
- visitSyntheticin interface- Visitor
- Overrides:
- visitSyntheticin class- EmptyVisitor
 
- 
 
visitUnknown
public void visitUnknown(Unknown obj)
- 
- Specified by:
- visitUnknownin interface- Visitor
- Overrides:
- visitUnknownin class- EmptyVisitor
 
- 
 
Copyright © 2002-2003 Apache Software Foundation. All Rights Reserved.