-
-
Notifications
You must be signed in to change notification settings - Fork 342
/
CtAnonymousExecutable.java
62 lines (48 loc) · 1.74 KB
/
CtAnonymousExecutable.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/*
* SPDX-License-Identifier: (MIT OR CECILL-C)
*
* Copyright (C) 2006-2023 INRIA and contributors
*
* Spoon is available either under the terms of the MIT License (see LICENSE-MIT.txt) or the Cecill-C License (see LICENSE-CECILL-C.txt). You as the user are entitled to choose the terms under which to adopt Spoon.
*/
package spoon.reflect.declaration;
import org.jspecify.annotations.Nullable;
import spoon.reflect.reference.CtTypeReference;
import spoon.support.UnsettableProperty;
import java.util.List;
import java.util.Set;
/**
* This element defines an anonymous executable block declaration in a class.
*
* @see spoon.reflect.declaration.CtClass
*/
public interface CtAnonymousExecutable extends CtExecutable<Void>, CtTypeMember {
@Override
CtAnonymousExecutable clone();
@Override
@UnsettableProperty
<C extends CtNamedElement> C setSimpleName(String simpleName);
@Override
@UnsettableProperty
<T extends CtExecutable<Void>> T setThrownTypes(Set<CtTypeReference<? extends Throwable>> thrownTypes);
@Override
@UnsettableProperty
<T extends CtExecutable<Void>> T setParameters(List<CtParameter<?>> parameters);
@Override
@UnsettableProperty
<C extends CtTypedElement> C setType(CtTypeReference type);
@Override
@UnsettableProperty
<T extends CtExecutable<Void>> T addParameter(CtParameter<?> parameter);
@Override
@UnsettableProperty
<T extends CtExecutable<Void>> T addParameterAt(int position, CtParameter<?> parameter);
@Override
@UnsettableProperty
<T extends CtExecutable<Void>> T addThrownType(CtTypeReference<? extends Throwable> throwType);
@UnsettableProperty
CtExecutable<?> setReceiverParameter(CtReceiverParameter receiverParameter);
@UnsettableProperty
@Nullable
CtReceiverParameter getReceiverParameter();
}