<commit_before>package kalang.core;

import java.util.Arrays;
import javax.annotation.Nullable;
import kalang.ast.ClassNode;
import kalang.util.AstUtil;
import kalang.util.TypeUtil;

/**
 *
 * @author <NAME>
 */
public class WildcardType extends ObjectType {
    
    //TODO why upperBounds is array
    private Type[] upperBounds;
    
    //TODO why lowerBounds is array
    private Type[] lowerBounds;
    
    static ClassNode getClassNode(Type[] upperBounds,Type[] lowerBounds){
        if(lowerBounds!=null && lowerBounds.length>0){
            return Types.getRootType().getClassNode();
        }else if(upperBounds!=null && upperBounds.length>0){
            Type ub = upperBounds[0];
            if(ub instanceof ClassType){
                ClassType ct = (ClassType) ub;<commit_msg>add todo<commit_after>package kalang.core;

import java.util.Arrays;
import javax.annotation.Nullable;
import kalang.ast.ClassNode;
import kalang.util.AstUtil;
import kalang.util.TypeUtil;

/**
 *
 * @author <NAME>
 */
public class WildcardType extends ObjectType {
    
    //TODO why upperBounds is array
    private Type[] upperBounds;
    
    //TODO why lowerBounds is array
    private Type[] lowerBounds;
    
    static ClassNode getClassNode(Type[] upperBounds,Type[] lowerBounds){
        if(lowerBounds!=null && lowerBounds.length>0){
            //TODO Is Object's class node?
            return Types.getRootType().getClassNode();
        }else if(upperBounds!=null && upperBounds.length>0){
            Type ub = upperBounds[0];
            if(ub instanceof ClassType){
                ClassType ct = (ClassType) ub;
                //TODO may be interface
{'fraction_non_alphanumeric': 0.10709987966305656, 'fraction_numerical': 0.0036101083032490976, 'mean_word_length': 2.8584686774941996, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4032090', 'n_tokens_mistral': 483, 'n_tokens_neox': 477, 'n_words': 123}