Interface Bootstrap
public interface Bootstrap
Represents an invoke dynamic bootstrap method which is bound to a
method
.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault Variable
Invoke a dynamically generated constant, or a dynamically generated method that has no parameters.Invoke a dynamically generated method.
-
Method Details
-
invoke
Invoke a dynamically generated constant, or a dynamically generated method that has no parameters.- Parameters:
type
- constant type or method return type; can be null for voidname
- constant or method name- Returns:
- the constant value, or the result of the method, which is null if void
- Throws:
IllegalArgumentException
- if the type is unsupported
-
invoke
Invoke a dynamically generated method.- Parameters:
returnType
- method return type; can be null for voidname
- method nametypes
- method parameter types; the entire array or individual elements can be null to infer the actual type from the corresponding valuevalues
- variables or constants- Returns:
- the result of the method, which is null if void
- Throws:
IllegalArgumentException
- if a type is unsupported, or if a value isn't a variable or a supported constantIllegalStateException
- if this is a condy bootstrap
-