Top Description Inners Methods
com.sun.tools.javac.platform

public Interface PlatformProvider

Known Direct Implementers
com.sun.tools.javac.platform.JDKPlatformProvider

A collection of platform descriptions that can be selected using --release name command line option. Register in META-INF/services/com.sun.tools.javac.platform.PlatformProvider.

This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
PlatformProvider.PlatformNotSupported

Throw if the given platform is not supported.

Method Summary

Modifier and TypeMethod and Description
public PlatformDescription

Returns:

a PlatformDescription
getPlatform
(String
the name of the selected platform
platformName
,
String
additional parameter, which can be specified after ':' on the command line
options
)

Create a description of a selected platform.

public Iterable<String>

Returns:

the platform keys
getSupportedPlatformNames
()

Names of platforms supported by this provider.

Method Detail

getPlatformback to summary
public PlatformDescription getPlatform(String platformName, String options) throws PlatformNotSupported

Create a description of a selected platform.

Parameters
platformName:String

the name of the selected platform

options:String

additional parameter, which can be specified after ':' on the command line

Returns:PlatformDescription

a PlatformDescription

Exceptions
PlatformNotSupported:
if the given platform is not supported
getSupportedPlatformNamesback to summary
public Iterable<String> getSupportedPlatformNames()

Names of platforms supported by this provider. Each returned name can be used as the key for --release.

Returns:Iterable<String>

the platform keys

com.sun.tools.javac.platform back to summary

public Class PlatformProvider.PlatformNotSupported

extends Exception
Class Inheritance

Throw if the given platform is not supported.

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.Exception.serialVersionUID.

Constructor Detail

PlatformNotSupportedback to summary
public PlatformNotSupported()