nl.beesting.beangenerator.generator.re
Class ReverseRExpression

java.lang.Object
  extended by nl.beesting.beangenerator.generator.re.ReverseRExpression
Direct Known Subclasses:
ReverseGroupExpression, ReverseLengthRExpression, ReverseOrExpression, ReverseRangeRExpression

public class ReverseRExpression
extends java.lang.Object

Author:
gerard

Field Summary
static short ANY
           
static ReverseRExpression ANY_EXPR
           
static short CHAR
           
static ReverseRExpression CHAR_EXPR
           
static short GREEDY
           
static short GROUP_END
           
static short GROUP_START
           
static short LENGTH
           
static short OR
           
static short RANGE
          Range expression
 
Constructor Summary
ReverseRExpression(short type, java.lang.Object generationInstruction)
          Constructor ReverseRExpression.
 
Method Summary
 void addSecundaryExpression(ReverseRExpression expr)
          Method addSecundaryExpression.
 java.lang.Object getGenerationInstruction()
          Returns the generationInstruction.
 java.util.List<ReverseRExpression> getSecundaryExpressions()
          Returns the secundaryExpressions.
 short getType()
          Returns the type.
 boolean isPrimary()
          instance is primary
static boolean isPrimary(short type)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RANGE

public static final short RANGE
Range expression

See Also:
Constant Field Values

ANY

public static final short ANY
See Also:
Constant Field Values

LENGTH

public static final short LENGTH
See Also:
Constant Field Values

CHAR

public static final short CHAR
See Also:
Constant Field Values

GREEDY

public static final short GREEDY
See Also:
Constant Field Values

OR

public static final short OR
See Also:
Constant Field Values

GROUP_START

public static final short GROUP_START
See Also:
Constant Field Values

GROUP_END

public static final short GROUP_END
See Also:
Constant Field Values

ANY_EXPR

public static final ReverseRExpression ANY_EXPR

CHAR_EXPR

public static final ReverseRExpression CHAR_EXPR
Constructor Detail

ReverseRExpression

public ReverseRExpression(short type,
                          java.lang.Object generationInstruction)
Constructor ReverseRExpression.

Parameters:
type -
generationInstruction -
Method Detail

getType

public short getType()
Returns the type.

Returns:
Short

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

isPrimary

public static boolean isPrimary(short type)
Parameters:
type -
Returns:

isPrimary

public boolean isPrimary()
instance is primary

Returns:

addSecundaryExpression

public void addSecundaryExpression(ReverseRExpression expr)
Method addSecundaryExpression.

Parameters:
expr -

getGenerationInstruction

public java.lang.Object getGenerationInstruction()
Returns the generationInstruction.

Returns:
Object

getSecundaryExpressions

public java.util.List<ReverseRExpression> getSecundaryExpressions()
Returns the secundaryExpressions.

Returns:
List


Copyright 2008. All Rights Reserved.