| Modifier and Type | Class and Description |
|---|---|
| public static interface | ByteCodeElement.Member
A byte code element that is declared by a type. |
| public static interface | ByteCodeElement.Token<
The type of the implementation. T extends ByteCodeElement.A token representing a byte code element. |
| public static interface | ByteCodeElement.TypeDependant<
The type dependant's type. T extends ByteCodeElement.The type dependant's token type. S extends ByteCodeElement.A type dependant describes an element that is an extension of a type definition, i.e. a field, method or method parameter. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if this element is accessible for typeDescription.The type which is checked for its accessibility of this element. typeDescription)Checks if this element is accessible from a given type. |
| public boolean | Returns: true if this element is visible for typeDescription.The type which is checked for its visibility of this element. typeDescription)Checks if this element is visible from a given type. |
| isAccessibleTo | back to summary |
|---|---|
| public boolean isAccessibleTo(TypeDescription typeDescription)
Checks if this element is accessible from a given type. Accessibility is a more narrow criteria then visibility which can be
checked by Note A method or field might define a signature that includes types that are not visible to a type. Such methods can be legally invoked from this type and can even be implemented as bridge methods by this type. It is however not legal to declare a method with invisible types in its signature that are not bridges what might require additional validation. Important Note Virtual byte code elements, i.e. virtual methods, are only considered visible if the type they are invoked upon is visible to a given type. The visibility of such virtual members can therefore not be determined by only investigating the invoked method but requires an additional check of the target type.
| |
| isVisibleTo | back to summary |
|---|---|
| public boolean isVisibleTo(TypeDescription typeDescription)
Checks if this element is visible from a given type. Visibility is a wider criteria then accessibility which can be checked by
Note A method or field might define a signature that includes types that are not visible to a type. Such methods can be legally invoked from this type and can even be implemented as bridge methods by this type. It is however not legal to declare a method with invisible types in its signature that are not bridges what might require additional validation. Important Note Virtual byte code elements, i.e. virtual methods, are only considered visible if the type they are invoked upon is visible to a given type. The visibility of such virtual members can therefore not be determined by only investigating the invoked method but requires an additional check of the target type.
| |
| Modifier and Type | Class and Description |
|---|---|
| public static class | ByteCodeElement.Token.TokenList<
The actual token type. S extends ByteCodeElement.A list of tokens. |
| Modifier and Type | Method and Description |
|---|---|
| public T | Returns: This token with all of its represented types transformed by the supplied visitor.The visitor to transform all types that are represented by this token. visitorTransforms the types represented by this token by applying the given visitor to them. |
| accept | back to summary |
|---|---|
| public T accept(TypeDescription. Transforms the types represented by this token by applying the given visitor to them.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final List | tokens
The tokens that this list represents. |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ByteCodeElement. | Returns: A list containing the transformed tokens.The visitor to apply to all tokens. visitorTransforms all tokens that are represented by this list. |
| public S | get(int
index of the element to return index)Implements abstract java. Implements java. |
| public int | size()
Implements abstract java. Implements java. |
| protected ByteCodeElement. | wrap(List<S>
The values to wrap in an instance of this list's type. values)Implements abstract net. |
| tokens | back to summary |
|---|---|
| private final List<? extends S> tokens The tokens that this list represents. | |
| TokenList | back to summary |
|---|---|
| public TokenList(S... token) Creates a list of tokens.
| |
| TokenList | back to summary |
|---|---|
| public TokenList(List<? extends S> tokens) Creates a list of tokens.
| |
| accept | back to summary |
|---|---|
| public ByteCodeElement. Transforms all tokens that are represented by this list.
| |
| get | back to summary |
|---|---|
| public S get(int index) Implements abstract java. Implements java. Doc from java. Returns the element at the specified position in this list.
| |
| size | back to summary |
|---|---|
| public int size() Implements abstract java. Implements java. Doc from java. Returns the number of elements in this list. If this list contains
more than
| |
| wrap | back to summary |
|---|---|
| protected ByteCodeElement. Implements abstract net. Doc from net. Represents a list of values as an instance of this instance's list type.
| |
| Modifier and Type | Method and Description |
|---|---|
| public T | Returns: This type dependant in its defined shape.Returns this type dependant in its defined shape, i.e. the form it is declared in and without its type variable's resolved. |
| public S | Returns: A token representative of this type dependant.A matcher to identify types to be replaced by matcher)net. descriptions.Returns a token representative of this type dependant. |
| asDefined | back to summary |
|---|---|
| public T asDefined() Returns this type dependant in its defined shape, i.e. the form it is declared in and without its type variable's resolved.
| |
| asToken | back to summary |
|---|---|
| public S asToken(ElementMatcher<? super TypeDescription> matcher) Returns a token representative of this type dependant. All types that are matched by the supplied matcher are replaced by
| |