com.sun.org.apache.xpath.internal.patterns.UnionPattern Java Examples

The following examples show how to use com.sun.org.apache.xpath.internal.patterns.UnionPattern. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Compiler.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Compile an entire match pattern expression.
 *
 * @param opPos The current position in the m_opMap array.
 *
 * @return reference to {@link com.sun.org.apache.xpath.internal.patterns.UnionPattern} instance.
 *
 * @throws TransformerException if a error occurs creating the Expression.
 */
protected Expression matchPattern(int opPos) throws TransformerException
{
  locPathDepth++;
  try
  {
    // First, count...
    int nextOpPos = opPos;
    int i;

    for (i = 0; getOp(nextOpPos) == OpCodes.OP_LOCATIONPATHPATTERN; i++)
    {
      nextOpPos = getNextOpPos(nextOpPos);
    }

    if (i == 1)
      return compile(opPos);

    UnionPattern up = new UnionPattern();
    StepPattern[] patterns = new StepPattern[i];

    for (i = 0; getOp(opPos) == OpCodes.OP_LOCATIONPATHPATTERN; i++)
    {
      nextOpPos = getNextOpPos(opPos);
      patterns[i] = (StepPattern) compile(opPos);
      opPos = nextOpPos;
    }

    up.setPatterns(patterns);

    return up;
  }
  finally
  {
    locPathDepth--;
  }
}
 
Example #2
Source File: Compiler.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Compile an entire match pattern expression.
 *
 * @param opPos The current position in the m_opMap array.
 *
 * @return reference to {@link com.sun.org.apache.xpath.internal.patterns.UnionPattern} instance.
 *
 * @throws TransformerException if a error occurs creating the Expression.
 */
protected Expression matchPattern(int opPos) throws TransformerException
{
  locPathDepth++;
  try
  {
    // First, count...
    int nextOpPos = opPos;
    int i;

    for (i = 0; getOp(nextOpPos) == OpCodes.OP_LOCATIONPATHPATTERN; i++)
    {
      nextOpPos = getNextOpPos(nextOpPos);
    }

    if (i == 1)
      return compile(opPos);

    UnionPattern up = new UnionPattern();
    StepPattern[] patterns = new StepPattern[i];

    for (i = 0; getOp(opPos) == OpCodes.OP_LOCATIONPATHPATTERN; i++)
    {
      nextOpPos = getNextOpPos(opPos);
      patterns[i] = (StepPattern) compile(opPos);
      opPos = nextOpPos;
    }

    up.setPatterns(patterns);

    return up;
  }
  finally
  {
    locPathDepth--;
  }
}
 
Example #3
Source File: Compiler.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Compile an entire match pattern expression.
 *
 * @param opPos The current position in the m_opMap array.
 *
 * @return reference to {@link com.sun.org.apache.xpath.internal.patterns.UnionPattern} instance.
 *
 * @throws TransformerException if a error occurs creating the Expression.
 */
protected Expression matchPattern(int opPos) throws TransformerException
{
  locPathDepth++;
  try
  {
    // First, count...
    int nextOpPos = opPos;
    int i;

    for (i = 0; getOp(nextOpPos) == OpCodes.OP_LOCATIONPATHPATTERN; i++)
    {
      nextOpPos = getNextOpPos(nextOpPos);
    }

    if (i == 1)
      return compile(opPos);

    UnionPattern up = new UnionPattern();
    StepPattern[] patterns = new StepPattern[i];

    for (i = 0; getOp(opPos) == OpCodes.OP_LOCATIONPATHPATTERN; i++)
    {
      nextOpPos = getNextOpPos(opPos);
      patterns[i] = (StepPattern) compile(opPos);
      opPos = nextOpPos;
    }

    up.setPatterns(patterns);

    return up;
  }
  finally
  {
    locPathDepth--;
  }
}
 
Example #4
Source File: Compiler.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Compile an entire match pattern expression.
 *
 * @param opPos The current position in the m_opMap array.
 *
 * @return reference to {@link com.sun.org.apache.xpath.internal.patterns.UnionPattern} instance.
 *
 * @throws TransformerException if a error occurs creating the Expression.
 */
