edu.umd.cs.findbugs.ba.type
Class ReturnAddressType

java.lang.Object
  extended by edu.umd.cs.findbugs.ba.type.ReturnAddressType
All Implemented Interfaces:
Type

public class ReturnAddressType
extends java.lang.Object
implements Type

Special return address type. This is the type of the value pushed onto the stack by a JSR instruction.

Author:
David Hovemeyer

Constructor Summary
ReturnAddressType()
           
 
Method Summary
 void accept(TypeVisitor visitor)
          Accept an TypeVisitor.
 boolean equals(java.lang.Object o)
           
 java.lang.String getSignature()
          Return the JVM type signature.
 int getTypeCode()
          Return the type code value as defined in org.apache.bcel.Constants or ExtendedTypes.
 int hashCode()
           
 boolean isBasicType()
          Is this type a basic type?
 boolean isReferenceType()
          Is this type a reference type?
 boolean isValidArrayBaseType()
          Is this a valid array base type?
 boolean isValidArrayElementType()
          Is this a valid array element type?
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReturnAddressType

ReturnAddressType()
Method Detail

getSignature

public java.lang.String getSignature()
Description copied from interface: Type
Return the JVM type signature. Note that some types do not have valid JVM signature representations. For example, the type of the null reference value cannot be represented as a signature. However, all basic types, class types, and array types have JVM signatures.

Specified by:
getSignature in interface Type

isBasicType

public boolean isBasicType()
Description copied from interface: Type
Is this type a basic type?

Specified by:
isBasicType in interface Type

isReferenceType

public boolean isReferenceType()
Description copied from interface: Type
Is this type a reference type?

Specified by:
isReferenceType in interface Type

isValidArrayElementType

public boolean isValidArrayElementType()
Description copied from interface: Type
Is this a valid array element type?

Specified by:
isValidArrayElementType in interface Type

isValidArrayBaseType

public boolean isValidArrayBaseType()
Description copied from interface: Type
Is this a valid array base type?

Specified by:
isValidArrayBaseType in interface Type

getTypeCode

public int getTypeCode()
Description copied from interface: Type
Return the type code value as defined in org.apache.bcel.Constants or ExtendedTypes.

Specified by:
getTypeCode in interface Type

accept

public void accept(TypeVisitor visitor)
Description copied from interface: Type
Accept an TypeVisitor.

Specified by:
accept in interface Type
Parameters:
visitor - the visitor

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object