Package org.sonar.python.tree
Class KeyValuePairImpl
- java.lang.Object
-
- org.sonar.python.tree.PyTree
-
- org.sonar.python.tree.KeyValuePairImpl
-
- All Implemented Interfaces:
KeyValuePair,Tree
public class KeyValuePairImpl extends PyTree implements KeyValuePair
-
-
Constructor Summary
Constructors Constructor Description KeyValuePairImpl(Expression key, Token colon, Expression value)KeyValuePairImpl(Token starStarToken, Expression expression)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(TreeVisitor visitor)List<Tree>children()Tokencolon()Expressionexpression()Tree.KindgetKind()Expressionkey()TokenstarStarToken()Expressionvalue()-
Methods inherited from class org.sonar.python.tree.PyTree
astNode, firstToken, is, lastToken, parent, setParent
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.sonar.python.api.tree.Tree
ancestors, astNode, descendants, descendants, firstToken, is, lastToken, parent
-
-
-
-
Constructor Detail
-
KeyValuePairImpl
public KeyValuePairImpl(Token starStarToken, Expression expression)
-
KeyValuePairImpl
public KeyValuePairImpl(Expression key, Token colon, Expression value)
-
-
Method Detail
-
key
@CheckForNull public Expression key()
- Specified by:
keyin interfaceKeyValuePair
-
colon
@CheckForNull public Token colon()
- Specified by:
colonin interfaceKeyValuePair
-
value
@CheckForNull public Expression value()
- Specified by:
valuein interfaceKeyValuePair
-
starStarToken
@CheckForNull public Token starStarToken()
- Specified by:
starStarTokenin interfaceKeyValuePair
-
expression
@CheckForNull public Expression expression()
- Specified by:
expressionin interfaceKeyValuePair
-
accept
public void accept(TreeVisitor visitor)
-
-