public FunctionTypeKind getFunctionTypeKind(ParameterizedTypeReference typeReference) { JvmType type = typeReference.getType(); if (type.eClass() == TypesPackage.Literals.JVM_GENERIC_TYPE) { JvmDeclaredType outerType = ((JvmGenericType) type).getDeclaringType(); if (outerType != null) { if (Procedures.class.getName().equals(outerType.getIdentifier())) { return FunctionTypeKind.PROCEDURE; } if (Functions.class.getName().equals(outerType.getIdentifier())) { return FunctionTypeKind.FUNCTION; } } } return FunctionTypeKind.NONE; }
public void registerAllTypes(final JvmType type, final Function1<? super String, ? extends Boolean> acceptor) { if (((type == null) || type.eIsProxy())) { return; } if (((!this.isLocal(type)) && (acceptor.apply(type.getIdentifier())).booleanValue())) { boolean _matched = false; if (type instanceof JvmGenericType) { _matched=true; this.registerAllTypes(((JvmGenericType)type).getDeclaringType(), acceptor); JvmTypeReference _extendedClass = null; if (((JvmGenericType)type)!=null) { _extendedClass=((JvmGenericType)type).getExtendedClass(); } JvmType _type = null; if (_extendedClass!=null) { _type=_extendedClass.getType(); } this.registerAllTypes(_type, acceptor); final Consumer<JvmTypeReference> _function = (JvmTypeReference it) -> { JvmType _type_1 = null; if (it!=null) { _type_1=it.getType(); } this.registerAllTypes(_type_1, acceptor); }; ((JvmGenericType)type).getExtendedInterfaces().forEach(_function); } } }
boolean isStatic = source.isStatic() && !isTopLevel(source); if (!isStatic) { JvmDeclaredType declaringType = inferredJvmType.getDeclaringType(); if (declaringType instanceof JvmGenericType) { if (((JvmGenericType) declaringType).isInterface())