Class TypeMatcher
java.lang.Object
org.openzen.zenscript.codemodel.type.TypeMatcher
- All Implemented Interfaces:
TypeVisitorWithContext<TypeMatcher.Matching,Boolean, RuntimeException>
public class TypeMatcher
extends Object
implements TypeVisitorWithContext<TypeMatcher.Matching,Boolean,RuntimeException>
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic Map<TypeParameter, TypeID> match(LocalMemberCache cache, TypeID type, TypeID pattern) visitArray(TypeMatcher.Matching context, ArrayTypeID array) visitAssoc(TypeMatcher.Matching context, AssocTypeID assoc) visitBasic(TypeMatcher.Matching context, BasicTypeID basic) visitDefinition(TypeMatcher.Matching context, DefinitionTypeID definition) visitFunction(TypeMatcher.Matching context, FunctionTypeID function) visitGeneric(TypeMatcher.Matching context, GenericTypeID generic) visitGenericMap(TypeMatcher.Matching context, GenericMapTypeID map) visitInvalid(TypeMatcher.Matching context, InvalidTypeID invalid) visitIterator(TypeMatcher.Matching context, IteratorTypeID iterator) visitOptional(TypeMatcher.Matching context, OptionalTypeID type) visitRange(TypeMatcher.Matching context, RangeTypeID range)
-
Method Details
-
match
-
visitBasic
- Specified by:
visitBasicin interfaceTypeVisitorWithContext<TypeMatcher.Matching,Boolean, RuntimeException>
-
visitArray
- Specified by:
visitArrayin interfaceTypeVisitorWithContext<TypeMatcher.Matching,Boolean, RuntimeException>
-
visitAssoc
- Specified by:
visitAssocin interfaceTypeVisitorWithContext<TypeMatcher.Matching,Boolean, RuntimeException>
-
visitInvalid
- Specified by:
visitInvalidin interfaceTypeVisitorWithContext<TypeMatcher.Matching,Boolean, RuntimeException>
-
visitIterator
- Specified by:
visitIteratorin interfaceTypeVisitorWithContext<TypeMatcher.Matching,Boolean, RuntimeException>
-
visitFunction
- Specified by:
visitFunctionin interfaceTypeVisitorWithContext<TypeMatcher.Matching,Boolean, RuntimeException>
-
visitDefinition
- Specified by:
visitDefinitionin interfaceTypeVisitorWithContext<TypeMatcher.Matching,Boolean, RuntimeException>
-
visitGeneric
- Specified by:
visitGenericin interfaceTypeVisitorWithContext<TypeMatcher.Matching,Boolean, RuntimeException>
-
visitRange
- Specified by:
visitRangein interfaceTypeVisitorWithContext<TypeMatcher.Matching,Boolean, RuntimeException>
-
visitOptional
- Specified by:
visitOptionalin interfaceTypeVisitorWithContext<TypeMatcher.Matching,Boolean, RuntimeException>
-
visitGenericMap
- Specified by:
visitGenericMapin interfaceTypeVisitorWithContext<TypeMatcher.Matching,Boolean, RuntimeException>
-