Top Description Fields Constructors Methods
org.eclipse.persistence.internal.libraries.asm.tree

public Class LocalVariableAnnotationNode

extends TypeAnnotationNode
Class Inheritance
Imports
java.util.List, org.eclipse.persistence.internal.libraries.asm.Label, .MethodVisitor, .Opcodes, .TypePath

A node that represents a type annotation on a local or resource variable.
Author
Eric Bruneton

Field Summary

Modifier and TypeField and Description
public List<LabelNode>
end

The last instructions corresponding to the continuous ranges that make the scope of this local variable (exclusive).

public List<Integer>
index

The local variable's index in each range.

public List<LabelNode>
start

The fist instructions corresponding to the continuous ranges that make the scope of this local variable (inclusive).

Inherited from org.eclipse.persistence.internal.libraries.asm.tree.TypeAnnotationNode:
typePathtypeRef

Constructor Summary

AccessConstructor and Description
public
LocalVariableAnnotationNode(final int
a reference to the annotated type. See org.eclipse.persistence.internal.libraries.asm.TypeReference.
typeRef
,
final TypePath
the path to the annotated type argument, wildcard bound, array element type, or static inner type within 'typeRef'. May be null if the annotation targets 'typeRef' as a whole.
typePath
,
final LabelNode[]
the fist instructions corresponding to the continuous ranges that make the scope of this local variable (inclusive).
start
,
final LabelNode[]
the last instructions corresponding to the continuous ranges that make the scope of this local variable (exclusive). This array must have the same size as the 'start' array.
end
,
final int[]
the local variable's index in each range. This array must have the same size as the 'start' array.
index
,
final String
the class descriptor of the annotation class.
descriptor
)

Constructs a new LocalVariableAnnotationNode.

public
LocalVariableAnnotationNode(final int
the ASM API version implemented by this visitor. Must be one of the ASMx values in Opcodes.
api
,
final int
a reference to the annotated type. See org.eclipse.persistence.internal.libraries.asm.TypeReference.
typeRef
,
final TypePath
the path to the annotated type argument, wildcard bound, array element type, or static inner type within 'typeRef'. May be null if the annotation targets 'typeRef' as a whole.
typePath
,
final LabelNode[]
the fist instructions corresponding to the continuous ranges that make the scope of this local variable (inclusive).
start
,
final LabelNode[]
the last instructions corresponding to the continuous ranges that make the scope of this local variable (exclusive). This array must have the same size as the 'start' array.
end
,
final int[]
the local variable's index in each range. This array must have the same size as the 'start' array.
index
,
final String
the class descriptor of the annotation class.
descriptor
)

Constructs a new LocalVariableAnnotationNode.

Method Summary

Modifier and TypeMethod and Description
public void
accept(final MethodVisitor
the visitor that must visit this annotation.
methodVisitor
,
final boolean
true if the annotation is visible at runtime.
visible
)

Makes the given visitor visit this type annotation.

Field Detail

endback to summary
public List<LabelNode> end

The last instructions corresponding to the continuous ranges that make the scope of this local variable (exclusive). This list must have the same size as the 'start' list. Must not be null.

indexback to summary
public List<Integer> index

The local variable's index in each range. This list must have the same size as the 'start' list. Must not be null.

startback to summary
public List<LabelNode> start

The fist instructions corresponding to the continuous ranges that make the scope of this local variable (inclusive). Must not be null.

Constructor Detail

LocalVariableAnnotationNodeback to summary
public LocalVariableAnnotationNode(final int typeRef, final TypePath typePath, final LabelNode[] start, final LabelNode[] end, final int[] index, final String descriptor)

Constructs a new LocalVariableAnnotationNode. Subclasses must not use this constructor. Instead, they must use the LocalVariableAnnotationNode(int, TypePath, LabelNode[], LabelNode[], int[], String) version.

Parameters
typeRef:int

a reference to the annotated type. See org.eclipse.persistence.internal.libraries.asm.TypeReference.

typePath:TypePath

the path to the annotated type argument, wildcard bound, array element type, or static inner type within 'typeRef'. May be null if the annotation targets 'typeRef' as a whole.

start:LabelNode[]

the fist instructions corresponding to the continuous ranges that make the scope of this local variable (inclusive).

end:LabelNode[]

the last instructions corresponding to the continuous ranges that make the scope of this local variable (exclusive). This array must have the same size as the 'start' array.

index:int[]

the local variable's index in each range. This array must have the same size as the 'start' array.

descriptor:String

the class descriptor of the annotation class.

LocalVariableAnnotationNodeback to summary
public LocalVariableAnnotationNode(final int api, final int typeRef, final TypePath typePath, final LabelNode[] start, final LabelNode[] end, final int[] index, final String descriptor)

Constructs a new LocalVariableAnnotationNode.

Parameters
api:int

the ASM API version implemented by this visitor. Must be one of the ASMx values in Opcodes.

typeRef:int

a reference to the annotated type. See org.eclipse.persistence.internal.libraries.asm.TypeReference.

typePath:TypePath

the path to the annotated type argument, wildcard bound, array element type, or static inner type within 'typeRef'. May be null if the annotation targets 'typeRef' as a whole.

start:LabelNode[]

the fist instructions corresponding to the continuous ranges that make the scope of this local variable (inclusive).

end:LabelNode[]

the last instructions corresponding to the continuous ranges that make the scope of this local variable (exclusive). This array must have the same size as the 'start' array.

index:int[]

the local variable's index in each range. This array must have the same size as the 'start' array.

descriptor:String

the class descriptor of the annotation class.

Method Detail

acceptback to summary
public void accept(final MethodVisitor methodVisitor, final boolean visible)

Makes the given visitor visit this type annotation.

Parameters
methodVisitor:MethodVisitor

the visitor that must visit this annotation.

visible:boolean

true if the annotation is visible at runtime.