public class SpacingBuilder
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
SpacingBuilder.RuleBuilder |
Constructor and Description |
---|
SpacingBuilder(CodeStyleSettings codeStyleSettings)
Deprecated.
|
SpacingBuilder(CodeStyleSettings codeStyleSettings,
Language language)
Creates SpacingBuilder with given code style settings and language whose settings must be used.
|
SpacingBuilder(CommonCodeStyleSettings languageCodeStyleSettings)
Creates SpacingBuilder with given language code style settings.
|
@Deprecated public SpacingBuilder(CodeStyleSettings codeStyleSettings)
SpacingBuilder(CodeStyleSettings, Language)
or SpacingBuilder(CommonCodeStyleSettings)
insteadcodeStyleSettings
- public SpacingBuilder(CodeStyleSettings codeStyleSettings, Language language)
codeStyleSettings
- The root code style settings.language
- The language to obtain settings for.public SpacingBuilder(CommonCodeStyleSettings languageCodeStyleSettings)
languageCodeStyleSettings
- The language code style settings. Note that getLanguage()
method must not
return null!public SpacingBuilder.RuleBuilder after(IElementType elementType)
public SpacingBuilder.RuleBuilder after(TokenSet tokenSet)
public SpacingBuilder.RuleBuilder afterInside(IElementType elementType, IElementType parentType)
public SpacingBuilder.RuleBuilder afterInside(IElementType elementType, TokenSet parentType)
public SpacingBuilder.RuleBuilder afterInside(TokenSet tokenSet, IElementType parentType)
public SpacingBuilder.RuleBuilder before(IElementType elementType)
public SpacingBuilder.RuleBuilder before(TokenSet tokenSet)
public SpacingBuilder.RuleBuilder beforeInside(TokenSet tokenSet, IElementType parentType)
public SpacingBuilder.RuleBuilder beforeInside(IElementType elementType, IElementType parentType)
public SpacingBuilder.RuleBuilder beforeInside(IElementType elementType, TokenSet parentTypes)
public SpacingBuilder.RuleBuilder between(IElementType left, IElementType right)
public SpacingBuilder.RuleBuilder between(IElementType left, TokenSet rightSet)
public SpacingBuilder.RuleBuilder between(TokenSet leftSet, IElementType right)
public SpacingBuilder.RuleBuilder between(TokenSet leftType, TokenSet rightType)
public SpacingBuilder.RuleBuilder betweenInside(IElementType leftType, IElementType rightType, IElementType parentType)
public SpacingBuilder.RuleBuilder betweenInside(TokenSet leftSet, TokenSet rightSet, IElementType parentType)
public SpacingBuilder.RuleBuilder withinPair(IElementType pairFirst, IElementType pairSecond)
public SpacingBuilder.RuleBuilder withinPairInside(IElementType pairFirst, IElementType pairSecond, IElementType parent)
public SpacingBuilder.RuleBuilder around(IElementType elementType)
public SpacingBuilder.RuleBuilder around(TokenSet tokenSet)
public SpacingBuilder.RuleBuilder aroundInside(TokenSet tokenSet, TokenSet parent)
public SpacingBuilder.RuleBuilder aroundInside(TokenSet tokenSet, IElementType parent)
public SpacingBuilder.RuleBuilder aroundInside(IElementType token, IElementType parent)
public SpacingBuilder.RuleBuilder aroundInside(IElementType token, TokenSet parent)
public SpacingBuilder append(SpacingBuilder builder)
public Spacing getSpacing(Block parentBlock, IElementType parentType, IElementType child1Type, IElementType child2Type)
getSpacing(Block, Block, Block)
public Spacing getSpacing(Block parent, Block child1, Block child2)
ASTBlock
, in other case returns null.parent
- expected an instance of ASTBlock.child1
- expected an instance of ASTBlock.child2
- expected an instance of ASTBlock.getSpacing(Block, IElementType, IElementType, IElementType)