Class TypeParametersToTypeArgumentsBinder
java.lang.Object
org.jd.core.v1.service.converter.classfiletojavasyntax.util.TypeParametersToTypeArgumentsBinder
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected class
protected static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BaseTypeToTypeArgumentVisitor
protected BindTypesToTypesVisitor
protected Map
<String, TypeArgument> protected String
protected PopulateBindingsWithTypeArgumentVisitor
protected PopulateBindingsWithTypeParameterVisitor
protected static final TypeParametersToTypeArgumentsBinder.RemoveNonWildcardTypeArgumentsVisitor
protected SearchInTypeArgumentVisitor
protected boolean
protected TypeArgumentToTypeVisitor
protected TypeMaker
-
Constructor Summary
ConstructorsConstructorDescriptionTypeParametersToTypeArgumentsBinder
(TypeMaker typeMaker, String internalTypeName, ClassFileConstructorOrMethodDeclaration comd) -
Method Summary
Modifier and TypeMethodDescriptionprotected BaseType
bind
(Map<String, TypeArgument> bindings, BaseType parameterTypes) protected void
bind
(Type type, ClassFileMethodInvocationExpression mie) protected void
bind
(Type type, ClassFileNewExpression ne) protected void
bindParameters
(BaseType parameterTypes, BaseExpression parameters) void
bindParameterTypesWithArgumentTypes
(Type type, Expression expression) protected Type
checkTypeArguments
(Type type, AbstractLocalVariable localVariable) protected BaseType
protected Map
<String, TypeArgument> createBindings
(Expression expression, BaseTypeParameter typeParameters, BaseTypeArgument typeArguments, BaseTypeParameter methodTypeParameters, Type returnType, Type returnExpressionType, BaseType parameterTypes, BaseExpression parameters) protected boolean
eraseTypeArguments
(Expression expression, BaseTypeParameter typeParameters, BaseTypeArgument typeArguments) protected Type
getExpressionType
(Expression expression) protected Type
protected Type
newConstructorInvocationExpression
(int lineNumber, ObjectType objectType, String descriptor, TypeMaker.MethodTypes methodTypes, BaseExpression parameters) newFieldReferenceExpression
(int lineNumber, Type type, Expression expression, ObjectType objectType, String name, String descriptor) newMethodInvocationExpression
(int lineNumber, Expression expression, ObjectType objectType, String name, String descriptor, TypeMaker.MethodTypes methodTypes, BaseExpression parameters) newSuperConstructorInvocationExpression
(int lineNumber, ObjectType objectType, String descriptor, TypeMaker.MethodTypes methodTypes, BaseExpression parameters) protected void
populateBindingsWithTypeArgument
(Map<String, TypeArgument> bindings, Map<String, BaseType> typeBounds, Type type, Expression expression) static void
staticBindParameterTypesWithArgumentTypes
(Type type, Expression expression) void
updateNewExpression
(ClassFileNewExpression ne, String descriptor, TypeMaker.MethodTypes methodTypes, BaseExpression parameters)
-
Field Details
-
REMOVE_NON_WILDCARD_TYPE_ARGUMENTS_VISITOR
protected static final TypeParametersToTypeArgumentsBinder.RemoveNonWildcardTypeArgumentsVisitor REMOVE_NON_WILDCARD_TYPE_ARGUMENTS_VISITOR -
populateBindingsWithTypeParameterVisitor
-
bindTypesToTypesVisitor
-
searchInTypeArgumentVisitor
-
typeArgumentToTypeVisitor
-
baseTypeToTypeArgumentVisitor
-
bindTypeParametersToNonWildcardTypeArgumentsVisitor
protected BindTypeParametersToNonWildcardTypeArgumentsVisitor bindTypeParametersToNonWildcardTypeArgumentsVisitor -
bindVisitor
-
typeMaker
-
internalTypeName
-
staticMethod
protected boolean staticMethod -
populateBindingsWithTypeArgumentVisitor
-
contextualBindings
-
contextualTypeBounds
-
-
Constructor Details
-
TypeParametersToTypeArgumentsBinder
public TypeParametersToTypeArgumentsBinder(TypeMaker typeMaker, String internalTypeName, ClassFileConstructorOrMethodDeclaration comd)
-
-
Method Details
-
newConstructorInvocationExpression
public ClassFileConstructorInvocationExpression newConstructorInvocationExpression(int lineNumber, ObjectType objectType, String descriptor, TypeMaker.MethodTypes methodTypes, BaseExpression parameters) -
newSuperConstructorInvocationExpression
public ClassFileSuperConstructorInvocationExpression newSuperConstructorInvocationExpression(int lineNumber, ObjectType objectType, String descriptor, TypeMaker.MethodTypes methodTypes, BaseExpression parameters) -
newMethodInvocationExpression
public ClassFileMethodInvocationExpression newMethodInvocationExpression(int lineNumber, Expression expression, ObjectType objectType, String name, String descriptor, TypeMaker.MethodTypes methodTypes, BaseExpression parameters) -
newFieldReferenceExpression
public FieldReferenceExpression newFieldReferenceExpression(int lineNumber, Type type, Expression expression, ObjectType objectType, String name, String descriptor) -
updateNewExpression
public void updateNewExpression(ClassFileNewExpression ne, String descriptor, TypeMaker.MethodTypes methodTypes, BaseExpression parameters) -
bindParameterTypesWithArgumentTypes
-
checkTypeArguments
-
bind
-
bind
-
bindParameters
-
staticBindParameterTypesWithArgumentTypes
-
createBindings
protected Map<String,TypeArgument> createBindings(Expression expression, BaseTypeParameter typeParameters, BaseTypeArgument typeArguments, BaseTypeParameter methodTypeParameters, Type returnType, Type returnExpressionType, BaseType parameterTypes, BaseExpression parameters) -
eraseTypeArguments
protected boolean eraseTypeArguments(Expression expression, BaseTypeParameter typeParameters, BaseTypeArgument typeArguments) -
populateBindingsWithTypeArgument
protected void populateBindingsWithTypeArgument(Map<String, TypeArgument> bindings, Map<String, BaseType> typeBounds, Type type, Expression expression) -
bind
-
clone
-
getExpressionType
-
getExpressionType
-
getExpressionType
-