APIdia Launch Partner
Top Inners Methods
com.sun.tools.jnativescan

pack-priv sealed Interface ClassFileSource

permits Module, ClassPathJar, ClassPathDirectory
Known Direct Implementers
com.sun.tools.jnativescan.ClassFileSource.Module, com.sun.tools.jnativescan.ClassFileSource.ClassPathJar, com.sun.tools.jnativescan.ClassFileSource.ClassPathDirectory
Imports
java.io.IOException, .InputStream, .UncheckedIOException, java.lang.classfile.ClassFile, .ClassModel, java.lang.module.ModuleReader, .ModuleReference, java.net.URI, java.nio.file.Files, .Path, java.util.jar.JarFile, java.util.stream.Stream, java.util.zip.ZipFile

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static record
public static record
public static record

Method Summary

Modifier and TypeMethod and Description
public Stream<byte[]>
public default Stream<ClassModel>
public String
public Path
path()

Method Detail

classFilesback to summary
public Stream<byte[]> classFiles() throws IOException
classModelsback to summary
public default Stream<ClassModel> classModels() throws IOException
moduleNameback to summary
public String moduleName()
pathback to summary
public Path path()
com.sun.tools.jnativescan back to summary

public final Record ClassFileSource.ClassPathDirectory

extends Record
implements ClassFileSource
Class Inheritance
All Implemented Interfaces
com.sun.tools.jnativescan.ClassFileSource
Record Components
path:Path 

Field Summary

Modifier and TypeField and Description
private final Path
path

Record Component accessed by path().

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Stream<byte[]>
public final boolean
equals(Object o)

Implements abstract java.lang.Record.equals.

Indicates whether some other object is "equal to" this one.

public final int
hashCode()

Implements abstract java.lang.Record.hashCode.

Returns a hash code value for the record.

public String
public Path
path()

Record Component getter of path.

Implements com.sun.tools.jnativescan.ClassFileSource.path.

public final String
toString()

Implements abstract java.lang.Record.toString.

Returns a string representation of the record.

Field Detail

pathback to summary
private final Path path

Record Component accessed by path().

Constructor Detail

ClassPathDirectoryback to summary
public ClassPathDirectory(Path path)

Method Detail

classFilesback to summary
public Stream<byte[]> classFiles() throws IOException

Implements com.sun.tools.jnativescan.ClassFileSource.classFiles.

Annotations
@Override
equalsback to summary
public final boolean equals(Object o)

Implements abstract java.lang.Record.equals.

Doc from java.lang.Record.equals.

Indicates whether some other object is "equal to" this one. In addition to the general contract of Object.equals, record classes must further obey the invariant that when a record instance is "copied" by passing the result of the record component accessor methods to the canonical constructor, as follows:

    R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
hashCodeback to summary
public final int hashCode()

Implements abstract java.lang.Record.hashCode.

Doc from java.lang.Record.hashCode.

Returns a hash code value for the record. Obeys the general contract of Object.hashCode. For records, hashing behavior is constrained by the refined contract of Record.equals, so that any two records created from the same components must have the same hash code.

moduleNameback to summary
public String moduleName()

Implements com.sun.tools.jnativescan.ClassFileSource.moduleName.

Annotations
@Override
pathback to summary
public Path path()

Record Component getter of path.

Implements com.sun.tools.jnativescan.ClassFileSource.path.

toStringback to summary
public final String toString()

Implements abstract java.lang.Record.toString.

Doc from java.lang.Record.toString.

Returns a string representation of the record. In accordance with the general contract of Object#toString(), the toString method returns a string that "textually represents" this record. The result should be a concise but informative representation that is easy for a person to read.

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.

com.sun.tools.jnativescan back to summary

public final Record ClassFileSource.ClassPathJar

extends Record
implements ClassFileSource
Class Inheritance
All Implemented Interfaces
com.sun.tools.jnativescan.ClassFileSource
Record Components
path:Path 
version:Runtime.Version 

Field Summary

Modifier and TypeField and Description
private final Path
path

Record Component accessed by path().

private final Runtime.Version
version

Record Component accessed by version().

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Stream<byte[]>
public final boolean
equals(Object o)

Implements abstract java.lang.Record.equals.

Indicates whether some other object is "equal to" this one.

public final int
hashCode()

Implements abstract java.lang.Record.hashCode.

Returns a hash code value for the record.

public String
public Path
path()

Record Component getter of path.

Implements com.sun.tools.jnativescan.ClassFileSource.path.

