APIdia Launch Partner
Top Description Inners Constructors Methods
javax.annotation.processing

public Class Completions

extends Object
Class Inheritance

Utility class for assembling Completion objects.
Since
1.6

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static Completion

Returns:

a completion of the value and message
of
(String
the text of the completion
value
,
String
a message about the completion
message
)

Returns a completion of the value and message.

public static Completion

Returns:

a completion of the value and an empty message
of
(String
the text of the completion
value
)

Returns a completion of the value and an empty message.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Completionsback to summary
private Completions()

Method Detail

ofback to summary
public static Completion of(String value, String message)

Returns a completion of the value and message.

Parameters
value:String

the text of the completion

message:String

a message about the completion

Returns:Completion

a completion of the value and message

ofback to summary
public static Completion of(String value)

Returns a completion of the value and an empty message.

Parameters
value:String

the text of the completion

Returns:Completion

a completion of the value and an empty message

javax.annotation.processing back to summary

private Class Completions.SimpleCompletion

extends Object
implements Completion
Class Inheritance
All Implemented Interfaces
javax.annotation.processing.Completion

Field Summary

Modifier and TypeField and Description
private String
private String

Constructor Summary

AccessConstructor and Description
pack-priv
SimpleCompletion(String value, String message)

Method Summary

Modifier and TypeMethod and Description
public String
getMessage()

Implements javax.annotation.processing.Completion.getMessage.

Returns an informative message about the completion.

public String
getValue()

Implements javax.annotation.processing.Completion.getValue.

Returns the text of the suggested completion.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

messageback to summary
private String message
valueback to summary
private String value

Constructor Detail

SimpleCompletionback to summary
pack-priv SimpleCompletion(String value, String message)

Method Detail

getMessageback to summary
public String getMessage()

Implements javax.annotation.processing.Completion.getMessage.

Doc from javax.annotation.processing.Completion.getMessage.

Returns an informative message about the completion.

getValueback to summary
public String getValue()

Implements javax.annotation.processing.Completion.getValue.

Doc from javax.annotation.processing.Completion.getValue.

Returns the text of the suggested completion.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override