org.jaxen.pattern

Class UnionPattern

public class UnionPattern extends Pattern

UnionPattern represents a union pattern.

Version: $Revision: 1.8 $

Author: James Strachan

Field Summary
Patternlhs
StringmatchesNodeName
shortnodeType
Patternrhs
Constructor Summary
UnionPattern()
UnionPattern(Pattern lhs, Pattern rhs)
Method Summary
PatterngetLHS()
StringgetMatchesNodeName()
shortgetMatchType()
PatterngetRHS()
StringgetText()
Pattern[]getUnionPatterns()
voidinit()
booleanmatches(Object node, Context context)
voidsetLHS(Pattern lhs)
voidsetRHS(Pattern rhs)
Patternsimplify()
StringtoString()

Field Detail

lhs

private Pattern lhs

matchesNodeName

private String matchesNodeName

nodeType

private short nodeType

rhs

private Pattern rhs

Constructor Detail

UnionPattern

public UnionPattern()

UnionPattern

public UnionPattern(Pattern lhs, Pattern rhs)

Method Detail

getLHS

public Pattern getLHS()

getMatchesNodeName

public String getMatchesNodeName()

getMatchType

public short getMatchType()

getRHS

public Pattern getRHS()

getText

public String getText()

getUnionPatterns

public Pattern[] getUnionPatterns()

init

private void init()

matches

public boolean matches(Object node, Context context)

Returns: true if the pattern matches the given node

setLHS

public void setLHS(Pattern lhs)

setRHS

public void setRHS(Pattern rhs)

simplify

public Pattern simplify()

toString

public String toString()