2046 public boolean isVarArgs() {
2047 return (flags() & VARARGS) != 0;
2048 }
2049
2050 @DefinedBy(Api.LANGUAGE_MODEL)
2051 public boolean isDefault() {
2052 return (flags() & DEFAULT) != 0;
2053 }
2054
2055 @DefinedBy(Api.LANGUAGE_MODEL)
2056 public <R, P> R accept(ElementVisitor<R, P> v, P p) {
2057 return v.visitExecutable(this, p);
2058 }
2059
2060 public <R, P> R accept(Symbol.Visitor<R, P> v, P p) {
2061 return v.visitMethodSymbol(this, p);
2062 }
2063
2064 @DefinedBy(Api.LANGUAGE_MODEL)
2065 public Type getReceiverType() {
2066 return asType().getReceiverType();
2067 }
2068
2069 @DefinedBy(Api.LANGUAGE_MODEL)
2070 public Type getReturnType() {
2071 return asType().getReturnType();
2072 }
2073
2074 @DefinedBy(Api.LANGUAGE_MODEL)
2075 public List<Type> getThrownTypes() {
2076 return asType().getThrownTypes();
2077 }
2078 }
2079
2080 /** A class for invokedynamic method calls.
2081 */
2082 public static class DynamicMethodSymbol extends MethodSymbol implements Dynamic {
2083
2084 public LoadableConstant[] staticArgs;
2085 public MethodHandleSymbol bsm;
2086
|
2046 public boolean isVarArgs() {
2047 return (flags() & VARARGS) != 0;
2048 }
2049
2050 @DefinedBy(Api.LANGUAGE_MODEL)
2051 public boolean isDefault() {
2052 return (flags() & DEFAULT) != 0;
2053 }
2054
2055 @DefinedBy(Api.LANGUAGE_MODEL)
2056 public <R, P> R accept(ElementVisitor<R, P> v, P p) {
2057 return v.visitExecutable(this, p);
2058 }
2059
2060 public <R, P> R accept(Symbol.Visitor<R, P> v, P p) {
2061 return v.visitMethodSymbol(this, p);
2062 }
2063
2064 @DefinedBy(Api.LANGUAGE_MODEL)
2065 public Type getReceiverType() {
2066 Type result = asType().getReceiverType();
2067 return (result == null) ? Type.noType : result;
2068 }
2069
2070 @DefinedBy(Api.LANGUAGE_MODEL)
2071 public Type getReturnType() {
2072 return asType().getReturnType();
2073 }
2074
2075 @DefinedBy(Api.LANGUAGE_MODEL)
2076 public List<Type> getThrownTypes() {
2077 return asType().getThrownTypes();
2078 }
2079 }
2080
2081 /** A class for invokedynamic method calls.
2082 */
2083 public static class DynamicMethodSymbol extends MethodSymbol implements Dynamic {
2084
2085 public LoadableConstant[] staticArgs;
2086 public MethodHandleSymbol bsm;
2087
|