Examples of markReadOnly()


Examples of org.python.indexer.NBinding.markReadOnly()

        return b;
    }

    protected NBinding addReadOnlyAttr(String name, NType type, NBinding.Kind kind) {
        NBinding b = addSpecialAttr(name, type, kind);
        b.markReadOnly();
        return b;
    }

    @Override
    public NType resolve(Scope outer) throws Exception {
View Full Code Here

Examples of org.python.indexer.NBinding.markReadOnly()

    private void addSpecialAttribute(String name, NType proptype) {
        NBinding b = getTable().update(name, Builtins.newTutUrl("classes.html"),
                                       proptype, NBinding.Kind.ATTRIBUTE);
        b.markSynthetic();
        b.markStatic();
        b.markReadOnly();
    }

    @Override
    public String toString() {
        return "<ClassDef:" + name.id + ":" + start() + ">";
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.