当前位置: 首页>>代码示例>>Java>>正文


Java InputOutput.println方法代码示例

本文整理汇总了Java中org.eclipse.xtext.xbase.lib.InputOutput.println方法的典型用法代码示例。如果您正苦于以下问题:Java InputOutput.println方法的具体用法?Java InputOutput.println怎么用?Java InputOutput.println使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.eclipse.xtext.xbase.lib.InputOutput的用法示例。


在下文中一共展示了InputOutput.println方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: _privk3_fire

import org.eclipse.xtext.xbase.lib.InputOutput; //导入方法依赖的package包/类
protected static void _privk3_fire(final TransitionAspectTransitionAspectProperties _self_, final Transition _self) {
  String _name = _self.getName();
  String _plus = ("Firing " + _name);
  String _plus_1 = (_plus + " and entering ");
  String _name_1 = _self.getTarget().getName();
  String _plus_2 = (_plus_1 + _name_1);
  InputOutput.<String>println(_plus_2);
  final StateMachine fsm = _self.getSource().getOwningFSM();
  StateMachineAspect.currentState(fsm, _self.getTarget());
  String _producedString = StateMachineAspect.producedString(fsm);
  String _output = _self.getOutput();
  String _plus_3 = (_producedString + _output);
  StateMachineAspect.producedString(fsm, _plus_3);
  String _consummedString = StateMachineAspect.consummedString(fsm);
  String _input = _self.getInput();
  String _plus_4 = (_consummedString + _input);
  StateMachineAspect.consummedString(fsm, _plus_4);
  StateMachineAspect.unprocessedString(fsm, StateMachineAspect.unprocessedString(fsm).substring(_self.getInput().length()));
}
 
开发者ID:eclipse,项目名称:gemoc-studio,代码行数:20,代码来源:TransitionAspect.java

示例2: _privk3_main

import org.eclipse.xtext.xbase.lib.InputOutput; //导入方法依赖的package包/类
protected static void _privk3_main(final StateMachineAspectStateMachineAspectProperties _self_, final StateMachine _self) {
  try {
    while ((!StateMachineAspect.unprocessedString(_self).isEmpty())) {
      StateAspect.step(StateMachineAspect.currentState(_self), StateMachineAspect.unprocessedString(_self));
    }
  } catch (final Throwable _t) {
    if (_t instanceof Exception) {
      final Exception nt = (Exception)_t;
      String _message = nt.getMessage();
      String _plus = ("Stopped due to " + _message);
      InputOutput.<String>println(_plus);
    } else {
      throw Exceptions.sneakyThrow(_t);
    }
  }
  String _unprocessedString = StateMachineAspect.unprocessedString(_self);
  String _plus_1 = ("unprocessed string: " + _unprocessedString);
  InputOutput.<String>println(_plus_1);
  String _consummedString = StateMachineAspect.consummedString(_self);
  String _plus_2 = ("processed string: " + _consummedString);
  InputOutput.<String>println(_plus_2);
  String _producedString = StateMachineAspect.producedString(_self);
  String _plus_3 = ("produced string: " + _producedString);
  InputOutput.<String>println(_plus_3);
}
 
开发者ID:eclipse,项目名称:gemoc-studio,代码行数:26,代码来源:StateMachineAspect.java

示例3: drawSafe

import org.eclipse.xtext.xbase.lib.InputOutput; //导入方法依赖的package包/类
private String drawSafe(final GraphvizDotBuilder builder, final Object graph) {
  String _xtrycatchfinallyexpression = null;
  try {
    _xtrycatchfinallyexpression = builder.draw(graph);
  } catch (final Throwable _t) {
    if (_t instanceof Exception) {
      final Exception e = (Exception)_t;
      InputOutput.<String>println("Error rendering");
      e.printStackTrace();
      return Throwables.getStackTraceAsString(e);
    } else {
      throw Exceptions.sneakyThrow(_t);
    }
  }
  return _xtrycatchfinallyexpression;
}
 
