Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse JDT
Release 3.5

org.eclipse.jdt.core.util
Interface ICodeAttribute

All Superinterfaces:
IClassFileAttribute

public interface ICodeAttribute
extends IClassFileAttribute

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

Since:
2.0

Method Summary
  IClassFileAttribute[] getAttributes ()
          Answer back the collection of all attributes of the field info.
 int getAttributesCount ()
          Answer back the attribute number of the code attribute.
 byte[] getBytecodes ()
          Answer back the array of bytes, which represents all the opcodes as described in the JVM specifications.
 long getCodeLength ()
          Answer back the length of the bytecode contents.
  IExceptionTableEntry[] getExceptionTable ()
          Answer back the array of exception entries, if they are present.
 int getExceptionTableLength ()
          Answer back the exception table length of the code attribute.
  ILineNumberAttribute getLineNumberAttribute ()
          Answer back the line number attribute, if it exists, null otherwise.
  ILocalVariableAttribute getLocalVariableAttribute ()
          Answer back the local variable attribute, if it exists, null otherwise.
 int getMaxLocals ()
          Answer back the max locals value of the code attribute.
 int getMaxStack ()
          Answer back the max stack value of the code attribute.
 void traverse ( IBytecodeVisitor visitor)
          Define a Java opcodes walker.
 
Methods inherited from interface org.eclipse.jdt.core.util. IClassFileAttribute
getAttributeLength, getAttributeName, getAttributeNameIndex
 

Method Detail

getMaxLocals

int getMaxLocals()
Answer back the max locals value of the code attribute.

Returns:
the max locals value of the code attribute

getMaxStack

int getMaxStack()
Answer back the max stack value of the code attribute.

Returns:
the max stack value of the code attribute

getLineNumberAttribute


ILineNumberAttribute getLineNumberAttribute()
Answer back the line number attribute, if it exists, null otherwise.

Returns:
the line number attribute, if it exists, null otherwise

getLocalVariableAttribute


ILocalVariableAttribute getLocalVariableAttribute()
Answer back the local variable attribute, if it exists, null otherwise.

Returns:
the local variable attribute, if it exists, null otherwise

getExceptionTable


IExceptionTableEntry[] getExceptionTable()
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

getBytecodes

byte[] getBytecodes()
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

getCodeLength

long getCodeLength()
Answer back the length of the bytecode contents.

Returns:
the length of the bytecode contents

getAttributesCount

int getAttributesCount()
Answer back the attribute number of the code attribute.

Returns:
the attribute number of the code attribute

getAttributes


IClassFileAttribute[] getAttributes()
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

getExceptionTableLength

int getExceptionTableLength()
Answer back the exception table length of the code attribute.

Returns:
the exception table length of the code attribute

traverse

void traverse(
IBytecodeVisitor visitor)
              throws 
ClassFormatException
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

Eclipse JDT
Release 3.5

Copyright (c) IBM Corp. and others 2000, 2008. All Rights Reserved.

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire