Back to index

wims  3.65+svn20090927
Public Member Functions | Static Public Member Functions | Package Attributes | Static Package Attributes
rene.zirkel.expression.BracketExpression Class Reference

Bracket = (Basic) More...

Inheritance diagram for rene.zirkel.expression.BracketExpression:
Inheritance graph
[legend]
Collaboration diagram for rene.zirkel.expression.BracketExpression:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 BracketExpression (BasicExpression e)
double getValue () throws ConstructionException
void translate ()
String toString ()
boolean isNumber ()
void reset ()
boolean isLogical ()

Static Public Member Functions

static BasicExpression scan (ExpressionText t) throws ConstructionException
static BasicExpression scan (ExpressionText t, int sign) throws ConstructionException
static BasicExpression scanBracket (ExpressionText t) throws ConstructionException

Package Attributes

BasicExpression E

Static Package Attributes

static final int MINUS = -1
static final int PLUS = 1

Detailed Description

Bracket = (Basic)

Definition at line 1205 of file Expression.java.


Constructor & Destructor Documentation

Definition at line 1208 of file Expression.java.

       {      E=e;
       }

Member Function Documentation

Implements rene.zirkel.expression.ElementaryExpression.

Definition at line 1212 of file Expression.java.

       {      return E.getValue();
       }

Here is the call graph for this function:

Reimplemented in rene.zirkel.expression.OrExpression, rene.zirkel.expression.AndExpression, rene.zirkel.expression.NotExpression, and rene.zirkel.expression.CompareExpression.

Definition at line 143 of file Expression.java.

       {      return false;
       }

Here is the caller graph for this function:

Implements rene.zirkel.expression.ElementaryExpression.

Definition at line 1225 of file Expression.java.

       {      return E.isNumber();
       }

Here is the call graph for this function:

Reimplemented from rene.zirkel.expression.BasicExpression.

Definition at line 1229 of file Expression.java.

       {      E.reset();
       }

Here is the call graph for this function:

static BasicExpression rene.zirkel.expression.BasicExpression.scan ( ExpressionText  t,
int  sign 
) throws ConstructionException [inline, static, inherited]

Definition at line 107 of file Expression.java.

       {      if (sign==MINUS)
              {      if (t.next()=='(') return new MinusExpression(scanBracket(t));
                     return new MinusExpression(ElementaryExpression.scan(t));
              }
              if (t.next()=='(') return scanBracket(t);
              return ElementaryExpression.scan(t);
       }

Here is the call graph for this function:

Reimplemented from rene.zirkel.expression.BasicExpression.

Reimplemented in rene.zirkel.expression.MinusExpression.

Definition at line 1241 of file Expression.java.

{      public static BasicExpression scan (ExpressionText t)
              throws ConstructionException
       {      try
              {      BasicExpression E=DoubleExpression.scan(t);
                     return E;
              }
              catch (Exception e) {}
              try
              {      BasicExpression E=ObjectExpression.scan(t);
                     return E;
              }
              catch (ConstructionException e) { throw e; }
              catch (Exception e) {}
              throw new ConstructionException(Zirkel.name("exception.elementary"));
       }

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 118 of file Expression.java.

       {      t.advance();
              BasicExpression E=TopExpression.scan(t);
              if (t.next()==')') t.advance();
              else
                     throw new ConstructionException(Zirkel.name("exception.bracket"));
              return E;
       }

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 1221 of file Expression.java.

       {      return "("+E.toString()+")";
       }

Reimplemented from rene.zirkel.expression.BasicExpression.

Definition at line 1217 of file Expression.java.

       {      E.translate();
       }

Here is the call graph for this function:


Member Data Documentation

Reimplemented from rene.zirkel.expression.BasicExpression.

Definition at line 1206 of file Expression.java.

final int rene.zirkel.expression.BasicExpression.MINUS = -1 [static, package, inherited]

Definition at line 91 of file Expression.java.

final int rene.zirkel.expression.BasicExpression.PLUS = 1 [static, package, inherited]

Definition at line 91 of file Expression.java.


The documentation for this class was generated from the following file: