Method
and Constructor.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static record |
| Modifier and Type | Field and Description |
|---|---|
| private transient volatile Map | |
| private transient Executable. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Set | Returns: an unmodifiable set of the access flags for the executable represented by this object, possibly emptyOverrides default java. Returns an unmodifiable set of the access flags for the executable represented by this object, possibly empty. |
| pack-priv abstract void | |
| private Map | |
| pack-priv boolean | |
| pack-priv Type[] | getAllGenericParameterTypes()
Behaves like |
| public AnnotatedType[] | Returns: an array of objects representing the declared exceptions of the method or constructor represented by thisExecutableReturns an array of |
| public AnnotatedType[] | Returns: an array of objects representing the types of the formal parameters of the method or constructor represented by thisExecutableReturns an array of |
| public AnnotatedType | Returns: an object representing the receiver type of the method or constructor represented by thisExecutable or null if
this Executable can not have a receiver parameterReturns an |
| public abstract AnnotatedType | Returns: an object representing the return type of the method or constructor represented by thisExecutableReturns an |
| pack-priv AnnotatedType | |
| public <T extends Annotation> T | getAnnotation(Class<T> annotationClass)
Overrides java. Implements java. Returns this element's annotation for the specified type if such an annotation is present, else null. |
| pack-priv abstract byte[] | |
| public <T extends Annotation> T[] | getAnnotationsByType(Class<T> annotationClass)
Overrides java. Overrides default java. Returns annotations that are associated with this element. |
| public Annotation[] | getDeclaredAnnotations()
Overrides java. Implements java. Returns annotations that are directly present on this element. |
| public abstract Class | getDeclaringClass()
Redeclares java. Returns the |
| public abstract Class | Returns: the exception types declared as being thrown by the executable this object representsReturns an array of |
| public Type[] | Returns: an array of Types that represent the exception types thrown by the underlying executableReturns an array of |
| pack-priv abstract ConstructorRepository | |
| public Type[] | Returns: an array ofTypes that represent the formal
parameter types of the underlying executable, in declaration orderReturns an array of |
| public abstract int | Returns: the Java language modifiers for the executable represented by this objectRedeclares java. Returns the Java language modifiers for the executable represented by this object. |
| public abstract String | getName()
Redeclares java. Returns the name of the executable represented by this object. |
| public abstract Annotation[][] | Returns: an array of arrays that represent the annotations on the formal and implicit parameters, in declaration order, of the executable represented by this objectReturns an array of arrays of |
| public abstract int | Returns: The number of formal parameters for the executable this object representsReturns the number of formal parameters (whether explicitly declared or implicitly declared or neither) for the executable represented by this object. |
| public Parameter[] | Returns: an array ofParameter objects representing
all the parameters to the underlying executable represented by
this objectReturns an array of |
| private native Parameter[] | |
| public abstract Class | Returns: the parameter types for the executable this object representsReturns an array of |
| pack-priv abstract Class | |
| pack-priv abstract Class | |
| pack-priv byte[] | |
| pack-priv native byte[] | |
| public abstract TypeVariable | Returns: an array ofTypeVariable objects that represent
the type variables declared by this generic declarationRedeclares java. Returns an array of |
| pack-priv abstract boolean | |
| pack-priv abstract boolean | |
| pack-priv boolean | |
| public boolean | Returns: true if and only if this executable is a synthetic construct as defined by The Java Language Specification.Implements java. Returns |
| public boolean | Returns: true if this executable was declared to take a
variable number of arguments; returns false otherwiseReturns |
| private Executable. | |
| pack-priv Type | |
| pack-priv Annotation[][] | |
| pack-priv Annotation[][] | |
| pack-priv String | |
| pack-priv String | |
| pack-priv abstract void | specificToGenericStringHeader(StringBuilder sb)
Generate toGenericString header information specific to a method or constructor. |
| pack-priv abstract void | specificToStringHeader(StringBuilder sb)
Generate toString header information specific to a method or constructor. |
| private Parameter[] | |
| public String | Returns: a string describing thisExecutable, including
any type parametersReturns a string describing this |
| pack-priv static String | |
| private void |
| declaredAnnotations | back to summary |
|---|---|
| private transient volatile Map<Class<? extends Annotation>, Annotation> declaredAnnotations | |
| parameterData | back to summary |
|---|---|
| private transient Executable. | |
| Executable | back to summary |
|---|---|
pack-priv Executable()
| |
| accessFlags | back to summary |
|---|---|
| public Set Overrides default java. Returns an unmodifiable set of the access flags for the executable represented by this object, possibly empty.
| |
| appendModifiers | back to summary |
|---|---|
| pack-priv abstract void appendModifiers(StringBuilder sb) | |
| declaredAnnotations | back to summary |
|---|---|
| private Map | |
| equalParamTypes | back to summary |
|---|---|
| pack-priv boolean equalParamTypes(Class<?>[] params1, Class<?>[] params2) | |
| getAllGenericParameterTypes | back to summary |
|---|---|
| pack-priv Type[] getAllGenericParameterTypes() Behaves like | |
| getAnnotatedExceptionTypes | back to summary |
|---|---|
| public AnnotatedType[] getAnnotatedExceptionTypes() Returns an array of
| |
| getAnnotatedParameterTypes | back to summary |
|---|---|
| public AnnotatedType[] getAnnotatedParameterTypes() Returns an array of
| |
| getAnnotatedReceiverType | back to summary |
|---|---|
| public AnnotatedType getAnnotatedReceiverType() Returns an
| |
| getAnnotatedReturnType | back to summary |
|---|---|
| public abstract AnnotatedType getAnnotatedReturnType() Returns an
| |
| getAnnotatedReturnType0 | back to summary |
|---|---|
| pack-priv AnnotatedType getAnnotatedReturnType0(Type returnType) | |
| getAnnotation | back to summary |
|---|---|
| public <T extends Annotation> T getAnnotation(Class<T> annotationClass) Overrides java. Implements java. Doc from java. Returns this element's annotation for the specified type if such an annotation is present, else null.
| |
| getAnnotationBytes | back to summary |
|---|---|
| pack-priv abstract byte[] getAnnotationBytes() Accessor method to allow code sharing | |
| getAnnotationsByType | back to summary |
|---|---|
| public <T extends Annotation> T[] getAnnotationsByType(Class<T> annotationClass) Overrides java. Overrides default java. Doc from java. Returns annotations that are associated with this element.
If there are no annotations associated with this element, the return
value is an array of length 0.
The difference between this method and
| |
| getDeclaredAnnotations | back to summary |
|---|---|
| public Annotation[] getDeclaredAnnotations() Overrides java. Implements java. Doc from java. Returns annotations that are directly present on this element. This method ignores inherited annotations. If there are no annotations directly present on this element, the return value is an array of length 0. The caller of this method is free to modify the returned array; it will have no effect on the arrays returned to other callers.
| |
| getDeclaringClass | back to summary |
|---|---|
| public abstract Class Redeclares java. Returns the | |
| getExceptionTypes | back to summary |
|---|---|
| public abstract Class Returns an array of
| |
| getGenericExceptionTypes | back to summary |
|---|---|
| public Type[] getGenericExceptionTypes() Returns an array of If an exception type is a type variable or a parameterized type, it is created. Otherwise, it is resolved.
| |
| getGenericInfo | back to summary |
|---|---|
| pack-priv abstract ConstructorRepository getGenericInfo() | |
| getGenericParameterTypes | back to summary |
|---|---|
| public Type[] getGenericParameterTypes() Returns an array of If a formal parameter type is a parameterized type,
the If a formal parameter type is a type variable or a parameterized type, it is created. Otherwise, it is resolved.
| |
| getModifiers | back to summary |
|---|---|
| public abstract int getModifiers() Redeclares java. Returns the Java language modifiers for the executable represented by this object.
| |
| getName | back to summary |
|---|---|
| public abstract String getName() Redeclares java. Returns the name of the executable represented by this object. | |
| getParameterAnnotations | back to summary |
|---|---|
| public abstract Annotation[][] getParameterAnnotations() Returns an array of arrays of Note that any annotations returned by this method are declaration annotations.
| |
| getParameterCount | back to summary |
|---|---|
| public abstract int getParameterCount() Returns the number of formal parameters (whether explicitly declared or implicitly declared or neither) for the executable represented by this object.
| |
| getParameters | back to summary |
|---|---|
| public Parameter[] getParameters() Returns an array of The parameters of the underlying executable do not necessarily have unique names, or names that are legal identifiers in the Java programming language (JLS 3.8).
| |
| getParameters0 | back to summary |
|---|---|
| private native Parameter[] getParameters0() | |
| getParameterTypes | back to summary |
|---|---|
| public abstract Class Returns an array of
| |
| getSharedExceptionTypes | back to summary |
|---|---|
| pack-priv abstract Class | |
| getSharedParameterTypes | back to summary |
|---|---|
| pack-priv abstract Class | |
| getTypeAnnotationBytes | back to summary |
|---|---|
| pack-priv byte[] getTypeAnnotationBytes() | |
| getTypeAnnotationBytes0 | back to summary |
|---|---|
| pack-priv native byte[] getTypeAnnotationBytes0() | |
| getTypeParameters | back to summary |
|---|---|
| public abstract TypeVariable Redeclares java. Returns an array of
| |
| handleParameterNumberMismatch | back to summary |
|---|---|
| pack-priv abstract boolean handleParameterNumberMismatch(int resultLength, Class<?>[] parameterTypes) | |
| hasGenericInformation | back to summary |
|---|---|
| pack-priv abstract boolean hasGenericInformation() Does the Executable have generic information. | |
| hasRealParameterData | back to summary |
|---|---|
| pack-priv boolean hasRealParameterData() | |
| isSynthetic | back to summary |
|---|---|
| public boolean isSynthetic() Implements java. Returns
| |
| isVarArgs | back to summary |
|---|---|
| public boolean isVarArgs() Returns
| |
| parameterData | back to summary |
|---|---|
| private Executable. | |
| parameterize | back to summary |
|---|---|
| pack-priv Type parameterize(Class<?> c) | |
| parseParameterAnnotations | back to summary |
|---|---|
| pack-priv Annotation[][] parseParameterAnnotations(byte[] parameterAnnotations) | |
| sharedGetParameterAnnotations | back to summary |
|---|---|
| pack-priv Annotation[][] sharedGetParameterAnnotations(Class<?>[] parameterTypes, byte[] parameterAnnotations) | |
| sharedToGenericString | back to summary |
|---|---|
| pack-priv String sharedToGenericString() | |
| sharedToString | back to summary |
|---|---|
| pack-priv String sharedToString(Class<?>[] parameterTypes, Class<?>[] exceptionTypes) | |
| specificToGenericStringHeader | back to summary |
|---|---|
| pack-priv abstract void specificToGenericStringHeader(StringBuilder sb) Generate toGenericString header information specific to a method or constructor. | |
| specificToStringHeader | back to summary |
|---|---|
| pack-priv abstract void specificToStringHeader(StringBuilder sb) Generate toString header information specific to a method or constructor. | |
| synthesizeAllParams | back to summary |
|---|---|
| private Parameter[] synthesizeAllParams() | |
| toGenericString | back to summary |
|---|---|
| public String toGenericString() Returns a string describing this
| |
| typeVarBounds | back to summary |
|---|---|
| pack-priv static String typeVarBounds(TypeVariable<?> typeVar) | |
| verifyParameters | back to summary |
|---|---|
| private void verifyParameters(final Parameter[] parameters) | |
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final Parameter[] | parameters
Record Component accessed by parameters(). |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public final int | |
| public boolean | |
| public Parameter[] | |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| isReal | back to summary |
|---|---|
| private final boolean isReal Record Component accessed by isReal(). | |
| parameters | back to summary |
|---|---|
| private final Parameter[] parameters Record Component accessed by parameters(). | |
| ParameterData | back to summary |
|---|---|
| pack-priv ParameterData(Parameter[] parameters, boolean isReal) | |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of | |
| isReal | back to summary |
|---|---|
| public boolean isReal() Record Component getter of isReal. | |
| parameters | back to summary |
|---|---|
| public Parameter[] parameters() Record Component getter of parameters. | |
| toString | back to summary |
|---|---|
| public final String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves. | |