public class MethodCallState
extends java.lang.Object
Constructor and Description |
---|
MethodCallState(CtExecutable<?> method) |
Modifier and Type | Method and Description |
---|---|
void |
add(CtExecutable<?> method)
Adds a CtExecutable to the methods invoking this method.
|
void |
add(CtType<?> type)
Adds a CtType to the fields invoking this method.
|
boolean |
checkCallState()
Checks the call state for the method.
|
boolean |
contains(CtExecutable<?> o) |
boolean |
contains(CtType<?> o) |
java.util.Collection<CtType<?>> |
getCallerFields()
Returns a collection containing all types invoking the method with a field.
|
java.util.Collection<CtExecutable<?>> |
getCallerMethods()
Returns a collection containing all CtExecutable invoking the method.
|
CtExecutable<?> |
getMethod()
Getter for the method, without saved call state.
|
void |
remove(CtExecutable<?> o) |
void |
remove(CtType<?> o) |
public MethodCallState(CtExecutable<?> method)
method
- for saving it's call state.public void add(CtExecutable<?> method)
method
- invoking the method.Collection.add(java.lang.Object)
public void add(CtType<?> type)
type
- invoking the method with an initializer.Collection.add(java.lang.Object)
public CtExecutable<?> getMethod()
public java.util.Collection<CtType<?>> getCallerFields()
public java.util.Collection<CtExecutable<?>> getCallerMethods()
public boolean checkCallState()
Collection.isEmpty()
public boolean contains(CtType<?> o)
public boolean contains(CtExecutable<?> o)
public void remove(CtType<?> o)
public void remove(CtExecutable<?> o)
Copyright © 2007–2021 Inria. All rights reserved.