Package org.sonar.python.tree
Class KeyValuePairImpl
- java.lang.Object
-
- org.sonar.python.tree.PyTree
-
- org.sonar.python.tree.KeyValuePairImpl
-
- All Implemented Interfaces:
DictionaryLiteralElement,KeyValuePair,Tree
public class KeyValuePairImpl extends PyTree implements KeyValuePair
-
-
Field Summary
-
Fields inherited from class org.sonar.python.tree.PyTree
firstToken, lastToken
-
-
Constructor Summary
Constructors Constructor Description KeyValuePairImpl(Expression key, Token colon, Expression value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(TreeVisitor visitor)Tokencolon()List<Tree>computeChildren()Tree.KindgetKind()Expressionkey()Expressionvalue()-
Methods inherited from class org.sonar.python.tree.PyTree
children, firstToken, is, lastToken, parent, setParent
-
-
-
-
Constructor Detail
-
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
-
accept
public void accept(TreeVisitor visitor)
-
-