开发者ID:eclipse,项目名称:xtext-core,代码行数:17,代码来源:DebugGraphGenerator.java

示例4: main

import org.eclipse.xtext.xbase.lib.InputOutput; //导入方法依赖的package包/类
/**
 * Use this main method to update the expectations to whatever the wizard currently generates
 */
public static void main(final String[] args) {
  final CliProjectsCreator creator = CliWizardIntegrationTest.newProjectCreator();
  final Consumer<WizardConfiguration> _function = (WizardConfiguration config) -> {
    try {
      String _baseName = config.getBaseName();
      final File targetLocation = new File("testdata/wizard-expectations", _baseName);
      targetLocation.mkdirs();
      Files.sweepFolder(targetLocation);
      config.setRootLocation(targetLocation.getPath());
      creator.createProjects(config);
      String _baseName_1 = config.getBaseName();
      String _plus = ("Updating expectations for " + _baseName_1);
      InputOutput.<String>println(_plus);
    } catch (Throwable _e) {
      throw Exceptions.sneakyThrow(_e);
    }
  };
  CliWizardIntegrationTest.projectConfigs.forEach(_function);
}
 
开发者ID:eclipse,项目名称:xtext-core,代码行数:23,代码来源:CliWizardIntegrationTest.java

示例5: build

import org.eclipse.xtext.xbase.lib.InputOutput; //导入方法依赖的package包/类
public static void build(final String projectName, final String projectType, final String moduleName) {
  final Project project = Projects.byName(projectName);
  Module _moduleByClass = Modules.moduleByClass(moduleName);
  List<Module> modules = CollectionLiterals.<Module>newArrayList(_moduleByClass);
  final Consumer<Module> _function = (Module it) -> {
    InputOutput.<Module>println(it);
  };
  modules.forEach(_function);
  final List<ModuleGeneratedDoc> generateDocs = GeneratedDocs.byType(projectType);
  GenerateBoxBuilder _generateBoxBuilder = new GenerateBoxBuilder();
  GenerateBoxBuilder _generateDocs = _generateBoxBuilder.generateDocs(generateDocs);
  GenerateBoxBuilder _modules = _generateDocs.modules(modules);
  GenerateBoxBuilder _project = _modules.project(project);
  GenerateBox _build = _project.build();
  _build.doGenerate();
}
 
开发者ID:East196,项目名称:maker,代码行数:17,代码来源:ProjectBuilder.java

示例6: parseSimpleAGCLLibrary

import org.eclipse.xtext.xbase.lib.InputOutput; //导入方法依赖的package包/类
@Test
public void parseSimpleAGCLLibrary() {
  try {
    InputOutput.<String>println("AGCLAnnexLibrary");
    final String libText = "\n            library \n                viewpoint v1*;\n                viewpoint v2\n        ";
    final AGCLGrammarRoot libAST = this.parser.parse(libText);
    AGCLAnnexLibrary _lib = libAST.getLib();
    final EList<AGCLViewpoint> viewpoints = _lib.getViewpoints();
    InputOutput.<AGCLGrammarRoot>println(libAST);
    InputOutput.<EList<AGCLViewpoint>>println(viewpoints);
    AGCLViewpoint _get = viewpoints.get(0);
    String _name = _get.getName();
    InputOutput.<String>println(_name);
    AGCLViewpoint _get_1 = viewpoints.get(1);
    String _name_1 = _get_1.getName();
    InputOutput.<String>println(_name_1);
    AGCLViewpoint _get_2 = viewpoints.get(0);
    String _name_2 = _get_2.getName();
    Assert.assertEquals("v1", _name_2);
    AGCLViewpoint _get_3 = viewpoints.get(1);
    String _name_3 = _get_3.getName();
    Assert.assertEquals("v2", _name_3);
  } catch (Throwable _e) {
    throw Exceptions.sneakyThrow(_e);
  }
}
 
