|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgudusoft.gsqlparser.pp.processor.ProcessorFactory
public class ProcessorFactory
a formattor para processor factory used for create the processor instance
Constructor Summary | |
---|---|
ProcessorFactory()
|
Method Summary | ||
---|---|---|
static AppendNewLineAfterAndBeforeReverseKeyWordProcessor |
appendNewLineAfterAndBeforeReverseKeyWordProcessor(GFmtOpt option,
boolean inNewLine,
java.lang.String startKeyword,
java.lang.String endKeyword)
create the keyword in new line processor |
|
static AppendNewLineAfterReverseKeyWordProcessor |
appendNewLineAfterReverseKeyWordProcessor(GFmtOpt option,
boolean isItemInNewLine,
java.lang.String keyword)
create the new line processor for item list |
|
static void |
clear(java.lang.String sessionId)
|
|
static
|
create(java.lang.Class<E> type,
GFmtOpt option,
java.lang.Object... parameters)
create a instance |
|
static AlignAliasProcessor |
createAlignAliasProcessor(GFmtOpt option,
boolean option2,
TAlignStyle style)
create the alias processor |
|
static AlterTableOptionItemAlignProcessor |
createAlterTableOptionAlignProcessor(GFmtOpt option,
boolean inNewLine)
|
|
static AppendLineAfterInsertTableNameProcessor |
createAppendLineAfterInsertTableNameProcessor(GFmtOpt option)
create the processor used to append an new line after the table name |
|
static AppendNewLineBeforeKeyWordProcessor |
createAppendNewLineBeforeKeyWordProcessor(GFmtOpt option,
boolean inNewLine,
java.lang.String keyword,
boolean completely)
|
|
static AppendNewLineBeforeReverseKeyWordProcessor |
createAppendNewLineBeforeReverseKeyWordProcessor(GFmtOpt option,
boolean inNewLine,
java.lang.String keyword)
create the processor used to append new line before the keyword |
|
static CapitalisationProcessor |
createCapitalisationProcessor(GFmtOpt option)
create the processor used to capitalize the text |
|
static CaseWhenProcessor |
createCaseWhenProcessor(GFmtOpt option,
java.lang.Boolean caseWhenThenInSameLine,
java.lang.Integer indentCaseFromSwitch)
create the processor used to process the 'case when' paramters |
|
static ColumnlistCommaProcessor |
createColumnlistCommaProcessor(GFmtOpt option,
TLinefeedsCommaOption commaOption,
TAlignStyle option2)
create the comma processor |
|
static CombineWhitespaceAndClearReturnProcessor |
createCombineWhitespaceAndClearReturnProcessor(GFmtOpt opt)
|
|
static CreateFuncFirstParamInNewlineProcessor |
createCreateFuncFirstParamInNewlineProcessor(GFmtOpt opt,
java.lang.Boolean beStyleFunctionFirstParamInNewline)
|
|
static CreateFuncLeftBEProcessor |
createCreateFuncLeftBEProcessor(GFmtOpt opt,
java.lang.Boolean beStyleFunctionLeftBEOnNewline,
java.lang.Integer beStyleFunctionLeftBEIndentSize)
|
|
static CreateFuncReturnsTableProcessor |
createCreateFuncReturnsTableProcessor(GFmtOpt opt)
|
|
static CreateFuncRightBEProcessor |
createCreateFuncRightBEProcessor(GFmtOpt opt,
java.lang.Boolean beStyleFunctionRightBEOnNewline,
java.lang.Integer beStyleFunctionRightBEIndentSize)
|
|
static CreateFuncWSPaddingParenthesesProcessor |
createCreateFuncWSPaddingParenthesesProcessor(GFmtOpt opt)
|
|
static CreateTableBEInNewLineProcessor |
createCreateTableBEInNewLineProcessor(GFmtOpt option,
java.lang.Boolean leftBEOnNewline,
java.lang.Boolean rightBeOnNewline,
java.lang.Boolean itemListInNewLine)
create the processor used to insert new line after the parenthesis |
|
static CreateTableConstraintAlignProcessor |
createCreateTableConstraintAlignProcessor(GFmtOpt option)
|
|
static CreateTableItemAlignProcessor |
createCreateTableItemAlignProcessor(GFmtOpt option,
TAlignOption alignOption)
create the processor used to align the items |
|
static CreateViewReturnProcessor |
createCreateViewReturnProcessor(GFmtOpt opt)
|
|
static CTEProcessor |
createCTEProcessor(GFmtOpt option,
java.lang.Boolean cteNewlineBeforeAs)
|
|
static DeclareVarItemAlignProcessor |
createDeclareVarItemAlignProcessor(GFmtOpt option)
used to align the variable names |
|
static DeleteKeyWordAlignProcessor |
createDeleteKeyWordAlignProcessor(GFmtOpt option)
create the processor used to align the keywords in the delete statement |
|
static DistinctKeyWordProcessor |
createDistinctKeyWordProcessor(GFmtOpt option,
boolean isTreatDistinctAsVirtualColumn)
create the distinct keyword processor |
|
static ExecParaNewLineProcessor |
createExecParaNewLineProcessor(GFmtOpt opt,
java.lang.Boolean linebreakBeforeParamInExec)
|
|
static ExpressionProcessor |
createExpressionProcessor(GFmtOpt option)
create the expression processor for all statements |
|
static ExpressionProcessor |
createExpressionProcessor(GFmtOpt option,
java.lang.Boolean isAndUnderWhere)
|
|
static IfStmtBEProcessor |
createIfStmtBEProcessor(GFmtOpt opt)
|
|
static InsertKeyWordAlignProcessor |
createInsertKeyWordAlignProcessor(GFmtOpt option)
create the processor used to align the keywords in insert statement |
|
static InsertOutputClauseProcessor |
createInsertOutputClauseProcessor(GFmtOpt opt)
|
|
static InsertValuesParenthsesAdjustProcessor |
createInsertValuesParenthsesAdjustProcessor(GFmtOpt option)
create the processor used to adjust the left parenthesis |
|
static JoinOnProcessor |
createJoinOnProcessor(GFmtOpt option,
boolean selectFromclauseJoinOnInNewline,
boolean alignJoinWithFromKeyword)
create the join on processor for the select statement |
|
static ReturnStmtProcessor |
createReturnStmtProcessor(GFmtOpt opt)
|
|
static SelectKeyWordAlignProcessor |
createSelectKeyWordAlignProcessor(GFmtOpt option)
create the processor used to align the keywords in select statement |
|
static UnionProcessor |
createUnionProcessor(GFmtOpt option)
create the union processor for the select statement |
|
static UpdateKeyWordAlignProcessor |
createUpdateKeyWordAlignProcessor(GFmtOpt option)
create the processor used to align the keywords in the update statement |
|
static
|
newInstance(java.lang.Class<E> type)
create a new processor instance |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProcessorFactory()
Method Detail |
---|
public static ColumnlistCommaProcessor createColumnlistCommaProcessor(GFmtOpt option, TLinefeedsCommaOption commaOption, TAlignStyle option2)
option
-
public static AlignAliasProcessor createAlignAliasProcessor(GFmtOpt option, boolean option2, TAlignStyle style)
option
-
public static AppendNewLineAfterReverseKeyWordProcessor appendNewLineAfterReverseKeyWordProcessor(GFmtOpt option, boolean isItemInNewLine, java.lang.String keyword)
option
-
public static DistinctKeyWordProcessor createDistinctKeyWordProcessor(GFmtOpt option, boolean isTreatDistinctAsVirtualColumn)
style
- isItemInNewLine
- isTreatDistinctAsVirtualColumn
-
public static AppendNewLineAfterAndBeforeReverseKeyWordProcessor appendNewLineAfterAndBeforeReverseKeyWordProcessor(GFmtOpt option, boolean inNewLine, java.lang.String startKeyword, java.lang.String endKeyword)
inNewLine
- keyword
-
public static JoinOnProcessor createJoinOnProcessor(GFmtOpt option, boolean selectFromclauseJoinOnInNewline, boolean alignJoinWithFromKeyword)
selectFromclauseJoinOnInNewline
-
public static UnionProcessor createUnionProcessor(GFmtOpt option)
option
-
public static ExpressionProcessor createExpressionProcessor(GFmtOpt option)
option
-
public static ExpressionProcessor createExpressionProcessor(GFmtOpt option, java.lang.Boolean isAndUnderWhere)
public static CaseWhenProcessor createCaseWhenProcessor(GFmtOpt option, java.lang.Boolean caseWhenThenInSameLine, java.lang.Integer indentCaseFromSwitch)
option
- caseWhenThenInSameLine
- indentCaseFromSwitch
-
public static SelectKeyWordAlignProcessor createSelectKeyWordAlignProcessor(GFmtOpt option)
option
-
public static InsertKeyWordAlignProcessor createInsertKeyWordAlignProcessor(GFmtOpt option)
option
-
public static AppendLineAfterInsertTableNameProcessor createAppendLineAfterInsertTableNameProcessor(GFmtOpt option)
option
-
public static CapitalisationProcessor createCapitalisationProcessor(GFmtOpt option)
option
-
public static AppendNewLineBeforeReverseKeyWordProcessor createAppendNewLineBeforeReverseKeyWordProcessor(GFmtOpt option, boolean inNewLine, java.lang.String keyword)
option
- fromClauseInNewLine
- keyword
-
public static InsertValuesParenthsesAdjustProcessor createInsertValuesParenthsesAdjustProcessor(GFmtOpt option)
option
-
public static DeleteKeyWordAlignProcessor createDeleteKeyWordAlignProcessor(GFmtOpt option)
option
-
public static UpdateKeyWordAlignProcessor createUpdateKeyWordAlignProcessor(GFmtOpt option)
option
-
public static CreateTableBEInNewLineProcessor createCreateTableBEInNewLineProcessor(GFmtOpt option, java.lang.Boolean leftBEOnNewline, java.lang.Boolean rightBeOnNewline, java.lang.Boolean itemListInNewLine)
option
- leftBEOnNewline
- rightBeOnNewline
-
public static CreateTableItemAlignProcessor createCreateTableItemAlignProcessor(GFmtOpt option, TAlignOption alignOption)
option
- alignOption
-
public static CTEProcessor createCTEProcessor(GFmtOpt option, java.lang.Boolean cteNewlineBeforeAs)
public static DeclareVarItemAlignProcessor createDeclareVarItemAlignProcessor(GFmtOpt option)
option
-
public static CreateTableConstraintAlignProcessor createCreateTableConstraintAlignProcessor(GFmtOpt option)
public static CombineWhitespaceAndClearReturnProcessor createCombineWhitespaceAndClearReturnProcessor(GFmtOpt opt)
public static InsertOutputClauseProcessor createInsertOutputClauseProcessor(GFmtOpt opt)
public static ExecParaNewLineProcessor createExecParaNewLineProcessor(GFmtOpt opt, java.lang.Boolean linebreakBeforeParamInExec)
public static CreateFuncLeftBEProcessor createCreateFuncLeftBEProcessor(GFmtOpt opt, java.lang.Boolean beStyleFunctionLeftBEOnNewline, java.lang.Integer beStyleFunctionLeftBEIndentSize)
public static CreateFuncRightBEProcessor createCreateFuncRightBEProcessor(GFmtOpt opt, java.lang.Boolean beStyleFunctionRightBEOnNewline, java.lang.Integer beStyleFunctionRightBEIndentSize)
public static CreateFuncFirstParamInNewlineProcessor createCreateFuncFirstParamInNewlineProcessor(GFmtOpt opt, java.lang.Boolean beStyleFunctionFirstParamInNewline)
public static CreateFuncReturnsTableProcessor createCreateFuncReturnsTableProcessor(GFmtOpt opt)
public static CreateFuncWSPaddingParenthesesProcessor createCreateFuncWSPaddingParenthesesProcessor(GFmtOpt opt)
public static IfStmtBEProcessor createIfStmtBEProcessor(GFmtOpt opt)
public static ReturnStmtProcessor createReturnStmtProcessor(GFmtOpt opt)
public static CreateViewReturnProcessor createCreateViewReturnProcessor(GFmtOpt opt)
public static AlterTableOptionItemAlignProcessor createAlterTableOptionAlignProcessor(GFmtOpt option, boolean inNewLine)
public static AppendNewLineBeforeKeyWordProcessor createAppendNewLineBeforeKeyWordProcessor(GFmtOpt option, boolean inNewLine, java.lang.String keyword, boolean completely)
public static <E extends AbstractProcessor> E create(java.lang.Class<E> type, GFmtOpt option, java.lang.Object... parameters)
type
-
public static <E extends AbstractProcessor> E newInstance(java.lang.Class<E> type)
type
- the processor type
public static void clear(java.lang.String sessionId)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |