APIdia Launch Partner
Top Description Inners Fields Constructors Methods
com.sun.tools.javac.api

public Class ClientCodeWrapper

extends Object
Class Inheritance
Imports
java.io.File, .IOException, .InputStream, .OutputStream, .Reader, .Writer, java.lang.annotation.ElementType, .Retention, .RetentionPolicy, .Target, java.net.URI, java.nio.file.Path, java.util.ArrayList, .Collection, .Collections, .HashMap, .Iterator, .List, .Locale, .Map, .Objects, .ServiceLoader, .Set, javax.lang.model.element.Modifier, .NestingKind, javax.tools.Diagnostic, .DiagnosticListener, .FileObject, .JavaFileManager, .JavaFileManager.Location, .JavaFileObject, .JavaFileObject.Kind, .StandardJavaFileManager, com.sun.source.util.TaskEvent, .TaskListener, com.sun.tools.javac.util.ClientCodeException, .Context, .DefinedBy, .DefinedBy.Api, .JCDiagnostic

Wrap objects to enable unchecked exceptions to be caught and handled. For each method, exceptions are handled as follows: The intent is that ClientCodeException can be caught at an appropriate point in the program and can be distinguished from any unanticipated unchecked exceptions arising in the main body of the code (i.e. bugs.) When the ClientCodeException has been caught, either a suitable message can be generated, or if appropriate, the original cause can be rethrown.

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 class
public static @interface
protected class
protected class
protected class
protected class
protected class
protected class

Field Summary

Modifier and TypeField and Description
pack-priv Map<Class<?>, Boolean>
trustedClasses

A map to cache the results of whether or not a specific classes can be "trusted", and thus does not need to be wrapped.

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static ClientCodeWrapper
instance(Context context)

protected boolean
pack-priv FileObject
pack-priv JavaFileObject
pack-priv TaskListener
pack-priv Collection<TaskListener>
unwrap(Collection<? extends TaskListener> listeners)

private <T> Diagnostic<T>
unwrap(final Diagnostic<T> diagnostic)

public JavaFileManager
public FileObject
public JavaFileObject
public <T> DiagnosticListener<T>
pack-priv TaskListener
public Iterable<JavaFileObject>
private String
wrappedToString(Class<?> wrapperClass, Object wrapped)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait