Package anvil.script

Examples of anvil.script.Type


  }
 
 
  public Any setAttribute(Context context, String attribute, Any value)
  {
    Type type = (Type)_declarations.get(attribute);
    if (type != null) {
      if (type.getType() == Type.STATIC_VARIABLE) {
        return ((VariableType)type).setValue(value);
      }
    }
    return value;
  }
View Full Code Here


        dims[i] = list[i].toInt();
      }
      return Any.create(Array.newInstance(_class, dims));
     
    } else {
      Type type = (Type)_declarations.get(index.toString());
      if (type != null) {
        switch(type.getType()) {
        case Type.STATIC_VARIABLE:
        case Type.CONSTANT_VARIABLE:
          return ((VariableType)type).getValue();
        case Type.CLASS:
        case Type.INTERFACE:
View Full Code Here

  }
 

  public Any setReference(Context context, Any index, Any value)
  {
    Type type = (Type)_declarations.get(index.toString());
    if (type != null) {
      if (type.getType() == Type.STATIC_VARIABLE) {
        return ((StaticVariableType)type).setValue(value);
      }
    }
    return value;
  }
View Full Code Here

TOP

Related Classes of anvil.script.Type

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.