Package anvil.script

Examples of anvil.script.ClassRef


  }

  final public void Class() throws ParseException {
  Token t;
  Token s;
  ClassRef base = null;
  InterfaceRef[] interfaces = new InterfaceRef[0];
  LinkNode link;
    t = jj_consume_token(CLASS);
    s = jj_consume_token(SYMBOL);
    Location location = toLocation(t);
    String name = s.image;
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case EXTENDS:
      jj_consume_token(EXTENDS);
      link = EntityReference(location);
                                               base = new ClassRef(link);
      break;
    default:
      jj_la1[39] = jj_gen;
      ;
    }
View Full Code Here


    _document = DocParser.parseClass(_name, parser.getDocument());
    s = tag.get("extends");
    if (s != null) {
      Name name = Grammar.parseDottedName(parser, location, s);
      if (name != null) {
        _base = new ClassRef(new LinkNode(this, location, name));
      } else {
        init = false;
      }
    }
    s = tag.get("implements");
View Full Code Here

  }


  public CompilableFunction getBaseClassConstructor()
  {
    ClassRef ref = getBase();
    if (ref != null) {
      ClassType base = ref.getClassType();
      if (base != Any.__class__) {
        return base.getConstructor();
      }
    }
    return null;
View Full Code Here

  /// Returns the base class of this class.
  /// @synopsis Type getBaseClass()
  public Any m_getBaseClass()
  {
    if (_typecode == Type.CLASS) {
      ClassRef ref = ((ClassType)_type).getBase();
      if (ref != null) {
        Type type = ref.getType();
        return (type != null) ? new AnyType(type) : UNDEFINED;
      }
    }
    return UNDEFINED;
  }
View Full Code Here

TOP

Related Classes of anvil.script.ClassRef

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.