MCPcopy Create free account
hub / github.com/antlr/codebuff / getExceptionTypes

Method getExceptionTypes

output/java_guava/1.4.19/Invokable.java:139–148  ·  view source on GitHub ↗

Returns all declared exception types of this Invokable.

()

Source from the content-addressed store, hash-verified

137
138
139 public final ImmutableList<TypeToken<? extends Throwable>> getExceptionTypes() {
140 ImmutableList.Builder<TypeToken<? extends Throwable>> builder = ImmutableList.builder();
141 for (Type type : getGenericExceptionTypes()) {
142 // getGenericExceptionTypes() will never return a type that's not exception
143 @SuppressWarnings("unchecked")
144 TypeToken<? extends Throwable> exceptionType = (TypeToken<? extends Throwable>) TypeToken.of(type);
145 builder.add(exceptionType);
146 }
147 return builder.build();
148 }
149
150 /**
151 * Explicitly specifies the return type of this {@code Invokable}. For example:

Callers 1

declaresInterruptedExMethod · 0.45

Calls 5

builderMethod · 0.95
ofMethod · 0.95
addMethod · 0.65
buildMethod · 0.45

Tested by

no test coverage detected