org.jetbrains.kotlin.parsing
Class SemanticWhitespaceAwarePsiBuilderAdapter

java.lang.Object
  extended by com.intellij.lang.impl.PsiBuilderAdapter
      extended by org.jetbrains.kotlin.parsing.SemanticWhitespaceAwarePsiBuilderAdapter
All Implemented Interfaces:
com.intellij.lang.PsiBuilder, com.intellij.openapi.util.UserDataHolder, com.intellij.openapi.util.UserDataHolderUnprotected, SemanticWhitespaceAwarePsiBuilder
Direct Known Subclasses:
SemanticWhitespaceAwarePsiBuilderForByClause, TruncatedSemanticWhitespaceAwarePsiBuilder

public class SemanticWhitespaceAwarePsiBuilderAdapter
extends com.intellij.lang.impl.PsiBuilderAdapter
implements SemanticWhitespaceAwarePsiBuilder


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.intellij.lang.PsiBuilder
com.intellij.lang.PsiBuilder.Marker
 
Field Summary
 
Fields inherited from class com.intellij.lang.impl.PsiBuilderAdapter
myDelegate
 
Constructor Summary
SemanticWhitespaceAwarePsiBuilderAdapter(SemanticWhitespaceAwarePsiBuilder builder)
           
 
Method Summary
 void disableJoiningComplexTokens()
           
 void disableNewlines()
           
 void enableJoiningComplexTokens()
           
 void enableNewlines()
           
 boolean isWhitespaceOrComment(com.intellij.psi.tree.IElementType elementType)
           
 boolean newlineBeforeCurrentToken()
           
 void restoreJoiningComplexTokensState()
           
 void restoreNewlinesState()
           
 
Methods inherited from class com.intellij.lang.impl.PsiBuilderAdapter
advanceLexer, enforceCommentTokens, eof, error, getCurrentOffset, getDelegate, getLatestDoneMarker, getLightTree, getOriginalText, getProject, getTokenText, getTokenType, getTreeBuilt, getUserData, getUserDataUnprotected, lookAhead, mark, putUserData, putUserDataUnprotected, rawLookup, rawTokenIndex, rawTokenTypeStart, remapCurrentToken, setDebugMode, setTokenTypeRemapper, setWhitespaceSkippedCallback
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.intellij.lang.PsiBuilder
advanceLexer, enforceCommentTokens, eof, error, getCurrentOffset, getLatestDoneMarker, getLightTree, getOriginalText, getProject, getTokenText, getTokenType, getTreeBuilt, lookAhead, mark, rawLookup, rawTokenIndex, rawTokenTypeStart, remapCurrentToken, setDebugMode, setTokenTypeRemapper, setWhitespaceSkippedCallback
 
Methods inherited from interface com.intellij.openapi.util.UserDataHolder
getUserData, putUserData
 
Methods inherited from interface com.intellij.openapi.util.UserDataHolderUnprotected
getUserDataUnprotected, putUserDataUnprotected
 

Constructor Detail

SemanticWhitespaceAwarePsiBuilderAdapter

public SemanticWhitespaceAwarePsiBuilderAdapter(SemanticWhitespaceAwarePsiBuilder builder)
Method Detail

newlineBeforeCurrentToken

public boolean newlineBeforeCurrentToken()
Specified by:
newlineBeforeCurrentToken in interface SemanticWhitespaceAwarePsiBuilder

disableNewlines

public void disableNewlines()
Specified by:
disableNewlines in interface SemanticWhitespaceAwarePsiBuilder

enableNewlines

public void enableNewlines()
Specified by:
enableNewlines in interface SemanticWhitespaceAwarePsiBuilder

restoreNewlinesState

public void restoreNewlinesState()
Specified by:
restoreNewlinesState in interface SemanticWhitespaceAwarePsiBuilder

restoreJoiningComplexTokensState

public void restoreJoiningComplexTokensState()
Specified by:
restoreJoiningComplexTokensState in interface SemanticWhitespaceAwarePsiBuilder

enableJoiningComplexTokens

public void enableJoiningComplexTokens()
Specified by:
enableJoiningComplexTokens in interface SemanticWhitespaceAwarePsiBuilder

disableJoiningComplexTokens

public void disableJoiningComplexTokens()
Specified by:
disableJoiningComplexTokens in interface SemanticWhitespaceAwarePsiBuilder

isWhitespaceOrComment

public boolean isWhitespaceOrComment(@NotNull
                                     com.intellij.psi.tree.IElementType elementType)
Specified by:
isWhitespaceOrComment in interface SemanticWhitespaceAwarePsiBuilder