Klasse CodeAttribute
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.util.ClassFileStruct
org.aspectj.org.eclipse.jdt.internal.core.util.ClassFileAttribute
org.aspectj.org.eclipse.jdt.internal.core.util.CodeAttribute
- Alle implementierten Schnittstellen:
IClassFileAttribute
,ICodeAttribute
Default implementation of ICodeAttribute.
-
Feldübersicht
Von Klasse geerbte Felder org.aspectj.org.eclipse.jdt.internal.core.util.ClassFileAttribute
NO_ATTRIBUTES
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungAnswer back the collection of all attributes of the field info.int
Answer back the attribute number of the code attribute.byte[]
Answer back the array of bytes, which represents all the opcodes as described in the JVM specifications.long
Answer back the length of the bytecode contents.Answer back the array of exception entries, if they are present.int
Answer back the exception table length of the code attribute.Answer back the line number attribute, if it exists, null otherwise.Answer back the local variable attribute, if it exists, null otherwise.int
Answer back the max locals value of the code attribute.int
Answer back the max stack value of the code attribute.void
traverse
(IBytecodeVisitor visitor) Define a Java opcodes walker.Von Klasse geerbte Methoden org.aspectj.org.eclipse.jdt.internal.core.util.ClassFileAttribute
getAttributeLength, getAttributeName, getAttributeNameIndex
Von Klasse geerbte Methoden org.aspectj.org.eclipse.jdt.internal.core.util.ClassFileStruct
doubleAt, floatAt, i1At, i2At, i4At, i8At, u1At, u2At, u4At, utf8At
Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Von Schnittstelle geerbte Methoden org.aspectj.org.eclipse.jdt.core.util.IClassFileAttribute
getAttributeLength, getAttributeName, getAttributeNameIndex
-
Methodendetails
-
getAttributes
Beschreibung aus Schnittstelle kopiert:ICodeAttribute
Answer back the collection of all attributes of the field info. It includes the LineNumberAttribute and the LocalVariableTableAttribute. Returns an empty collection if none.- Angegeben von:
getAttributes
in SchnittstelleICodeAttribute
- Gibt zurück:
- the collection of all attributes of the field info. It includes the LineNumberAttribute and the LocalVariableTableAttribute. Returns an empty collection if none
- Siehe auch:
-
getAttributesCount
public int getAttributesCount()Beschreibung aus Schnittstelle kopiert:ICodeAttribute
Answer back the attribute number of the code attribute.- Angegeben von:
getAttributesCount
in SchnittstelleICodeAttribute
- Gibt zurück:
- the attribute number of the code attribute
- Siehe auch:
-
getBytecodes
public byte[] getBytecodes()Beschreibung aus Schnittstelle kopiert:ICodeAttribute
Answer back the array of bytes, which represents all the opcodes as described in the JVM specifications.- Angegeben von:
getBytecodes
in SchnittstelleICodeAttribute
- Gibt zurück:
- the array of bytes, which represents all the opcodes as described in the JVM specifications
- Siehe auch:
-
getCodeLength
public long getCodeLength()Beschreibung aus Schnittstelle kopiert:ICodeAttribute
Answer back the length of the bytecode contents.- Angegeben von:
getCodeLength
in SchnittstelleICodeAttribute
- Gibt zurück:
- the length of the bytecode contents
- Siehe auch:
-
getExceptionTable
Beschreibung aus Schnittstelle kopiert:ICodeAttribute
Answer back the array of exception entries, if they are present. An empty array otherwise.- Angegeben von:
getExceptionTable
in SchnittstelleICodeAttribute
- Gibt zurück:
- the array of exception entries, if they are present. An empty array otherwise
- Siehe auch:
-
getExceptionTableLength
public int getExceptionTableLength()Beschreibung aus Schnittstelle kopiert:ICodeAttribute
Answer back the exception table length of the code attribute.- Angegeben von:
getExceptionTableLength
in SchnittstelleICodeAttribute
- Gibt zurück:
- the exception table length of the code attribute
- Siehe auch:
-
getLineNumberAttribute
Beschreibung aus Schnittstelle kopiert:ICodeAttribute
Answer back the line number attribute, if it exists, null otherwise.- Angegeben von:
getLineNumberAttribute
in SchnittstelleICodeAttribute
- Gibt zurück:
- the line number attribute, if it exists, null otherwise
- Siehe auch:
-
getLocalVariableAttribute
Beschreibung aus Schnittstelle kopiert:ICodeAttribute
Answer back the local variable attribute, if it exists, null otherwise.- Angegeben von:
getLocalVariableAttribute
in SchnittstelleICodeAttribute
- Gibt zurück:
- the local variable attribute, if it exists, null otherwise
- Siehe auch:
-
getMaxLocals
public int getMaxLocals()Beschreibung aus Schnittstelle kopiert:ICodeAttribute
Answer back the max locals value of the code attribute.- Angegeben von:
getMaxLocals
in SchnittstelleICodeAttribute
- Gibt zurück:
- the max locals value of the code attribute
- Siehe auch:
-
getMaxStack
public int getMaxStack()Beschreibung aus Schnittstelle kopiert:ICodeAttribute
Answer back the max stack value of the code attribute.- Angegeben von:
getMaxStack
in SchnittstelleICodeAttribute
- Gibt zurück:
- the max stack value of the code attribute
- Siehe auch:
-
traverse
Beschreibung aus Schnittstelle kopiert:ICodeAttribute
Define a Java opcodes walker. All actions are defined in the visitor.- Angegeben von:
traverse
in SchnittstelleICodeAttribute
- Parameter:
visitor
- The visitor to use to walk the opcodes.- Löst aus:
ClassFormatException
- Exception thrown if the opcodes contain invalid bytes- Siehe auch:
-