Back to index

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

constant depending on construction More...

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

List of all members.

Public Member Functions

 ConstructionExpression (Construction c, int type)
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

int Type
Construction C
BasicExpression E

Static Package Attributes

static final int CENTERX = 0
static final int CENTERY = 1
static final int WIDTH = 2
static final int HEIGHT = 3
static final int PIXEL = 4
static final int MINUS = -1
static final int PLUS = 1

Detailed Description

constant depending on construction

Definition at line 1144 of file Expression.java.


Constructor & Destructor Documentation

Definition at line 1148 of file Expression.java.

       {      Type=type; C=c;
       }

Member Function Documentation

Reimplemented from rene.zirkel.expression.BasicExpression.

Definition at line 1151 of file Expression.java.

       {      if (C==null) return 0;
              switch (Type)
              {      case WIDTH : return C.getW();
                     case CENTERX : return C.getX();
                     case CENTERY : return C.getY();
                     case HEIGHT : return C.getH();
                     case PIXEL : return C.getPixel();
              }
              return 0;
       }

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:

Reimplemented in rene.zirkel.expression.MinusExpression, rene.zirkel.expression.ElementaryExpression, rene.zirkel.expression.BracketExpression, and rene.zirkel.expression.DoubleExpression.

Definition at line 135 of file Expression.java.

       {      return false;
       }

Here is the caller graph for this function:

void rene.zirkel.expression.BasicExpression.reset ( ) [inline, inherited]
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:

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 1166 of file Expression.java.

       {      switch (Type)
              {      case WIDTH: return "windoww";
                     case CENTERX: return "windowcx";
                     case CENTERY: return "windowcy";
                     case HEIGHT : return "windowh";
                     case PIXEL : return "pixel";
              }
              return "";
       }

Reimplemented from rene.zirkel.expression.BasicExpression.

Definition at line 1163 of file Expression.java.

       {      C=C.getTranslation();
       }

Here is the call graph for this function:


Member Data Documentation

Definition at line 1146 of file Expression.java.

Definition at line 1147 of file Expression.java.

Definition at line 1147 of file Expression.java.

Definition at line 1147 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.ConstructionExpression.PIXEL = 4 [static, package]

Definition at line 1147 of file Expression.java.

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

Definition at line 91 of file Expression.java.

Definition at line 1145 of file Expression.java.

final int rene.zirkel.expression.ConstructionExpression.WIDTH = 2 [static, package]

Definition at line 1147 of file Expression.java.


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