开发者ID:eposse,项目名称:osate2-agcl,代码行数:27,代码来源:HelloUnitTesting.java

示例7: transformGuarantee

import org.eclipse.xtext.xbase.lib.InputOutput; //导入方法依赖的package包/类
@Test
public void transformGuarantee() {
  try {
    InputOutput.<String>println("* transformGuarantee");
    final String subclauseSource = "\n\t\t\tsubclause \n\t\t\t\tcontract v\n\t\t\t\t\tassumption in a:x & out b:y;\n\t\t\t\t\tguarantee in c:u & out d:v;\n\t\t\t\tend v;\n\t\t";
    final AGCLGrammarRoot subclauseAST = this.agclParser.parse(subclauseSource);
    final String serializedSubclauseAST = this.serializer.serialize(subclauseAST);
    InputOutput.<String>println((("  serialized annex AST: \"" + serializedSubclauseAST) + "\""));
    AGCLAnnexSubclause _subclause = subclauseAST.getSubclause();
    EList<AGCLContract> _contracts = _subclause.getContracts();
    AGCLContract _get = _contracts.get(0);
    AGCLAssumption _assumption = _get.getAssumption();
    final PSLSpec assumptionSpec = _assumption.getSpec();
    AGCLAnnexSubclause _subclause_1 = subclauseAST.getSubclause();
    EList<AGCLContract> _contracts_1 = _subclause_1.getContracts();
    AGCLContract _get_1 = _contracts_1.get(0);
    AGCLGuarantee _guarantee = _get_1.getGuarantee();
    final PSLSpec guaranteeSpec = _guarantee.getSpec();
    final String serializedAssumption = this.serializer.serialize(assumptionSpec);
    final String serializedGuarantee = this.serializer.serialize(guaranteeSpec);
    InputOutput.<String>println((("  serialized assumption: \"" + serializedAssumption) + "\""));
    InputOutput.<String>println((("  serialized guarantee: \"" + serializedGuarantee) + "\""));
  } catch (Throwable _e) {
    throw Exceptions.sneakyThrow(_e);
  }
}
 
开发者ID:eposse,项目名称:osate2-agcl,代码行数:27,代码来源:AGCLPSLTransformTests.java

示例8: generateGenModelCode

import org.eclipse.xtext.xbase.lib.InputOutput; //导入方法依赖的package包/类
/**
 * generate the source code using the ant generated task
 * @param f : the ant file to be called
 */
public void generateGenModelCode(final File f, final IProgressMonitor monitor) {
  final AntRunner runner = new AntRunner();
  runner.setBuildFileLocation(f.getAbsolutePath());
  if (this.debug) {
    runner.addBuildLogger("org.apache.tools.ant.DefaultLogger");
    runner.setArguments("-verbose -debug");
  }
  try {
    if (this.debug) {
      String _absolutePath = f.getAbsolutePath();
      String _plus = ("  --> Generate the EMF Code using the ant file : " + _absolutePath);
      InputOutput.<String>println(_plus);
    }
    runner.run(monitor);
    this.refreshWorkspace();
  } catch (final Throwable _t) {
    if (_t instanceof CoreException) {
      final CoreException e = (CoreException)_t;
      e.printStackTrace();
    } else {
      throw Exceptions.sneakyThrow(_t);
    }
  }
}
 
开发者ID:opcoach,项目名称:genModelAddon,代码行数:29,代码来源:GenerateDevStructure.java

示例9: isTransient

