Class ExtractRefactoringStatementAnalyzer.ExtractingContentInformation
java.lang.Object
com._1c.g5.v8.dt.bsl.ui.refactoring.ExtractRefactoringStatementAnalyzer.ExtractingContentInformation
- Enclosing class:
- ExtractRefactoringStatementAnalyzer
Class contains all information for creating method in extracting refactoring
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets list of deprecated parameters name for extracting methodGets actual method pragmasGets list of parameters descriptionGets name of the variable returning from methodGets list names of variables which must be declared in methodGets list names of variables which must be initialize before method callbooleanisAsync()Gets flag detects that method must be 'Async' in Bsl modulebooleanisExport()Gets flag detects that method must be 'Export' in Bsl modulebooleanChecks that extracting method corresponding to expressionbooleanChecks that extracting method is functionbooleanGets flag that detects that operator "return" must be before method callvoidsetAsync(boolean async) Sets flag detects that method must be 'Async' in Bsl modulevoidsetDepricateParamNames(List<CaseInsensitiveString> depricateParamNames) Sets list of deprecated parameters name for extracting methodvoidsetExport(boolean export) Sets flag detects that method must be 'Export' in Bsl modulevoidsetExpression(boolean isExpression) Sets that extracting method corresponding to expressionvoidsetFunction(boolean isFunction) Sets that exptracting method is functionvoidsetMethodPragmas(String methodPragmas) Sets method pragmasvoidSets list of parameters descriptionvoidsetReturnVariableName(String returnVariableName) Sets name of the variable returning from methodvoidsetVariablesForDeclareInMethod(List<String> variablesForDeclareInMethod) Sets list names of variables which must be declared in methodvoidsetVariablesNamesInitializeBeforeMethodCall(List<String> variablesNamesInitializeBeforeMethodCall) Sets list names of variables which must be initialize before method call
-
Constructor Details
-
ExtractingContentInformation
public ExtractingContentInformation()
-
-
Method Details
-
getMethodPragmas
Gets actual method pragmas- Returns:
- the methodPragmas or empty string if no pragmas, can't be
null
-
setMethodPragmas
Sets method pragmas- Parameters:
methodPragmas- method pragmas, can't benull
-
isFunction
public boolean isFunction()Checks that extracting method is function- Returns:
trueif extracting method is function,falseotherwise
-
setFunction
public void setFunction(boolean isFunction) Sets that exptracting method is function- Parameters:
isFunction- flag that exptracting method is function
-
isExpression
public boolean isExpression()Checks that extracting method corresponding to expression- Returns:
trueextracting method corresponding to expression,falseotherwise
-
setExpression
public void setExpression(boolean isExpression) Sets that extracting method corresponding to expression- Parameters:
isExpression- flag that extracting method corresponding to expression
-
getReturnVariableName
Gets name of the variable returning from method- Returns:
- name of the variable returning from method, or empty, if method not return variable
-
setReturnVariableName
Sets name of the variable returning from method- Parameters:
returnVariableName- name of the variable returning from method, or empty, if method not return variable, can't benull
-
isExport
public boolean isExport()Gets flag detects that method must be 'Export' in Bsl module- Returns:
trueif method must be 'Export',falseotherwise
-
setExport
public void setExport(boolean export) Sets flag detects that method must be 'Export' in Bsl module- Parameters:
export-trueif method must be 'Export',falseotherwise
-
isAsync
public boolean isAsync()Gets flag detects that method must be 'Async' in Bsl module- Returns:
trueif method must be 'Async',falseotherwise
-
setAsync
public void setAsync(boolean async) Sets flag detects that method must be 'Async' in Bsl module- Parameters:
export-trueif method must be 'Async',falseotherwise
-
getParams
Gets list of parameters description- Returns:
- list of parameters description, can't be
null
-
setParams
Sets list of parameters description- Parameters:
params- list of parameters description, can't benull
-
getDepricateParamNames
Gets list of deprecated parameters name for extracting method- Returns:
- list of deprecated parameters name for extracting method, can't be
null
-
setDepricateParamNames
Sets list of deprecated parameters name for extracting method- Parameters:
depricateParamNames- list of deprecated parameters name for extracting method, can't benull
-
getVariablesNamesInitializeBeforeMethodCall
Gets list names of variables which must be initialize before method call- Returns:
- list names of variables which must be initialize before method call, can't be
null
-
setVariablesNamesInitializeBeforeMethodCall
public void setVariablesNamesInitializeBeforeMethodCall(List<String> variablesNamesInitializeBeforeMethodCall) Sets list names of variables which must be initialize before method call- Parameters:
variablesNamesInitializeBeforeMethodCall- list names of variables which must be initialize before method call, can't benull
-
getVariablesForDeclareInMethod
Gets list names of variables which must be declared in method- Returns:
- list names of variables which must be declared in method, can't be
null
-
setVariablesForDeclareInMethod
Sets list names of variables which must be declared in method- Parameters:
list- names of variables which must be declared in method, can't benull
-
isReturnMethod
public boolean isReturnMethod()Gets flag that detects that operator "return" must be before method call- Returns:
trueif operator "return" must be before method call,falseotherwise
-