Top Description Fields Constructors Methods
com.sun.tools.xjc.reader.gbind

public final Class Choice

extends Expression
Class Inheritance

Expression that represents the union of two expressions "A|B".
Author
Kohsuke Kawaguchi

Field Summary

Modifier and TypeField and Description
private final boolean
isNullable

Compute this value eagerly for better performance

private final Expression
lhs

"A" of "A|B".

private final Expression
rhs

"B" of "A|B".

Inherited from com.sun.tools.xjc.reader.gbind.Expression:
EPSILON

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
pack-priv void
buildDAG(ElementSet incoming)

Implements abstract com.sun.tools.xjc.reader.gbind.Expression.buildDAG.

Builds up a DAG among Elements in this expression.

pack-priv boolean
isNullable()

Implements abstract com.sun.tools.xjc.reader.gbind.Expression.isNullable.

True of \epsilon \in L(exp)

pack-priv ElementSet
lastSet()

Implements abstract com.sun.tools.xjc.reader.gbind.Expression.lastSet.

Computes LAST(exp)

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Field Detail

isNullableback to summary
private final boolean isNullable

Compute this value eagerly for better performance

lhsback to summary
private final Expression lhs

"A" of "A|B".

rhsback to summary
private final Expression rhs

"B" of "A|B".

Constructor Detail

Choiceback to summary
public Choice(Expression lhs, Expression rhs)

Method Detail

buildDAGback to summary
pack-priv void buildDAG(ElementSet incoming)

Implements abstract com.sun.tools.xjc.reader.gbind.Expression.buildDAG.

Doc from com.sun.tools.xjc.reader.gbind.Expression.buildDAG.

Builds up a DAG among Elements in this expression.

Annotations
@Override
isNullableback to summary
pack-priv boolean isNullable()

Implements abstract com.sun.tools.xjc.reader.gbind.Expression.isNullable.

Doc from com.sun.tools.xjc.reader.gbind.Expression.isNullable.

True of \epsilon \in L(exp)

Annotations
@Override
lastSetback to summary
pack-priv ElementSet lastSet()

Implements abstract com.sun.tools.xjc.reader.gbind.Expression.lastSet.

Doc from com.sun.tools.xjc.reader.gbind.Expression.lastSet.

Computes LAST(exp)

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override