package bluej.parser.entity;

import bluej.debugger.gentype.GenTypeParameter;
import bluej.debugger.gentype.GenTypeSolid;
import bluej.debugger.gentype.GenTypeSuper;
import threadchecker.OnThread;
import threadchecker.Tag;


| Represents a "? super ..." wildcard entity, where the bound has not yet been resolved. | * * @author Davin McCall */ public class WildcardSuperEntity extends TypeArgumentEntity{ private JavaEntity superBound; | |
public WildcardSuperEntity(JavaEntity superBound) | |
{ | | this.superBound = superBound; | | } | | @Override | | @OnThread(Tag.FXPlatform) | | public GenTypeParameter getType() | | { | | TypeEntity ebType = superBound.resolveAsType(); | | if (ebType != null) { | | GenTypeSolid cbType = ebType.getType().asSolid(); | | if (cbType != null) { | | return new GenTypeSuper(cbType); | | } | | } | | return null; | | } | | }




7 neLoCode + 19 LoComm