Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
Rhino JavaScript Java Library Source Code
Rhino JavaScript Java Library is an open-source implementation of JavaScript written entirely in Java.
Rhino JavaScript Java Library Source Code files are provided in binary package (rhino-1.7.14.zip).
You can also browse the source code below:
✍: FYIcenter.com
⏎ org/mozilla/javascript/ast/XmlRef.java
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ package org.mozilla.javascript.ast; /** * Base class for E4X XML attribute-access or property-get expressions. * Such expressions can take a variety of forms. The general syntax has * three parts: * <ol> * <li>optional: an {@code @} (specifying an attribute access)</li> * <li>optional: a namespace (a {@code Name}) and double-colon</li> * <li>required: either a {@code Name} or a bracketed [expression]</li> * </ol> * * The property-name expressions (examples: {@code ns::name}, {@code @name}) * are represented as {@link XmlPropRef} nodes. The bracketed-expression * versions (examples: {@code ns::[name]}, {@code @[name]}) become * {@link XmlElemRef} nodes.<p> * * This node type (or more specifically, its subclasses) will * sometimes be the right-hand child of a {@link PropertyGet} node or * an {@link XmlMemberGet} node. The {@code XmlRef} node may also * be a standalone primary expression with no explicit target, which * is valid in certain expression contexts such as * {@code company..employee.(@id < 100)} - in this case, the {@code @id} * is an {@code XmlRef} that is part of an infix '<' expression * whose parent is an {@code XmlDotQuery} node. */ public abstract class XmlRef extends AstNode { protected Name namespace; protected int atPos = -1; protected int colonPos = -1; public XmlRef() { } public XmlRef(int pos) { super(pos); } public XmlRef(int pos, int len) { super(pos, len); } /** * Return the namespace. May be {@code @null}. */ public Name getNamespace() { return namespace; } /** * Sets namespace, and sets its parent to this node. * Can be {@code null}. */ public void setNamespace(Name namespace) { this.namespace = namespace; if (namespace != null) namespace.setParent(this); } /** * Returns {@code true} if this expression began with an {@code @}-token. */ public boolean isAttributeAccess() { return atPos >= 0; } /** * Returns position of {@code @}-token, or -1 if this is not * an attribute-access expression. */ public int getAtPos() { return atPos; } /** * Sets position of {@code @}-token, or -1 */ public void setAtPos(int atPos) { this.atPos = atPos; } /** * Returns position of {@code ::} token, or -1 if not present. * It will only be present if the namespace node is non-{@code null}. */ public int getColonPos() { return colonPos; } /** * Sets position of {@code ::} token, or -1 if not present */ public void setColonPos(int colonPos) { this.colonPos = colonPos; } }
⏎ org/mozilla/javascript/ast/XmlRef.java
Or download all of them as a single archive file:
File name: rhino-1.7.14-sources.jar File size: 1029165 bytes Release date: 2022-01-06 Download
⇒ Example code to Test rhino-runtime-1.7.14.jar
⇐ Download Rhino JavaScript Binary Package
2022-05-03, 35498👍, 1💬
Popular Posts:
Jettison is a collection of Java APIs (like STaX and DOM) which read and write JSON. This allows nea...
Apache BCEL Source Code Files are inside the Apache BCEL source package file like bcel-6.5.0-src.zip...
What Is log4j-1.2.15.jar? I got the JAR file from apache-log4j-1.2.15.zip. log4j-1.2.15.jar is the v...
JDK 11 java.xml.crypto.jmod is the JMOD file for JDK 11 XML (eXtensible Markup Language) Crypto modu...
JDK 11 java.management.jmod is the JMOD file for JDK 11 Management module. JDK 11 Management module ...