Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2000, 2009 IBM Corporation and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html Contributors: IBM Corporation - initial API and implementation /
 
 package org.eclipse.jdt.core.util;

Description of a code attribute as described in the JVM specifications. This interface may be implemented by clients.

Since:
2.0
 
 public interface ICodeAttribute extends IClassFileAttribute {
Answer back the max locals value of the code attribute.

Returns:
the max locals value of the code attribute
 
 	int getMaxLocals();

Answer back the max stack value of the code attribute.

Returns:
the max stack value of the code attribute
 
 	int getMaxStack();

Answer back the line number attribute, if it exists, null otherwise.

Returns:
the line number attribute, if it exists, null otherwise
 
Answer back the local variable attribute, if it exists, null otherwise.

Returns:
the local variable attribute, if it exists, null otherwise
 
Answer back the array of exception entries, if they are present. An empty array otherwise.

Returns:
the array of exception entries, if they are present. An empty array otherwise
 
Answer back the array of bytes, which represents all the opcodes as described in the JVM specifications.

Returns:
the array of bytes, which represents all the opcodes as described in the JVM specifications
 
 	byte[] getBytecodes();

Answer back the length of the bytecode contents.

Returns:
the length of the bytecode contents
 
 	long getCodeLength();

Answer back the attribute number of the code attribute.

Returns:
the attribute number of the code attribute
 
Answer back the collection of all attributes of the field info. It includes the LineNumberAttribute and the LocalVariableTableAttribute. Returns an empty collection if none.

Returns:
the collection of all attributes of the field info. It includes the LineNumberAttribute and the LocalVariableTableAttribute. Returns an empty collection if none
 
Answer back the exception table length of the code attribute.

Returns:
the exception table length of the code attribute
 
Define a Java opcodes walker. All actions are defined in the visitor.

Parameters:
visitor The visitor to use to walk the opcodes.
Throws:
ClassFormatException Exception thrown if the opcodes contain invalid bytes
New to GrepCode? Check out our FAQ X