import org.eclipse.xtext.xbase.lib.InputOutput; //导入方法依赖的package包/类
@Override
public boolean isTransient(final EObject owner, final EStructuralFeature feature, final int index) {
  boolean _equals = Objects.equal(feature, OCCIPackage.Literals.ATTRIBUTE__MUTABLE);
  if (_equals) {
    Object _eGet = owner.eGet(feature);
    Boolean value = ((Boolean) _eGet);
    boolean _equals_1 = Objects.equal(value, Boolean.FALSE);
    if (_equals_1) {
      return true;
    } else {
      return false;
    }
  }
  boolean _equals_2 = Objects.equal(feature, OCCIPackage.Literals.ATTRIBUTE__REQUIRED);
  if (_equals_2) {
    EObject _eContainer = owner.eContainer();
    if ((_eContainer instanceof Action)) {
      InputOutput.<String>println(("required action " + owner));
      return true;
    }
  }
  boolean _equals_3 = Objects.equal(feature, OCCIPackage.Literals.ATTRIBUTE__DESCRIPTION);
  if (_equals_3) {
    EObject _eContainer_1 = owner.eContainer();
    if ((_eContainer_1 instanceof Action)) {
      return true;
    }
  }
  boolean _equals_4 = Objects.equal(feature, OCCIPackage.Literals.CATEGORY__SCHEME);
  if (_equals_4) {
    if (((owner instanceof Action) || (owner instanceof Kind))) {
      return true;
    }
  }
  return super.isTransient(owner, feature, index);
}
 
开发者ID:occiware,项目名称:OCCI-Studio,代码行数:37,代码来源:OCCITransientValueService.java

示例10: main

import org.eclipse.xtext.xbase.lib.InputOutput; //导入方法依赖的package包/类
public static void main(final String[] args) {
  try {
    StringConcatenation _builder = new StringConcatenation();
    _builder.append("D:\\test\\2.txt");
    File _file = new File(_builder.toString());
    String txt = Files.toString(_file, Charsets.UTF_8);
    ArrayList<String> _analyze = My.analyze(txt);
    final Consumer<String> _function = (String it) -> {
      InputOutput.<String>println(it);
    };
    _analyze.forEach(_function);
  } catch (Throwable _e) {
    throw Exceptions.sneakyThrow(_e);
  }
}
 
开发者ID:East196,项目名称:maker,代码行数:16,代码来源:My.java

示例11: firefoxClicks

import org.eclipse.xtext.xbase.lib.InputOutput; //导入方法依赖的package包/类
@Deprecated
public static void firefoxClicks(final String baseUrl, final String cssSelector) {
  StringConcatenation _builder = new StringConcatenation();
  _builder.append("D:\\Program Files\\Mozilla Firefox\\firefox.exe");
  System.setProperty("webdriver.firefox.bin", _builder.toString());
  StringConcatenation _builder_1 = new StringConcatenation();
  _builder_1.append("C:\\Users\\Administrator\\AppData\\Local\\Mozilla\\Firefox\\Profiles\\f5gpdod4.selenium");
  final String dir = _builder_1.toString();
  File _file = new File(dir);
  final FirefoxProfile profile = new FirefoxProfile(_file);
  final FirefoxDriver webDriver = new FirefoxDriver(profile);
  webDriver.get(baseUrl);
  final List<WebElement> webElements = webDriver.findElementsByCssSelector(cssSelector);
  final Consumer<WebElement> _function = (WebElement element) -> {
    try {
      element.click();
      WebDriver.Navigation _navigate = webDriver.navigate();
      _navigate.back();
      final long random = RandomUtils.nextLong(5, 20);
      StringConcatenation _builder_2 = new StringConcatenation();
      _builder_2.append("等待");
      _builder_2.append(random, "");
      _builder_2.append("S");
      InputOutput.<String>println(_builder_2.toString());
      TimeUnit.SECONDS.sleep(random);
    } catch (Throwable _e) {
      throw Exceptions.sneakyThrow(_e);
    }
  };
  webElements.forEach(_function);
  webDriver.close();
}
 
开发者ID:East196,项目名称:maker,代码行数:33,代码来源:SeleniumClickerC.java

示例12: house6