protected Expression matchPattern(int opPos) throws TransformerException
{
  locPathDepth++;
  try
  {
    // First, count...
    int nextOpPos = opPos;
    int i;

    for (i = 0; getOp(nextOpPos) == OpCodes.OP_LOCATIONPATHPATTERN; i++)
    {
      nextOpPos = getNextOpPos(nextOpPos);
    }

    if (i == 1)
      return compile(opPos);

    UnionPattern up = new UnionPattern();
    StepPattern[] patterns = new StepPattern[i];

    for (i = 0; getOp(opPos) == OpCodes.OP_LOCATIONPATHPATTERN; i++)
    {
      nextOpPos = getNextOpPos(opPos);
      patterns[i] = (StepPattern) compile(opPos);
      opPos = nextOpPos;
    }

    up.setPatterns(patterns);

    return up;
  }
  finally
  {
    locPathDepth--;
  }
}
 
Example #5
Source File: Compiler.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Compile an entire match pattern expression.
 *
 * @param opPos The current position in the m_opMap array.
 *
 * @return reference to {@link com.sun.org.apache.xpath.internal.patterns.UnionPattern} instance.
 *
 * @throws TransformerException if a error occurs creating the Expression.
 */
protected Expression matchPattern(int opPos) throws TransformerException
{
  locPathDepth++;
  try
  {
    // First, count...
    int nextOpPos = opPos;
    int i;

    for (i = 0; getOp(nextOpPos) == OpCodes.OP_LOCATIONPATHPATTERN; i++)
    {
      nextOpPos = getNextOpPos(nextOpPos);
    }

    if (i == 1)
      return compile(opPos);

    UnionPattern up = new UnionPattern();
    StepPattern[] patterns = new StepPattern[i];

    for (i = 0; getOp(opPos) == OpCodes.OP_LOCATIONPATHPATTERN; i++)
    {
      nextOpPos = getNextOpPos(opPos);
      patterns[i] = (StepPattern) compile(opPos);
      opPos = nextOpPos;
    }

    up.setPatterns(patterns);

    return up;
  }
  finally
  {
    locPathDepth--;
  }
}
 
Example #6
Source File: Compiler.java    From Bytecoder with Apache License 2.0 5 votes vote down vote up
/**
 * Compile an entire match pattern expression.
 *
 * @param opPos The current position in the m_opMap array.
 *
 * @return reference to {@link com.sun.org.apache.xpath.internal.patterns.UnionPattern} instance.
 *
 * @throws TransformerException if a error occurs creating the Expression.
 */
protected Expression matchPattern(int opPos) throws TransformerException
{
  locPathDepth++;
  try
  {
    // First, count...
    int nextOpPos = opPos;
    int i;

    for (i = 0; getOp(nextOpPos) == OpCodes.OP_LOCATIONPATHPATTERN; i++)
    {
      nextOpPos = getNextOpPos(nextOpPos);
    }

    if (i == 1)
      return compile(opPos);

    UnionPattern up = new UnionPattern();
    StepPattern[] patterns = new StepPattern[i];

    for (i = 0; getOp(opPos) == OpCodes.OP_LOCATIONPATHPATTERN; i++)
    {
      nextOpPos = getNextOpPos(opPos);
      patterns[i] = (StepPattern) compile(opPos);
      opPos = nextOpPos;
    }

    up.setPatterns(patterns);

    return up;
  }
  finally
  {
    locPathDepth--;
  }
}
 
Example #7
Source File: Compiler.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Compile an entire match pattern expression.
 *
 * @param opPos The current position in the m_opMap array.
 *
 * @return reference to {@link com.sun.org.apache.xpath.internal.patterns.UnionPattern} instance.
 *
 * @throws TransformerException if a error occurs creating the Expression.
 */
protected Expression matchPattern(int opPos) throws TransformerException
{
  locPathDepth++;
  try
  {
    // First, count...
    int nextOpPos = opPos;
    int i;

    for (i = 0; getOp(nextOpPos) == OpCodes.OP_LOCATIONPATHPATTERN; i++)
    {
      nextOpPos = getNextOpPos(nextOpPos);
    }

    if (i == 1)
      return compile(opPos);

    UnionPattern up = new UnionPattern();
    StepPattern[] patterns = new StepPattern[i];

    for (i = 0; getOp(opPos) == OpCodes.OP_LOCATIONPATHPATTERN; i++)
    {
      nextOpPos = getNextOpPos(opPos);
      patterns[i] = (StepPattern) compile(opPos);
      opPos = nextOpPos;
    }

    up.setPatterns(patterns);

    return up;
  }
  finally
  {
    locPathDepth--;
  }
}
 
Example #8
Source File: Compiler.java    From JDKSourceCode1.8 with MIT License 5 votes vote down vote up
/**
 * Compile an entire match pattern expression.
 *
 * @param opPos The current position in the m_opMap array.
 *
 * @return reference to {@link com.sun.org.apache.xpath.internal.patterns.UnionPattern} instance.
 *
 * @throws TransformerException if a error occurs creating the Expression.
 */
