Examples of NodeType


Examples of org.apache.vxquery.types.NodeType

public class NodeTestFilter {

    public static INodeFilter getNodeTestFilter(SequenceType sType) {
        INodeFilter filter;
        final NodeType nodeType = (NodeType) sType.getItemType();
        switch (nodeType.getNodeKind()) {
            case ATTRIBUTE: {
                AttributeType aType = (AttributeType) nodeType;
                NameTest nameTest = aType.getNameTest();
                byte[] uri = nameTest.getUri();
                byte[] localName = nameTest.getLocalName();
View Full Code Here

Examples of org.cipango.kaleo.xcap.XcapResourceImpl.NodeType

      {
        // XCAP 8.2.1. Locating the Parent
        String parent = locatingParent(resource, nodeSelector,
            xcapUri.getDocumentSelector(), requestUrlHead);
        resource.setCreation(true);
        NodeType nodeType;
        String nodeName = nodeSelector.substring(parent.length());
        // /@id is an attribute and /service[@id="1"] is an
        // element
        if (nodeName.indexOf('@') != -1
            && nodeName.indexOf('[') == -1)
View Full Code Here

Examples of org.dmg.pmml._40.NodeType

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetNode(NodeType newNode, NotificationChain msgs) {
    NodeType oldNode = node;
    node = newNode;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, _40Package.TREE_MODEL_TYPE__NODE, oldNode, newNode);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here

Examples of org.exolab.castor.builder.info.NodeType

        jsc.add("desc = (org.exolab.castor.xml.util.XMLFieldDescriptorImpl) getFieldDescriptor(\"");
        XMLInfoNature xmlNature = new XMLInfoNature(member);
        jsc.append(xmlNature.getNodeName());
        jsc.append("\"");
        jsc.append(", _nsURI");
        NodeType nodeType = xmlNature.getNodeType();
        if (nodeType == NodeType.ELEMENT) {
            jsc.append(", org.exolab.castor.xml.NodeType.Element);");
        } else if (nodeType == NodeType.ATTRIBUTE) {
            jsc.append(", org.exolab.castor.xml.NodeType.Attribute);");
        } else {
View Full Code Here

Examples of org.exolab.castor.xml.NodeType

    public boolean removeFieldDescriptor(XMLFieldDescriptor descriptor) {

        if (descriptor == null) return false;

        boolean removed = false;
        NodeType nodeType = descriptor.getNodeType();
        switch(nodeType.getType()) {
            case NodeType.NAMESPACE:
            case NodeType.ATTRIBUTE:
                if (_attributes.remove(descriptor)) {
                    removed = true;
                    _attArray = null;
View Full Code Here

Examples of org.jrdf.query.relation.type.NodeType

    private static final int PREDICATE_NODE_TYPE = 4;
    private static final int OBJECT_NODE_TYPE = 5;
    private static final int RESOURCE_NODE_TYPE = 6;

    public NodeType entryToObject(TupleInput tupleInput) {
        NodeType tmpNodeType;
        byte b = tupleInput.readByte();
        switch (b) {
            case BLANK_NODE_TYPE:
                tmpNodeType = new BlankNodeType();
                break;
View Full Code Here

Examples of org.jruby.ast.NodeType

        return new Block(body, binding);
    }
   
    public static Block newInterpretedClosure(IterNode iterNode, IRubyObject self, Arity arity, Frame frame,
            Visibility visibility, RubyModule klass, DynamicScope dynamicScope) {
        NodeType argsNodeId = getArgumentTypeWackyHack(iterNode);
       
        BlockBody body = new InterpretedBlock(
                iterNode,
                arity,
                asArgumentType(argsNodeId));
View Full Code Here

Examples of org.jruby.ast.NodeType

        boolean hasMultipleArgsHead = false;
        if (forNode.getVarNode() instanceof MultipleAsgnNode) {
            hasMultipleArgsHead = ((MultipleAsgnNode) forNode.getVarNode()).getHeadNode() != null;
        }

        NodeType argsNodeId = null;
        if (forNode.getVarNode() != null) {
            argsNodeId = forNode.getVarNode().nodeId;
        }

        if (argsNodeId == null) {
View Full Code Here

Examples of org.jruby.ast.NodeType

        boolean hasMultipleArgsHead = false;
        if (iterNode.getVarNode() instanceof MultipleAsgnNode) {
            hasMultipleArgsHead = ((MultipleAsgnNode) iterNode.getVarNode()).getHeadNode() != null;
        }

        NodeType argsNodeId = BlockBody.getArgumentTypeWackyHack(iterNode);

        ASTInspector inspector = new ASTInspector();
        inspector.inspect(iterNode.getBodyNode());
        inspector.inspect(iterNode.getVarNode());
        if (argsNodeId == null) {
View Full Code Here

Examples of org.jruby.ast.NodeType

       
        return args;
    }
   
    public static NodeType getArgumentTypeWackyHack(IterNode iterNode) {
        NodeType argsNodeId = null;
        if (iterNode.getVarNode() != null && iterNode.getVarNode().nodeId != NodeType.ZEROARGNODE) {
            // if we have multiple asgn with just *args, need a special type for that
            argsNodeId = iterNode.getVarNode().nodeId;
            if (argsNodeId == NodeType.MULTIPLEASGNNODE) {
                MultipleAsgnNode multipleAsgnNode = (MultipleAsgnNode)iterNode.getVarNode();
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.