Here you can find the source of isStaticProperty(Scriptable property)
Replies true if the mixin property propert
is a "static" property.
Parameter | Description |
---|---|
property | the property as defined in the mixin definition |
static public boolean isStaticProperty(Scriptable property)
//package com.java2s; //License from project: Open Source License import org.mozilla.javascript.Scriptable; public class Main { /**//from ww w .j a va 2 s . c o m * <p>Replies true if the mixin property <code>propert</code> is a "static" property.</p> * * @param property the property as defined in the mixin definition * @return true, if this is a static property */ static public boolean isStaticProperty(Scriptable property) { Object isStatic = ((Scriptable) property).get("static", (Scriptable) property); return isStatic != Scriptable.NOT_FOUND && isStatic instanceof Boolean && ((Boolean) isStatic); } }