Package com.google.gwt.core.ext.linker
Enum EmittedArtifact.Visibility
java.lang.Object
java.lang.Enum<EmittedArtifact.Visibility>
com.google.gwt.core.ext.linker.EmittedArtifact.Visibility
- All Implemented Interfaces:
Serializable
,Comparable<EmittedArtifact.Visibility>
,java.lang.constant.Constable
- Enclosing class:
EmittedArtifact
Describes the visibility of an artifact.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionA deploy artifact is deployed to the server but is never served to the client.For legacy use only - used for artifacts that were previously marked as private because they should not be delivered to the client, but actually should be visible to the server.A private artifact is something that is only used during the build process.A public artifact is something that may be served to clients.A Source artifact is a file intended for source-level debugging in a browser. -
Method Summary
Modifier and TypeMethodDescriptionboolean
matches
(EmittedArtifact.Visibility visibility) Returns true if this visibility matches the requested visibility level, dealing with the fact thatLegacyDeploy
matches bothPrivate
andDeploy
.static EmittedArtifact.Visibility
Returns the enum constant of this type with the specified name.static EmittedArtifact.Visibility[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
Public
A public artifact is something that may be served to clients. -
Private
A private artifact is something that is only used during the build process. -
Deploy
A deploy artifact is deployed to the server but is never served to the client. -
Source
A Source artifact is a file intended for source-level debugging in a browser. It should be served to clients while developing but not in production unless the app is open source. -
LegacyDeploy
For legacy use only - used for artifacts that were previously marked as private because they should not be delivered to the client, but actually should be visible to the server. These artifacts will now be treated as both Private and Deploy, so that existing build tools that expect to find them in the output directory for Private artifacts will find them. New code should use Deploy instead.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
matches
Returns true if this visibility matches the requested visibility level, dealing with the fact thatLegacyDeploy
matches bothPrivate
andDeploy
.- Parameters:
visibility
-- Returns:
- true if this visibility matches the requested level
-