Example #1
0
 private void specialHandlingFor_IGosuObject_BasedMethods(IFunctionSymbol symbol) {
   if (symbol.getType() instanceof IFunctionType) {
     IFunctionType ft = (IFunctionType) symbol.getType();
     if (ft.getScriptPart() != null
         && ft.getScriptPart().getContainingType()
             == IGosuClassInternal.Util.getGosuClassFrom(JavaTypes.IGOSU_OBJECT())) {
       _symbol =
           new GosuObjectFunctionSymbol(
               (IGosuClassInternal) ft.getScriptPart().getContainingType(),
               (DynamicFunctionSymbol) _symbol);
     }
   }
 }
Example #2
0
  @Override
  public String toString() {
    String strOut = (_symbol == null ? "#err" : _symbol.getDisplayName()) + "(";

    if (_args != null && _args.length > 0) {
      strOut += " ";
      for (int i = 0; i < _args.length; i++) {
        if (i != 0) {
          strOut += ", ";
        }
        strOut += _args[i].toString();
      }
      strOut += " ";
    }

    return strOut += ")";
  }
Example #3
0
 public boolean isFromJava() {
   return _symbol.isFromJava();
 }
Example #4
0
 public boolean isBlockInvocation() {
   return _symbol.getType() instanceof IBlockType;
 }