public abstract class OperatorImplementationsManager
extends java.lang.Object
Constructor and Description |
---|
OperatorImplementationsManager()
Creates the OperatorImplementationsManager
|
Modifier and Type | Method and Description |
---|---|
long |
cacheSize()
Gets the size of the type cache
|
OperatorImplementation_V0104 |
getEqualityOperatorImplementation(java.lang.String typeName)
Gets The equality operator implementation object for the given typename
|
static java.lang.String |
getFullImplementingClassName(NameIdentifier operatorName,
java.util.List<NameIdentifier> argTypeNames)
Gets the full implementing class name from the given signature
|
static java.lang.String |
getFullImplementingClassName(NameIdentifier operatorName,
NameIdentifier... argTypeNames)
Gets the full implementing class name from the given signature
|
static java.lang.String |
getFullImplementingClassName(java.lang.String operatorName,
java.util.List<java.lang.String> argTypeNames)
Deprecated.
- replace with the NameIdentifier version
|
static OperatorImplementationsManager |
getInstance()
Gets the instance of the OperatorImplementationsManager service for this JVM
|
OperatorImplementation_V0104 |
getOperatorImplementation(NameIdentifier operatorName,
java.util.List<NameIdentifier> argTypeNames)
Gets the OperatorImplementation object corresponding to the given typeDeclaration
|
OperatorImplementation_V0104 |
getOperatorImplementation(NameIdentifier operatorName,
NameIdentifier... argTypeNames)
Gets the OperatorImplementation object corresponding to the given typeDeclaration
|
OperatorImplementation_V0104 |
getOperatorImplementation(java.lang.String operatorName,
java.util.List<java.lang.String> argTypeNames)
Deprecated.
- replace with the NameIdentifier version
|
OperatorImplementation_V0104 |
getOperatorImplementationWithoutException(NameIdentifier operatorName,
java.util.List<NameIdentifier> argTypeNames)
Gets the OperatorImplementation object corresponding to the given typeDeclaration
|
OperatorImplementation_V0104 |
getOperatorImplementationWithoutException(NameIdentifier operatorName,
NameIdentifier... argTypeNames)
Gets the OperatorImplementation object corresponding to the given typeDeclaration
|
OperatorImplementation_V0104 |
getOperatorImplementationWithoutException(java.lang.String operatorName,
java.util.List<java.lang.String> argTypeNames)
Deprecated.
- replace with the NameIdentifier version
|
OperatorImplementation_V0104 |
getOrderingOperatorImplementation(java.lang.String typeName)
Gets The ordering operator implementation for the named type
|
static boolean |
isPossibleGenericOperator(NameIdentifier operatorInvocationName)
Checks whether an operator invocation name possible indicates a "generic" operator.
|
static boolean |
isPossibleGenericOperator(java.lang.String operatorInvocationName)
Deprecated.
- replace with
isPossibleGenericOperator(NameIdentifier) |
void |
removeAllOperatorsForType(NameIdentifier typeName)
Removes all the operator implementations that involve the given type, either as being the return type for the operator, or else as being an argument type for the operator
|
void |
reset()
Resets the OperatorImplementationsManager by clearing the type implementations cache, except for those that are mentioned in the PRELOAD config property.
|
public OperatorImplementationsManager()
public static final java.lang.String getFullImplementingClassName(NameIdentifier operatorName, java.util.List<NameIdentifier> argTypeNames)
operatorName
- The invocation name of the operatorargTypeNames
- The ordered list of the type names of the arguments to the operator.public static final java.lang.String getFullImplementingClassName(NameIdentifier operatorName, NameIdentifier... argTypeNames)
operatorName
- The invocation name of the operatorargTypeNames
- The ordered list of the type names of the arguments to the operator.@Deprecated public static final java.lang.String getFullImplementingClassName(java.lang.String operatorName, java.util.List<java.lang.String> argTypeNames)
operatorName
- The invocation name of the operatorargTypeNames
- The ordered list of the type names of the arguments to the operator.public static OperatorImplementationsManager getInstance()
public final long cacheSize()
public OperatorImplementation_V0104 getEqualityOperatorImplementation(java.lang.String typeName)
typeName
- the name of the type whose equality operator implementation object is to be returnedpublic final OperatorImplementation_V0104 getOperatorImplementation(NameIdentifier operatorName, java.util.List<NameIdentifier> argTypeNames) throws NotFoundException
operatorName
- The name of the operator whose implementation object is to be fetchedargTypeNames
- The ordered list of the type names of the arguments to the operator.NotFoundException
- If no implementation could be returnedpublic final OperatorImplementation_V0104 getOperatorImplementation(NameIdentifier operatorName, NameIdentifier... argTypeNames) throws NotFoundException
operatorName
- The name of the operator whose implementation object is to be fetchedargTypeNames
- The ordered list of the type names of the arguments to the operator.NotFoundException
- If no implementation could be returned@Deprecated public final OperatorImplementation_V0104 getOperatorImplementation(java.lang.String operatorName, java.util.List<java.lang.String> argTypeNames) throws NotFoundException
operatorName
- The name of the operator whose implementation object is to be fetchedargTypeNames
- The ordered list of the type names of the arguments to the operator.NotFoundException
- If no implementation could be returnedpublic final OperatorImplementation_V0104 getOperatorImplementationWithoutException(NameIdentifier operatorName, java.util.List<NameIdentifier> argTypeNames)
operatorName
- The name of the operator whose implementation object is to be fetchedargTypeNames
- The ordered list of the type names of the arguments to the operator.public final OperatorImplementation_V0104 getOperatorImplementationWithoutException(NameIdentifier operatorName, NameIdentifier... argTypeNames)
operatorName
- The name of the operator whose implementation object is to be fetchedargTypeNames
- The ordered list of the type names of the arguments to the operator.@Deprecated public final OperatorImplementation_V0104 getOperatorImplementationWithoutException(java.lang.String operatorName, java.util.List<java.lang.String> argTypeNames)
operatorName
- The name of the operator whose implementation object is to be fetchedargTypeNames
- The ordered list of the type names of the arguments to the operator.public OperatorImplementation_V0104 getOrderingOperatorImplementation(java.lang.String typeName)
typeName
- the name of the type whose ordering operator implementation is to be returnedpublic static final boolean isPossibleGenericOperator(NameIdentifier operatorInvocationName)
operatorInvocationName
- The invocation name of the operator@Deprecated public static final boolean isPossibleGenericOperator(java.lang.String operatorInvocationName)
isPossibleGenericOperator(NameIdentifier)
operatorInvocationName
- The invocation name of the operatorpublic final void removeAllOperatorsForType(NameIdentifier typeName)
typeName
- The type name whose related operators are all to be removedpublic final void reset()