org.python.indexer.ast
Class NameBinder
- java.lang.Object
-
- org.python.indexer.ast.NameBinder
-
public class NameBinder extends java.lang.ObjectHandles binding names to scopes, including destructuring assignment.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidbind(Scope s, java.util.List<NNode> xs, NType rvalue)voidbind(Scope s, NNode target, NType rvalue)voidbindIter(Scope s, NNode target, NNode iter)NBindingbindName(Scope s, NName name, NType rvalue)static NameBindermake()Factory method for creating instances.static NameBindermake(NBinding.Kind kind)Factory method for creating instances.
-
-
-
Method Detail
-
make
public static NameBinder make()
Factory method for creating instances.
-
make
public static NameBinder make(NBinding.Kind kind)
Factory method for creating instances.- Returns:
- a
NameBinderthat will create bindings ofkind, overriding the default choices.
-
bind
public void bind(Scope s, NNode target, NType rvalue) throws java.lang.Exception
- Throws:
java.lang.Exception
-
bind
public void bind(Scope s, java.util.List<NNode> xs, NType rvalue) throws java.lang.Exception
- Throws:
java.lang.Exception
-
bindName
public NBinding bindName(Scope s, NName name, NType rvalue) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-
DMelt 3.0 © DataMelt by jWork.ORG