public interface ByteCodeElement extends NamedElement.WithRuntimeName, NamedElement.WithDescriptor, ModifierReviewable.OfByteCodeElement, DeclaredByType, AnnotationSource
| Modifier and Type | Interface and Description | 
|---|---|
| static interface  | ByteCodeElement.MemberA byte code element that is declared by a type. | 
| static interface  | ByteCodeElement.Token<T extends ByteCodeElement.Token<T>>A token representing a byte code element. | 
| static interface  | ByteCodeElement.TypeDependant<T extends ByteCodeElement.TypeDependant<?,S>,S extends ByteCodeElement.Token<S>>A type dependant describes an element that is an extension of a type definition, i.e. | 
NamedElement.WithDescriptor, NamedElement.WithGenericName, NamedElement.WithOptionalName, NamedElement.WithRuntimeNameModifierReviewable.AbstractBase, ModifierReviewable.ForFieldDescription, ModifierReviewable.ForMethodDescription, ModifierReviewable.ForParameterDescription, ModifierReviewable.ForTypeDefinition, ModifierReviewable.OfAbstraction, ModifierReviewable.OfByteCodeElement, ModifierReviewable.OfEnumerationDeclaredByType.WithMandatoryDeclarationAnnotationSource.Empty, AnnotationSource.ExplicitNON_GENERIC_SIGNATUREEMPTY_NAME, NO_NAMEEMPTY_MASK| Modifier and Type | Method and Description | 
|---|---|
| boolean | isAccessibleTo(TypeDescription typeDescription)
 Checks if this element is accessible from a given type. | 
| boolean | isVisibleTo(TypeDescription typeDescription)
 Checks if this element is visible from a given type. | 
getInternalName, getNamegetDescriptor, getGenericSignaturegetActualNamegetOwnership, getVisibility, isDeprecated, isPackagePrivate, isPrivate, isProtected, isPublic, isStaticgetModifiers, getSyntheticState, isFinal, isSyntheticgetDeclaringTypegetDeclaredAnnotationsboolean 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
 isAccessibleTo(TypeDescription). Visibility allows the invocation of a method on itself or on external
 instances.
 
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: 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.
typeDescription - The type which is checked for its visibility of this element.true if this element is visible for typeDescription.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 isVisibleTo(TypeDescription). Accessibility allows the invocation of a method on external
 instances or on itself. Methods that can be invoked from within an instance might however not be considered accessible.
 
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: 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.
typeDescription - The type which is checked for its accessibility of this element.true if this element is accessible for typeDescription.Copyright © 2014–2024. All rights reserved.