protected Expression matchPattern(int opPos) throws TransformerException
{
  locPathDepth++;
  try
  {
    // First, count...
    int nextOpPos = opPos;
    int i;

    for (i = 0; getOp(nextOpPos) == OpCodes.OP_LOCATIONPATHPATTERN; i++)
    {
      nextOpPos = getNextOpPos(nextOpPos);
    }

    if (i == 1)
      return compile(opPos);

    UnionPattern up = new UnionPattern();
    StepPattern[] patterns = new StepPattern[i];

    for (i = 0; getOp(opPos) == OpCodes.OP_LOCATIONPATHPATTERN; i++)
    {
      nextOpPos = getNextOpPos(opPos);
      patterns[i] = (StepPattern) compile(opPos);
      opPos = nextOpPos;
    }

    up.setPatterns(patterns);

    return up;
  }
  finally
  {
    locPathDepth--;
  }
}
 
Example #9
Source File: Compiler.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Compile an entire match pattern expression.
 *
 * @param opPos The current position in the m_opMap array.
 *
 * @return reference to {@link com.sun.org.apache.xpath.internal.patterns.UnionPattern} instance.
 *
 * @throws TransformerException if a error occurs creating the Expression.
 */
protected Expression matchPattern(int opPos) throws TransformerException
{
  locPathDepth++;
  try
  {
    // First, count...
    int nextOpPos = opPos;
    int i;

    for (i = 0; getOp(nextOpPos) == OpCodes.OP_LOCATIONPATHPATTERN; i++)
    {
      nextOpPos = getNextOpPos(nextOpPos);
    }

    if (i == 1)
      return compile(opPos);

    UnionPattern up = new UnionPattern();
    StepPattern[] patterns = new StepPattern[i];

    for (i = 0; getOp(opPos) == OpCodes.OP_LOCATIONPATHPATTERN; i++)
    {
      nextOpPos = getNextOpPos(opPos);
      patterns[i] = (StepPattern) compile(opPos);
      opPos = nextOpPos;
    }

    up.setPatterns(patterns);

    return up;
  }
  finally
  {
    locPathDepth--;
  }
}
 
Example #10
Source File: Compiler.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Compile an entire match pattern expression.
 *
 * @param opPos The current position in the m_opMap array.
 *
 * @return reference to {@link com.sun.org.apache.xpath.internal.patterns.UnionPattern} instance.
 *
 * @throws TransformerException if a error occurs creating the Expression.
 */
protected Expression matchPattern(int opPos) throws TransformerException
{
  locPathDepth++;
  try
  {
    // First, count...
    int nextOpPos = opPos;
    int i;

    for (i = 0; getOp(nextOpPos) == OpCodes.OP_LOCATIONPATHPATTERN; i++)
    {
      nextOpPos = getNextOpPos(nextOpPos);
    }

    if (i == 1)
      return compile(opPos);

    UnionPattern up = new UnionPattern();
    StepPattern[] patterns = new StepPattern[i];

    for (i = 0; getOp(opPos) == OpCodes.OP_LOCATIONPATHPATTERN; i++)
    {
      nextOpPos = getNextOpPos(opPos);
      patterns[i] = (StepPattern) compile(opPos);
      opPos = nextOpPos;
    }

    up.setPatterns(patterns);

    return up;
  }
  finally
  {
    locPathDepth--;
  }
}
 
Example #11
Source File: Compiler.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
/**
 * Compile an entire match pattern expression.
 *
 * @param opPos The current position in the m_opMap array.
 *
 * @return reference to {@link com.sun.org.apache.xpath.internal.patterns.UnionPattern} instance.
 *
 * @throws TransformerException if a error occurs creating the Expression.
 */
protected Expression matchPattern(int opPos) throws TransformerException
{
  locPathDepth++;
  try
  {
    // First, count...
    int nextOpPos = opPos;
    int i;

    for (i = 0; getOp(nextOpPos) == OpCodes.OP_LOCATIONPATHPATTERN; i++)
    {
      nextOpPos = getNextOpPos(nextOpPos);
    }

    if (i == 1)
      return compile(opPos);

    UnionPattern up = new UnionPattern();
    StepPattern[] patterns = new StepPattern[i];

    for (i = 0; getOp(opPos) == OpCodes.OP_LOCATIONPATHPATTERN; i++)
    {
      nextOpPos = getNextOpPos(opPos);
      patterns[i] = (StepPattern) compile(opPos);
      opPos = nextOpPos;
    }

    up.setPatterns(patterns);

    return up;
  }
  finally
  {
    locPathDepth--;
  }
}
 
