com.google.sitebricks.compiler
Enum CompileErrors

java.lang.Object
  extended by java.lang.Enum<CompileErrors>
      extended by com.google.sitebricks.compiler.CompileErrors
All Implemented Interfaces:
Serializable, Comparable<CompileErrors>

public enum CompileErrors
extends Enum<CompileErrors>

An enumeration of possible compile errors when checking a template.

Author:
Dhanji R. Prasanna (dhanji@gmail.com)

Enum Constant Summary
ERROR_COMPILING_PROPERTY
           
FORM_MISSING_NAME
           
ILLEGAL_EXPRESSION
           
MALFORMED_TEMPLATE
           
MISSING_REPEAT_ITEMS
           
MISSING_REPEAT_VAR
           
PROPERTY_NOT_WRITEABLE
           
REPEAT_OVER_ATOM
           
UNRESOLVABLE_FORM_ACTION
           
UNRESOLVABLE_FORM_BINDING
           
 
Method Summary
static CompileErrors valueOf(String name)
          Returns the enum constant of this type with the specified name.
static CompileErrors[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

MISSING_REPEAT_VAR

public static final CompileErrors MISSING_REPEAT_VAR

MISSING_REPEAT_ITEMS

public static final CompileErrors MISSING_REPEAT_ITEMS

REPEAT_OVER_ATOM

public static final CompileErrors REPEAT_OVER_ATOM

FORM_MISSING_NAME

public static final CompileErrors FORM_MISSING_NAME

UNRESOLVABLE_FORM_BINDING

public static final CompileErrors UNRESOLVABLE_FORM_BINDING

UNRESOLVABLE_FORM_ACTION

public static final CompileErrors UNRESOLVABLE_FORM_ACTION

MALFORMED_TEMPLATE

public static final CompileErrors MALFORMED_TEMPLATE

ILLEGAL_EXPRESSION

public static final CompileErrors ILLEGAL_EXPRESSION

PROPERTY_NOT_WRITEABLE

public static final CompileErrors PROPERTY_NOT_WRITEABLE

ERROR_COMPILING_PROPERTY

public static final CompileErrors ERROR_COMPILING_PROPERTY
Method Detail

values

public static CompileErrors[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (CompileErrors c : CompileErrors.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static CompileErrors valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2014. All rights reserved.