Java Javascript Mozilla Library isPrototypeNameNode(AstNode node)

Here you can find the source of isPrototypeNameNode(AstNode node)

Description

is Prototype Name Node

License

BSD License

Declaration

public static final boolean isPrototypeNameNode(AstNode node) 

Method Source Code

//package com.java2s;
/*/*from www .  j  a va 2 s . com*/
 * 06/05/2014
 *
 * Copyright (C) 2014 Robert Futrell
 * robert_futrell at users.sourceforge.net
 * http://fifesoft.com/rsyntaxtextarea
 *
 * This library is distributed under a modified BSD license.  See the included
 * RSTALanguageSupport.License.txt file for details.
 */

import org.mozilla.javascript.ast.AstNode;

import org.mozilla.javascript.ast.Name;

public class Main {
    public static final boolean isPrototypeNameNode(AstNode node) {
        return node instanceof Name && "prototype".equals(((Name) node).getIdentifier());
    }
}

Related

  1. grabContextFactoryGlobalSetter()
  2. isContained(AstNode mayAncestor, AstNode filial)
  3. isDefined(final Object object)
  4. isName(AstNode node, String value)
  5. isNullNativeObject(Object val)
  6. isPrototypePropertyGet(PropertyGet pg)
  7. isSimplePropertyGet(PropertyGet pg, String expectedObj, String expectedField)
  8. isStaticProperty(Scriptable property)
  9. isValid(Object[] args)