Example #12
Source File: XPathVisitor.java    From openjdk-jdk8u with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Visit a union pattern.
 * @param owner The owner of the expression, to which the expression can
 *              be reset if rewriting takes place.
 * @param pattern The union pattern object.
 * @return true if the sub expressions should be traversed.
 */
public boolean visitUnionPattern(ExpressionOwner owner, UnionPattern pattern)
{
        return true;
}
 
Example #13
Source File: XPathVisitor.java    From JDKSourceCode1.8 with MIT License 2 votes vote down vote up
/**
 * Visit a union pattern.
 * @param owner The owner of the expression, to which the expression can
 *              be reset if rewriting takes place.
 * @param pattern The union pattern object.
 * @return true if the sub expressions should be traversed.
 */
public boolean visitUnionPattern(ExpressionOwner owner, UnionPattern pattern)
{
        return true;
}
 
Example #14
Source File: XPathVisitor.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Visit a union pattern.
 * @param owner The owner of the expression, to which the expression can
 *              be reset if rewriting takes place.
 * @param pattern The union pattern object.
 * @return true if the sub expressions should be traversed.
 */
public boolean visitUnionPattern(ExpressionOwner owner, UnionPattern pattern)
{
        return true;
}
 
Example #15
Source File: XPathVisitor.java    From jdk1.8-source-analysis with Apache License 2.0 2 votes vote down vote up
/**
 * Visit a union pattern.
 * @param owner The owner of the expression, to which the expression can
 *              be reset if rewriting takes place.
 * @param pattern The union pattern object.
 * @return true if the sub expressions should be traversed.
 */
public boolean visitUnionPattern(ExpressionOwner owner, UnionPattern pattern)
{
        return true;
}
 
Example #16
Source File: XPathVisitor.java    From Bytecoder with Apache License 2.0 2 votes vote down vote up
/**
 * Visit a union pattern.
 * @param owner The owner of the expression, to which the expression can
 *              be reset if rewriting takes place.
 * @param pattern The union pattern object.
 * @return true if the sub expressions should be traversed.
 */
public boolean visitUnionPattern(ExpressionOwner owner, UnionPattern pattern)
{
        return true;
}
 
Example #17
Source File: XPathVisitor.java    From openjdk-jdk9 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Visit a union pattern.
 * @param owner The owner of the expression, to which the expression can
 *              be reset if rewriting takes place.
 * @param pattern The union pattern object.
 * @return true if the sub expressions should be traversed.
 */
public boolean visitUnionPattern(ExpressionOwner owner, UnionPattern pattern)
{
        return true;
}
 
Example #18
Source File: XPathVisitor.java    From jdk8u60 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Visit a union pattern.
 * @param owner The owner of the expression, to which the expression can
 *              be reset if rewriting takes place.
 * @param pattern The union pattern object.
 * @return true if the sub expressions should be traversed.
 */
public boolean visitUnionPattern(ExpressionOwner owner, UnionPattern pattern)
{
        return true;
}
 
Example #19
Source File: XPathVisitor.java    From hottub with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Visit a union pattern.
 * @param owner The owner of the expression, to which the expression can
 *              be reset if rewriting takes place.
 * @param pattern The union pattern object.
 * @return true if the sub expressions should be traversed.
 */
public boolean visitUnionPattern(ExpressionOwner owner, UnionPattern pattern)
{
        return true;
}
 
Example #20
Source File: XPathVisitor.java    From openjdk-8-source with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Visit a union pattern.
 * @param owner The owner of the expression, to which the expression can
 *              be reset if rewriting takes place.
 * @param pattern The union pattern object.
 * @return true if the sub expressions should be traversed.
 */
public boolean visitUnionPattern(ExpressionOwner owner, UnionPattern pattern)
{
        return true;
}
 
Example #21
Source File: XPathVisitor.java    From TencentKona-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Visit a union pattern.
 * @param owner The owner of the expression, to which the expression can
 *              be reset if rewriting takes place.
 * @param pattern The union pattern object.
 * @return true if the sub expressions should be traversed.
 */
public boolean visitUnionPattern(ExpressionOwner owner, UnionPattern pattern)
{
        return true;
}
 
Example #22
Source File: XPathVisitor.java    From openjdk-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Visit a union pattern.
 * @param owner The owner of the expression, to which the expression can
 *              be reset if rewriting takes place.
 * @param pattern The union pattern object.
 * @return true if the sub expressions should be traversed.
 */
public boolean visitUnionPattern(ExpressionOwner owner, UnionPattern pattern)
{
        return true;
}