"

2013 FRC Java API

"

com.sun.squawk
Class MethodMetadata

java.lang.Object
  extended by com.sun.squawk.MethodMetadata
Direct Known Subclasses:
FullMethodMetadata

public class MethodMetadata
extends Object

A MethodMetadata instance represents all the information about a method body that is not absolutely required for execution. This includes the information found in the JVM LineNumberTable class file attributes.


Method Summary
static int binarySearch(MethodMetadata[] a, int keyOffset)
          Search through the array of MethodMetadata looking for the metadata for the method with vtable/stable index keyOffset.
 int[] getLineNumberTable()
          Gets the table mapping instruction addresses to the source line numbers that start at the addresses.
 ScopedLocalVariable[] getLocalVariableTable()
          Gets a table describing the scope, name and type of each local variable in the method.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getLineNumberTable

public final int[] getLineNumberTable()
Gets the table mapping instruction addresses to the source line numbers that start at the addresses. The table is encoded as an int array where the high 16-bits of each element is an instruction address and the low 16-bits is the corresponding source line.

Returns:
the line number table or null if there is no line number information for the method

getLocalVariableTable

public ScopedLocalVariable[] getLocalVariableTable()
Gets a table describing the scope, name and type of each local variable in the method.

Returns:
the local variable table or null if there is no local variable information for the method

binarySearch

public static int binarySearch(MethodMetadata[] a,
                               int keyOffset)
Search through the array of MethodMetadata looking for the metadata for the method with vtable/stable index keyOffset.

Parameters:
a - array of metadata
keyOffset - the offset of the method in the static/virtual method table.
Returns:
the index into the MethodMetadata array, or -1 if not found.

"

2013 FRC Java API

"

"
For updated information see the Java FRC site
"