Interface IEnvironmentTokenProvider
-
public interface IEnvironmentTokenProviderProvides a token value into the attached environment
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_PRIORITYDefault token provider priority
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetPriority()Get the priority for this provider, should return a priority relative toDEFAULT_PRIORITY.java.lang.IntegergetToken(java.lang.String token, MixinEnvironment env)Get the value of the specified token in this environment, or return null if this provider does not have a value for this token.
-
-
-
Field Detail
-
DEFAULT_PRIORITY
static final int DEFAULT_PRIORITY
Default token provider priority- See Also:
- Constant Field Values
-
-
Method Detail
-
getPriority
int getPriority()
Get the priority for this provider, should return a priority relative toDEFAULT_PRIORITY.
-
getToken
java.lang.Integer getToken(java.lang.String token, MixinEnvironment env)Get the value of the specified token in this environment, or return null if this provider does not have a value for this token. All tokens are converted to UPPERCASE before being requested from the provider- Parameters:
token- Token (in upper case) to search forenv- Current environment- Returns:
- The token value, or null if this provider does not have the token
-
-