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

public Class CompileStates

extends HashMap<Env<AttrContext>, CompileStates.CompileState>
Class Inheritance
Imports
java.util.HashMap, com.sun.tools.javac.util.Context

Partial map to record which compiler phases have been executed for each compilation unit. Used for ATTR and FLOW phases.

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 enum
CompileStates.CompileState

Ordered list of compiler phases for each compilation unit.

Field Summary

Modifier and TypeField and Description
protected static final Context.Key<CompileStates>
compileStatesKey

The context key for the compile states.

protected transient Context
private static final long

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

Get the CompileStates instance for this context.

public boolean
Inherited from java.util.HashMap:
clearclonecomputecomputeIfAbsentcomputeIfPresentcontainsKeycontainsValueentrySetforEachgetgetOrDefaultisEmptykeySetmergenewHashMapputputAllputIfAbsentremoveremovereplacereplacereplaceAllsizevalues

Field Detail

compileStatesKeyback to summary
protected static final Context.Key<CompileStates> compileStatesKey

The context key for the compile states.

contextback to summary
protected transient Context context
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.util.HashMap.serialVersionUID.

Constructor Detail

CompileStatesback to summary
public CompileStates(Context context)
Annotations
@SuppressWarnings:this-escape

Method Detail

instanceback to summary
public static CompileStates instance(Context context)

Get the CompileStates instance for this context.

isDoneback to summary
public boolean isDone(Env<AttrContext> env, CompileStates.CompileState cs)
com.sun.tools.javac.comp back to summary

public final Enum CompileStates.CompileState

extends Enum<CompileStates.CompileState>
Class Inheritance

Ordered list of compiler phases for each compilation unit.

Field Summary

Modifier and TypeField and Description
public static final CompileStates.CompileState
public static final CompileStates.CompileState
public static final CompileStates.CompileState
public static final CompileStates.CompileState
public static final CompileStates.CompileState
public static final CompileStates.CompileState
public static final CompileStates.CompileState
public static final CompileStates.CompileState
public static final CompileStates.CompileState
public static final CompileStates.CompileState
public static final CompileStates.CompileState
private final int
public static final CompileStates.CompileState

Constructor Summary

AccessConstructor and Description
private
CompileState(int value)

Method Summary

Modifier and TypeMethod and Description
public boolean
public static CompileStates.CompileState
public static CompileStates.CompileState
public static CompileStates.CompileState[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

ATTRback to summary
public static final CompileStates.CompileState ATTR
ENTERback to summary
public static final CompileStates.CompileState ENTER
FLOWback to summary
public static final CompileStates.CompileState FLOW
GENERATEback to summary
public static final CompileStates.CompileState GENERATE
INITback to summary
public static final CompileStates.CompileState INIT
LOWERback to summary
public static final CompileStates.CompileState LOWER
PARSEback to summary
public static final CompileStates.CompileState PARSE
PROCESSback to summary
public static final CompileStates.CompileState PROCESS
TRANSPATTERNSback to summary
public static final CompileStates.CompileState TRANSPATTERNS
TRANSTYPESback to summary
public static final CompileStates.CompileState TRANSTYPES
UNLAMBDAback to summary
public static final CompileStates.CompileState UNLAMBDA
valueback to summary
private final int value
WARNback to summary
public static final CompileStates.CompileState WARN

Constructor Detail

CompileStateback to summary
private CompileState(int value)

Method Detail

isAfterback to summary
public boolean isAfter(CompileStates.CompileState other)
maxback to summary
public static CompileStates.CompileState max(CompileStates.CompileState a, CompileStates.CompileState b)
valueOfback to summary
public static CompileStates.CompileState valueOf(String name)
valuesback to summary
public static CompileStates.CompileState[] values()