public class InputVariables
extends java.lang.Object
Constructor and Description |
---|
InputVariables(java.util.List<? extends PsiVariable> inputVariables,
Project project,
LocalSearchScope scope,
boolean foldingAvailable,
java.util.Set<? extends PsiField> usedInstanceFields) |
Modifier and Type | Method and Description |
---|---|
void |
annotateWithParameter(PsiJavaCodeReferenceElement reference) |
void |
appendCallArguments(VariableData data,
java.lang.StringBuilder buffer) |
boolean |
contains(PsiVariable variable) |
InputVariables |
copy() |
InputVariables |
copyWithoutFolding() |
void |
foldExtractedParameter(PsiVariable extractedParameter,
PsiExpression value) |
com.intellij.refactoring.extractMethod.ParametersFolder |
getFolding() |
java.util.List<VariableData> |
getInputVariables() |
boolean |
hasInstanceFields() |
boolean |
isFoldable() |
boolean |
isFoldingSelectedByDefault() |
boolean |
isPassFields() |
void |
removeParametersUsedInExitsOnly(PsiElement codeFragment,
java.util.Collection<? extends PsiStatement> exitStatements,
ControlFlow controlFlow,
int startOffset,
int endOffset) |
PsiExpression |
replaceWrappedReferences(PsiElement [] elements,
PsiExpression expression) |
void |
setFoldingAvailable(boolean foldingAvailable) |
void |
setPassFields(boolean passFields) |
boolean |
toDeclareInsideBody(PsiVariable variable) |
public InputVariables(java.util.List<? extends PsiVariable> inputVariables, Project project, LocalSearchScope scope, boolean foldingAvailable, java.util.Set<? extends PsiField> usedInstanceFields)
public boolean isFoldable()
public void setPassFields(boolean passFields)
public boolean isPassFields()
public java.util.List<VariableData> getInputVariables()
public PsiExpression replaceWrappedReferences(PsiElement [] elements, PsiExpression expression)
public boolean toDeclareInsideBody(PsiVariable variable)
public boolean contains(PsiVariable variable)
public void removeParametersUsedInExitsOnly(PsiElement codeFragment, java.util.Collection<? extends PsiStatement> exitStatements, ControlFlow controlFlow, int startOffset, int endOffset)
public InputVariables copy()
public InputVariables copyWithoutFolding()
public void appendCallArguments(VariableData data, java.lang.StringBuilder buffer)
public com.intellij.refactoring.extractMethod.ParametersFolder getFolding()
public void setFoldingAvailable(boolean foldingAvailable)
public void annotateWithParameter(PsiJavaCodeReferenceElement reference)
public void foldExtractedParameter(PsiVariable extractedParameter, PsiExpression value)
public boolean isFoldingSelectedByDefault()
public boolean hasInstanceFields()