Class Package
public class Package : AnnotatedElement, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, IAnnotatedElement
- Inheritance
-
JVMBridgeBaseJVMBridgeBase<AnnotatedElement>Package
- Implements
-
IJVMBridgeCoreIJVMBridgeBaseStaticIJVMBridgeBaseIJVMBridgeDefinition
- Inherited Members
-
JVMBridgeBase<AnnotatedElement>.IsAssignableFrom(IJavaType)JVMBridgeBase<AnnotatedElement>.IsAssignableFrom<T>()JVMBridgeBase<AnnotatedElement>.Execute<T>(params T[])JVMBridgeBase<AnnotatedElement>.DynBridgeClazzJVMBridgeBase<AnnotatedElement>.BridgeClazzJVMBridgeBase.RuntimeClassNameOf<T>()JVMBridgeBase.ClassNameOf<T>()JVMBridgeBase.ClassOf<T>()JVMBridgeBase.WrapsDirect<TNewClass>(IJavaObject)JVMBridgeBase.Wraps<TNewClass>(IJavaObject)JVMBridgeBase.Wraps<TNewClass, TReturn>(IJavaObject)JVMBridgeBase.Wraps<TNewClass, TReturn, TConverter>(IJavaObject)JVMBridgeBase.MonitorEnter()JVMBridgeBase.MonitorExit()JVMBridgeBase.IsInstanceOf(IJavaType)JVMBridgeBase.IsInstanceOf<T>()JVMBridgeBase.RuntimeIsInstanceOf<T>()JVMBridgeBase.CastTo<TNewClass>()JVMBridgeBase.CastDirect<TNewClass>()JVMBridgeBase.Dispose()JVMBridgeBase.ToString()JVMBridgeBase.GetHashCode()JVMBridgeBase.Notify()JVMBridgeBase.NotifyAll()JVMBridgeBase.Wait()JVMBridgeBase.IExecuteWithSignature<TNewClass, TReturn, TConverter>(string, string, params object[])JVMBridgeBase.DynBridgeInstanceJVMBridgeBase.BridgeInstanceJVMBridgeBase.IsBridgeListener
- Extension Methods
Constructors
Package()
Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge
public Package()
Package(params object[])
Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class
public Package(params object[] args)
Parameters
args
object[]
Properties
Annotations
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Package.html#getAnnotations()
public Annotation[] Annotations { get; }
Property Value
BridgeClassName
https://www.jcobridge.com/api-clr/html/P_MASES_JCOBridge_C2JBridge_JVMBridgeBase_BridgeClassName.htm
public override string BridgeClassName { get; }
Property Value
DeclaredAnnotations
public Annotation[] DeclaredAnnotations { get; }
Property Value
ImplementationTitle
public String ImplementationTitle { get; }
Property Value
ImplementationVendor
public String ImplementationVendor { get; }
Property Value
ImplementationVersion
public String ImplementationVersion { get; }
Property Value
IsBridgeAbstract
public override bool IsBridgeAbstract { get; }
Property Value
IsBridgeCloseable
public override bool IsBridgeCloseable { get; }
Property Value
IsBridgeInterface
public override bool IsBridgeInterface { get; }
Property Value
IsBridgeStatic
public override bool IsBridgeStatic { get; }
Property Value
Name
public String Name { get; }
Property Value
Packages
public static Package[] Packages { get; }
Property Value
- Package[]
SpecificationTitle
public String SpecificationTitle { get; }
Property Value
SpecificationVendor
public String SpecificationVendor { get; }
Property Value
SpecificationVersion
public String SpecificationVersion { get; }
Property Value
Methods
GetAnnotation<A>(Class)
public A GetAnnotation<A>(Class arg0) where A : IAnnotation, new()
Parameters
Returns
- A
A
Type Parameters
GetAnnotation<A>(Class<A>)
Returns this element's annotation for the specified type if such an annotation is present, else null.
public A GetAnnotation<A>(Class<A> annotationClass) where A : Annotation
Parameters
annotationClass
Class<A>
Returns
- A
Type Parameters
A
GetAnnotationsByType<A>(Class)
public A[] GetAnnotationsByType<A>(Class arg0) where A : IAnnotation, new()
Parameters
Returns
- A[]
A
Type Parameters
GetAnnotationsByType<A>(Class<A>)
Returns annotations that are associated with this element.
public A[] GetAnnotationsByType<A>(Class<A> annotationClass) where A : Annotation
Parameters
annotationClass
Class<A>
Returns
- A[]
Type Parameters
A
GetDeclaredAnnotation<A>(Class)
public A GetDeclaredAnnotation<A>(Class arg0) where A : IAnnotation, new()
Parameters
Returns
- A
A
Type Parameters
GetDeclaredAnnotation<A>(Class<A>)
Returns this element's annotation for the specified type if such an annotation is directly present, else null.
public A GetDeclaredAnnotation<A>(Class<A> annotationClass) where A : Annotation
Parameters
annotationClass
Class<A>
Returns
- A
Type Parameters
A
GetDeclaredAnnotationsByType<A>(Class)
public A[] GetDeclaredAnnotationsByType<A>(Class arg0) where A : IAnnotation, new()
Parameters
Returns
- A[]
A
Type Parameters
GetDeclaredAnnotationsByType<A>(Class<A>)
Returns this element's annotation(s) for the specified type if such annotations are either directly present or indirectly present.
public A[] GetDeclaredAnnotationsByType<A>(Class<A> annotationClass) where A : Annotation
Parameters
annotationClass
Class<A>
Returns
- A[]
Type Parameters
A
GetPackage(string)
Find a package by name in the callers ClassLoader instance.
public static Package GetPackage(string name)
Parameters
name
string
Returns
IsAnnotationPresent(Class)
public bool IsAnnotationPresent(Class arg0)
Parameters
Returns
IsCompatibleWith(String)
public bool IsCompatibleWith(String arg0)
Parameters
Returns
Exceptions
IsCompatibleWith(string)
Compare this package's specification version with a desired version.
public bool IsCompatibleWith(string desired)
Parameters
desired
string
Returns
IsSealed()
public bool IsSealed()
Returns
IsSealed(URL)
public bool IsSealed(URL arg0)