public class CachedTypeChecker<C,O,P,PM> extends BasicTypeChecker<C,O,P,PM> implements TypeChecker.Cached<C,O,P>
TypeChecker.Cached<C,O,P>
Constructor and Description |
---|
CachedTypeChecker(Environment<?,C,O,P,?,PM,?,?,?,?,?,?> environment) |
Modifier and Type | Method and Description |
---|---|
P |
findAttribute(C owner,
String name)
Finds the most specific (re)definition of an attribute in the specified
classifier.
|
O |
getDynamicOperation(C dynamicType,
O staticOperation)
Return the operation of dynamicType that exactly match the staticOperation, or null
if there is none or more than one.
|
void |
reset()
Reset the cache forcing lazy evaluations to restart.
|
void |
setBypass(boolean bypass)
Reset the cache and define its bypass state.
|
checkMutuallyComparable, commonSuperType, compatibleTypeMatch, exactTypeMatch, findOperationMatching, findSignalMatching, getAttributes, getOperations, getPropertyType, getRelationship, getResultType, isStandardLibraryFeature, matchArgs, resolveGenericSignature
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkMutuallyComparable, commonSuperType, compatibleTypeMatch, exactTypeMatch, findOperationMatching, findSignalMatching, getAttributes, getOperations, getPropertyType, getRelationship, getResultType, isStandardLibraryFeature, matchArgs, resolveGenericSignature
public CachedTypeChecker(Environment<?,C,O,P,?,PM,?,?,?,?,?,?> environment)
public P findAttribute(C owner, String name)
AbstractTypeChecker
findAttribute
in interface TypeChecker<C,O,P>
findAttribute
in class AbstractTypeChecker<C,O,P,PM>
owner
- the classifier to searchname
- the name of the operationnull
if not foundpublic O getDynamicOperation(C dynamicType, O staticOperation)
getDynamicOperation
in interface TypeChecker.Cached<C,O,P>
public void reset()
TypeChecker.Cached
reset
in interface TypeChecker.Cached<C,O,P>
public void setBypass(boolean bypass)
TypeChecker.Cached
setBypass
in interface TypeChecker.Cached<C,O,P>
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.