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.intAnswer 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.longAnswer back the length of the bytecode contents.Answer back the array of exception entries, if they are present.intAnswer 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.intAnswer back the max locals value of the code attribute.intAnswer back the max stack value of the code attribute.voidtraverse(IBytecodeVisitor visitor) Define a Java opcodes walker.Von Klasse geerbte Methoden org.aspectj.org.eclipse.jdt.internal.core.util.ClassFileAttribute
getAttributeLength, getAttributeName, getAttributeNameIndexVon Klasse geerbte Methoden org.aspectj.org.eclipse.jdt.internal.core.util.ClassFileStruct
doubleAt, floatAt, i1At, i2At, i4At, i8At, u1At, u2At, u4At, utf8AtVon Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden org.aspectj.org.eclipse.jdt.core.util.IClassFileAttribute
getAttributeLength, getAttributeName, getAttributeNameIndex
-
Methodendetails
-
getAttributes
Beschreibung aus Schnittstelle kopiert:ICodeAttributeAnswer 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:
getAttributesin 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:ICodeAttributeAnswer back the attribute number of the code attribute.- Angegeben von:
getAttributesCountin SchnittstelleICodeAttribute- Gibt zurück:
- the attribute number of the code attribute
- Siehe auch:
-
getBytecodes
public byte[] getBytecodes()Beschreibung aus Schnittstelle kopiert:ICodeAttributeAnswer back the array of bytes, which represents all the opcodes as described in the JVM specifications.- Angegeben von:
getBytecodesin 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:ICodeAttributeAnswer back the length of the bytecode contents.- Angegeben von:
getCodeLengthin SchnittstelleICodeAttribute- Gibt zurück:
- the length of the bytecode contents
- Siehe auch:
-
getExceptionTable
Beschreibung aus Schnittstelle kopiert:ICodeAttributeAnswer back the array of exception entries, if they are present. An empty array otherwise.- Angegeben von:
getExceptionTablein 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:ICodeAttributeAnswer back the exception table length of the code attribute.- Angegeben von:
getExceptionTableLengthin SchnittstelleICodeAttribute- Gibt zurück:
- the exception table length of the code attribute
- Siehe auch:
-
getLineNumberAttribute
Beschreibung aus Schnittstelle kopiert:ICodeAttributeAnswer back the line number attribute, if it exists, null otherwise.- Angegeben von:
getLineNumberAttributein SchnittstelleICodeAttribute- Gibt zurück:
- the line number attribute, if it exists, null otherwise
- Siehe auch:
-
getLocalVariableAttribute
Beschreibung aus Schnittstelle kopiert:ICodeAttributeAnswer back the local variable attribute, if it exists, null otherwise.- Angegeben von:
getLocalVariableAttributein SchnittstelleICodeAttribute- Gibt zurück:
- the local variable attribute, if it exists, null otherwise
- Siehe auch:
-
getMaxLocals
public int getMaxLocals()Beschreibung aus Schnittstelle kopiert:ICodeAttributeAnswer back the max locals value of the code attribute.- Angegeben von:
getMaxLocalsin SchnittstelleICodeAttribute- Gibt zurück:
- the max locals value of the code attribute
- Siehe auch:
-
getMaxStack
public int getMaxStack()Beschreibung aus Schnittstelle kopiert:ICodeAttributeAnswer back the max stack value of the code attribute.- Angegeben von:
getMaxStackin SchnittstelleICodeAttribute- Gibt zurück:
- the max stack value of the code attribute
- Siehe auch:
-
traverse
Beschreibung aus Schnittstelle kopiert:ICodeAttributeDefine a Java opcodes walker. All actions are defined in the visitor.- Angegeben von:
traversein 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:
-