public final String
toString()

Implements abstract java.lang.Record.toString.

Returns a string representation of the record.

public Runtime.Version
version()

Record Component getter of version.

Field Detail

pathback to summary
private final Path path

Record Component accessed by path().

versionback to summary
private final Runtime.Version version

Record Component accessed by version().

Constructor Detail

ClassPathJarback to summary
public ClassPathJar(Path path, Runtime.Version version)

Method Detail

classFilesback to summary
public Stream<byte[]> classFiles() throws IOException

Implements com.sun.tools.jnativescan.ClassFileSource.classFiles.

Annotations
@Override
equalsback to summary
public final boolean equals(Object o)

Implements abstract java.lang.Record.equals.

Doc from java.lang.Record.equals.

Indicates whether some other object is "equal to" this one. In addition to the general contract of Object.equals, record classes must further obey the invariant that when a record instance is "copied" by passing the result of the record component accessor methods to the canonical constructor, as follows:

    R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
hashCodeback to summary
public final int hashCode()

Implements abstract java.lang.Record.hashCode.

Doc from java.lang.Record.hashCode.

Returns a hash code value for the record. Obeys the general contract of Object.hashCode. For records, hashing behavior is constrained by the refined contract of Record.equals, so that any two records created from the same components must have the same hash code.

moduleNameback to summary
public String moduleName()

Implements com.sun.tools.jnativescan.ClassFileSource.moduleName.

Annotations
@Override
pathback to summary
public Path path()

Record Component getter of path.

Implements com.sun.tools.jnativescan.ClassFileSource.path.

toStringback to summary
public final String toString()

Implements abstract java.lang.Record.toString.

Doc from java.lang.Record.toString.

Returns a string representation of the record. In accordance with the general contract of Object#toString(), the toString method returns a string that "textually represents" this record. The result should be a concise but informative representation that is easy for a person to read.

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.

versionback to summary
public Runtime.Version version()

Record Component getter of version.

com.sun.tools.jnativescan back to summary

public final Record ClassFileSource.Module

extends Record
implements ClassFileSource
Class Inheritance
All Implemented Interfaces
com.sun.tools.jnativescan.ClassFileSource
Record Components
reference:ModuleReference 

Field Summary

Modifier and TypeField and Description
private final ModuleReference
reference

Record Component accessed by reference().

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Stream<byte[]>
public final boolean
equals(Object o)

Implements abstract java.lang.Record.equals.

Indicates whether some other object is "equal to" this one.

public final int
hashCode()

Implements abstract java.lang.Record.hashCode.

Returns a hash code value for the record.

public String
public Path
public ModuleReference
reference()

Record Component getter of reference.

public final String
toString()

Implements abstract java.lang.Record.toString.

Returns a string representation of the record.

Field Detail

referenceback to summary
private final ModuleReference reference

Record Component accessed by reference().

Constructor Detail

Moduleback to summary
public Module(ModuleReference reference)

Method Detail

classFilesback to summary
public Stream<byte[]> classFiles() throws IOException

Implements com.sun.tools.jnativescan.ClassFileSource.classFiles.

Annotations
@Override
equalsback to summary
public final boolean equals(Object o)

Implements abstract java.lang.Record.equals.

Doc from java.lang.Record.equals.

Indicates whether some other object is "equal to" this one. In addition to the general contract of Object.equals, record classes must further obey the invariant that when a record instance is "copied" by passing the result of the record component accessor methods to the canonical constructor, as follows:

    R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
hashCodeback to summary
public final int hashCode()

Implements abstract java.lang.Record.hashCode.

Doc from java.lang.Record.hashCode.

Returns a hash code value for the record. Obeys the general contract of Object.hashCode. For records, hashing behavior is constrained by the refined contract of Record.equals, so that any two records created from the same components must have the same hash code.

moduleNameback to summary
public String moduleName()

Implements com.sun.tools.jnativescan.ClassFileSource.moduleName.

Annotations
@Override
pathback to summary
public Path path()

Implements com.sun.tools.jnativescan.ClassFileSource.path.

Annotations
@Override
referenceback to summary
public ModuleReference reference()

Record Component getter of reference.

toStringback to summary
public final String toString()

Implements abstract java.lang.Record.toString.

Doc from java.lang.Record.toString.

Returns a string representation of the record. In accordance with the general contract of Object#toString(), the toString method returns a string that "textually represents" this record. The result should be a concise but informative representation that is easy for a person to read.

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.