import org.eclipse.xtext.xbase.lib.InputOutput; //导入方法依赖的package包/类
@Scheduled(fixedRate = 100000)
public void house6() {
  DateTime _dateTime = new DateTime();
  final Page page = new Page("http://www.6.cn/", "div#iBody .col1 .viewCount p em", _dateTime);
  String _url = page.getUrl();
  String _expression = page.getExpression();
  final String num = TungParser.partAjaxHtml(_url, _expression);
  String _plus = (page + " -> ");
  String _plus_1 = (_plus + num);
  InputOutput.<String>println(_plus_1);
}
 
开发者ID:East196,项目名称:maker,代码行数:12,代码来源:ScheduledTasks.java

示例13: house6

import org.eclipse.xtext.xbase.lib.InputOutput; //导入方法依赖的package包/类
public Pair<String, String> house6() {
  Pair<String, String> _xblockexpression = null;
  {
    final String url = "http://www.6.cn/";
    final String expression = "#iBody .col1 .viewCount p em";
    final Pair<String, String> pair = this.pair(url, expression);
    _xblockexpression = InputOutput.<Pair<String, String>>println(pair);
  }
  return _xblockexpression;
}
 
开发者ID:East196,项目名称:maker,代码行数:11,代码来源:Demo.java

示例14: sina9158

import org.eclipse.xtext.xbase.lib.InputOutput; //导入方法依赖的package包/类
public Pair<String, String> sina9158() {
  Pair<String, String> _xblockexpression = null;
  {
    final String url = "http://www.9158.com/";
    final String expression = "span#onlinenum";
    final Pair<String, String> pair = this.pair(url, expression);
    _xblockexpression = InputOutput.<Pair<String, String>>println(pair);
  }
  return _xblockexpression;
}
 
开发者ID:East196,项目名称:maker,代码行数:11,代码来源:Demo.java

示例15: main

import org.eclipse.xtext.xbase.lib.InputOutput; //导入方法依赖的package包/类
public static void main(final String[] args) {
  try {
    final String text = "lucene分析器使用分词器和过滤器构成一个“管道”,文本在流经这个管道后成为可以进入索引的最小单位,因此,一个标准的分析器有两个部分组成,一个是分词器tokenizer,它用于将文本按照规则切分为一个个可以进入索引的最小单位。另外一个是TokenFilter,它主要作用是对切出来的词进行进一步的处理(如去掉敏感词、英文大小写转换、单复数处理)等。lucene中的Tokenstram方法首先创建一个tokenizer对象处理Reader对象中的流式文本,然后利用TokenFilter对输出流进行过滤处理";
    final ArrayList<String> myStopWords = CollectionLiterals.<String>newArrayList("的", "在", "了", "呢", ",", "0", ":", ",", "是", "流");
    final CharArraySet stopWords = new CharArraySet(0, true);
    for (final String word : myStopWords) {
      stopWords.add(word);
    }
    CharArraySet _defaultStopSet = SmartChineseAnalyzer.getDefaultStopSet();
    final Iterator<Object> itor = _defaultStopSet.iterator();
    while (itor.hasNext()) {
      Object _next = itor.next();
      stopWords.add(_next);
    }
    final SmartChineseAnalyzer sca = new SmartChineseAnalyzer(stopWords);
    final TokenStream ts = sca.tokenStream("field", text);
    CharTermAttribute ch = ts.<CharTermAttribute>addAttribute(CharTermAttribute.class);
    TypeAttribute type = ts.<TypeAttribute>addAttribute(TypeAttribute.class);
    ts.reset();
    while (ts.incrementToken()) {
      String _string = ch.toString();
      String _plus = (_string + " | ");
      String _type = type.type();
      String _plus_1 = (_plus + _type);
      InputOutput.<String>println(_plus_1);
    }
    ts.end();
    ts.close();
  } catch (Throwable _e) {
    throw Exceptions.sneakyThrow(_e);
  }
}
 
开发者ID:East196,项目名称:maker,代码行数:33,代码来源:SmartCn.java


注:本文中的org.eclipse.xtext.xbase.lib.InputOutput.println方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。