public static class WideningCategories.LowestUpperBoundClassNode
extends ClassNode
This ClassNode specialization is used when the lowest upper bound of two types cannot be represented by an existing type. For example, if B extends A, C extends A and both C and B implement a common interface not implemented by A, then we use this class to represent the bound.
At compile time, some classes like AsmClassGenerator need to know about a real class node, so we compute a "compile time" node which will be used to return a name and a type class.
| Fields inherited from class | Fields |
|---|---|
class ClassNode |
EMPTY_ARRAY, SUPER, THIS, clazz, isPrimaryNode, lazyInitLock |
| Constructor and description |
|---|
LowestUpperBoundClassNode(String name, ClassNode upper, ClassNode interfaces)Builds a public final type named name whose superclass is
upper and whose interfaces are interfaces. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public GenericsType |
asGenericsType() |
|
public String |
getLubName()Returns the internal name passed to the constructor. |
|
public String |
getName() |
|
public ClassNode |
getPlainNodeReference() |
|
public String |
getText() |
|
public Class |
getTypeClass() |
|
public String |
toString(boolean x) |
Builds a public final type named name whose superclass is
upper and whose interfaces are interfaces. The
interfaces are sorted by name. The printed form joins the upper
type and the interfaces with &, omitting Object.
When upper is Object and at least one interface
is present, the compile-time stand-in is the first interface
after that sort; otherwise it is upper. Generics from
the upper type and the interfaces are copied here when this node
uses generics.
name - internal name of the synthetic boundupper - superclass of the boundinterfaces - interfaces of the boundReturns the internal name passed to the constructor.
Copyright © 2003-2026 The Apache Software Foundation. All rights reserved.