jbet
Class MethodInfo

java.lang.Object
  extended by jbet.MethodSignature
      extended by jbet.MethodInfo

public class MethodInfo
extends MethodSignature


Field Summary
static int ACC_ABSTRACT
           
static int ACC_ALL_MFLAGS
           
static int ACC_FINAL
           
static int ACC_NATIVE
           
static int ACC_PRIVATE
           
static int ACC_PROTECTED
           
static int ACC_PUBLIC
           
static int ACC_STATIC
           
static int ACC_STRICT
           
static int ACC_SYNCHRONIZED
           
 java.util.Vector attrHints
           
 Snippit code
           
 java.util.Vector codeAttrHints
           
 ClassInfo cr
           
 boolean deprecated
           
 boolean invalid_limits
           
static java.lang.String JbetLogFacility
           
 int maxLocals
           
 int maxStack
           
 boolean synthetic
           
 
Fields inherited from class jbet.MethodSignature
accessFlags, classname, dags, descriptor, exceptions, name
 
Constructor Summary
MethodInfo()
           
MethodInfo(java.io.DataInputStream dataIn, jbet.ConstantPool constantPool)
           
MethodInfo(Lexer lexer)
           
MethodInfo(MethodInfo mi)
           
MethodInfo(java.lang.String n, Descriptor d)
           
MethodInfo(java.lang.String n, Descriptor d, int acc)
           
 
Method Summary
 void addLinesAsPCs()
           
 InternSet allCalls()
           
 boolean calls(MethodInfo other)
           
 boolean checkAccess(ClassInfo cr2)
           
 boolean checkAccess(java.lang.String fromPackage)
           
 java.lang.Object classrep()
           
 void disassemble(LineWriter out, java.lang.String prefix)
           
 boolean equals(java.lang.Object o)
           
 boolean icalls(MethodInfo other)
           
 boolean isNative()
           
 boolean isOverridden()
           
 boolean isStatic()
           
 boolean isVirtual()
           
 void printCalls(LineWriter out)
           
 void printout(LineWriter out, boolean summarize)
           
 void printout(LineWriter out, boolean summarize, boolean printlines, boolean printlocals, boolean printcounts)
           
 java.lang.String qualifiedName()
           
 boolean recursive()
           
 void removeDataFlow()
           
 MethodInfo resolve()
           
 void resolveConstants()
           
 
Methods inherited from class jbet.MethodSignature
resolveAny
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JbetLogFacility

public static java.lang.String JbetLogFacility

attrHints

public java.util.Vector attrHints

maxStack

public int maxStack

maxLocals

public int maxLocals

code

public Snippit code

codeAttrHints

public java.util.Vector codeAttrHints

invalid_limits

public boolean invalid_limits

synthetic

public boolean synthetic

deprecated

public boolean deprecated

cr

public ClassInfo cr

ACC_PUBLIC

public static final int ACC_PUBLIC
See Also:
Constant Field Values

ACC_PRIVATE

public static final int ACC_PRIVATE
See Also:
Constant Field Values

ACC_PROTECTED

public static final int ACC_PROTECTED
See Also:
Constant Field Values

ACC_STATIC

public static final int ACC_STATIC
See Also:
Constant Field Values

ACC_FINAL

public static final int ACC_FINAL
See Also:
Constant Field Values

ACC_SYNCHRONIZED

public static final int ACC_SYNCHRONIZED
See Also:
Constant Field Values

ACC_NATIVE

public static final int ACC_NATIVE
See Also:
Constant Field Values

ACC_ABSTRACT

public static final int ACC_ABSTRACT
See Also:
Constant Field Values

ACC_STRICT

public static final int ACC_STRICT
See Also:
Constant Field Values

ACC_ALL_MFLAGS

public static final int ACC_ALL_MFLAGS
See Also:
Constant Field Values
Constructor Detail

MethodInfo

public MethodInfo()

MethodInfo

public MethodInfo(Lexer lexer)
           throws ClassFileException
Throws:
ClassFileException

MethodInfo

public MethodInfo(java.lang.String n,
                  Descriptor d,
                  int acc)

MethodInfo

public MethodInfo(java.lang.String n,
                  Descriptor d)

MethodInfo

public MethodInfo(MethodInfo mi)

MethodInfo

public MethodInfo(java.io.DataInputStream dataIn,
                  jbet.ConstantPool constantPool)
           throws java.io.IOException,
                  ClassFileException
Throws:
java.io.IOException
ClassFileException
Method Detail

classrep

public java.lang.Object classrep()
Overrides:
classrep in class MethodSignature

resolve

public MethodInfo resolve()
                   throws ClassFileException
Overrides:
resolve in class MethodSignature
Throws:
ClassFileException

disassemble

public void disassemble(LineWriter out,
                        java.lang.String prefix)

checkAccess

public boolean checkAccess(java.lang.String fromPackage)

checkAccess

public boolean checkAccess(ClassInfo cr2)
                    throws ClassFileException
Throws:
ClassFileException

resolveConstants

public void resolveConstants()

removeDataFlow

public void removeDataFlow()

printout

public void printout(LineWriter out,
                     boolean summarize)

printout

public void printout(LineWriter out,
                     boolean summarize,
                     boolean printlines,
                     boolean printlocals,
                     boolean printcounts)

isStatic

public boolean isStatic()

isVirtual

public boolean isVirtual()

isNative

public boolean isNative()

addLinesAsPCs

public void addLinesAsPCs()

equals

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

qualifiedName

public java.lang.String qualifiedName()

calls

public boolean calls(MethodInfo other)

icalls

public boolean icalls(MethodInfo other)

recursive

public boolean recursive()

allCalls

public InternSet allCalls()

printCalls

public void printCalls(LineWriter out)

isOverridden

public boolean isOverridden()
                     throws ClassFileException
Throws:
ClassFileException