com.sun.tools.xjc.reader.xmlschema
Class ExpressionBuilder

java.lang.Object
  extended by com.sun.tools.xjc.reader.xmlschema.ExpressionBuilder
All Implemented Interfaces:
XSTermFunction<Expression>

public final class ExpressionBuilder
extends Object
implements XSTermFunction<Expression>

Visits XSParticle and creates a corresponding Expression tree.


Method Summary
static Expression createTree(XSParticle p)
           
 Element elementDecl(XSElementDecl decl)
           
 Expression modelGroup(XSModelGroup group)
           
 Expression modelGroupDecl(XSModelGroupDecl decl)
           
 Expression particle(XSParticle p)
           
 Expression wildcard(XSWildcard wc)
          We can only have one XmlAnyElement property, so all the wildcards need to be treated as one node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createTree

public static Expression createTree(XSParticle p)

wildcard

public Expression wildcard(XSWildcard wc)
We can only have one XmlAnyElement property, so all the wildcards need to be treated as one node.

Specified by:
wildcard in interface XSTermFunction<Expression>

modelGroupDecl

public Expression modelGroupDecl(XSModelGroupDecl decl)
Specified by:
modelGroupDecl in interface XSTermFunction<Expression>

modelGroup

public Expression modelGroup(XSModelGroup group)
Specified by:
modelGroup in interface XSTermFunction<Expression>

elementDecl

public Element elementDecl(XSElementDecl decl)
Specified by:
elementDecl in interface XSTermFunction<Expression>

particle

public Expression particle(XSParticle p)