本文整理了Java中org.eclipse.xtext.Keyword.getValue()
方法的一些代码示例,展示了Keyword.getValue()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Keyword.getValue()
方法的具体详情如下:
包路径:org.eclipse.xtext.Keyword
类名称:Keyword
方法名:getValue
[英]Returns the value of the 'Value' attribute.
If the meaning of the 'Value' attribute isn't clear, there really should be more of a description here...
[中]返回“value”属性的值。
如果“Value”属性的含义不清楚,这里应该有更多的描述。。。
代码示例来源:origin: org.eclipse.xtext/ui
protected boolean isExpectedGrammarElement(EObject object) {
if (object == grammarElement)
return true;
if (grammarElement == null && expectedText != null) {
if (object instanceof Keyword) {
if (expectedText.equals(((Keyword) object).getValue()))
return true;
}
}
return false;
}
代码示例来源:origin: org.eclipse.xtext/org.eclipse.xtext.ide
protected boolean isExpectedGrammarElement(EObject object) {
if (object == grammarElement)
return true;
if (grammarElement == null && expectedText != null) {
if (object instanceof Keyword) {
if (expectedText.equals(((Keyword) object).getValue()))
return true;
}
}
return false;
}
代码示例来源:origin: org.eclipse.xtext/org.eclipse.xtext.xtext.generator
protected String _ebnf2(final Keyword it, final AntlrOptions options, final boolean supportActions) {
String _xifexpression = null;
boolean _isCombinedGrammar = this.isCombinedGrammar();
if (_isCombinedGrammar) {
String _antlrString = AntlrGrammarGenUtil.toAntlrString(it.getValue());
String _plus = ("\'" + _antlrString);
_xifexpression = (_plus + "\'");
} else {
_xifexpression = this.keywordHelper.getRuleName(it.getValue());
}
return _xifexpression;
}
代码示例来源:origin: io.sarl.lang/io.sarl.lang
/** Keyword: {@code protected}.
* Source: io.sarl.lang.SARL
*/
public String getProtectedKeyword() {
return this.grammarAccess.getInnerVarIDAccess().getProtectedKeyword_17().getValue();
}
代码示例来源:origin: io.sarl.lang/io.sarl.lang
/** Keyword: {@code &}.
* Source: io.sarl.lang.SARL
*/
public String getAmpersandKeyword() {
return this.grammarAccess.getJvmLowerBoundAndedAccess().getAmpersandKeyword_0().getValue();
}
代码示例来源:origin: io.sarl.lang/io.sarl.lang
/** Keyword: {@code *}.
* Source: io.sarl.lang.SARL
*/
public String getWildcardAsteriskKeyword() {
return this.grammarAccess.getXImportDeclarationAccess().getWildcardAsteriskKeyword_1_0_3_0_0().getValue();
}
代码示例来源:origin: io.sarl.lang/io.sarl.lang
/** Keyword: {@code ,}.
* Source: io.sarl.lang.SARL
*/
public String getCommaKeyword() {
return this.grammarAccess.getJvmParameterizedTypeReferenceAccess().getCommaKeyword_1_4_2_2_0().getValue();
}
代码示例来源:origin: io.sarl.lang/io.sarl.lang
/** Keyword: {@code <}.
* Source: io.sarl.lang.SARL
*/
public String getLessThanSignKeyword() {
return this.grammarAccess.getJvmParameterizedTypeReferenceAccess().getLessThanSignKeyword_1_4_2_0().getValue();
}
代码示例来源:origin: io.sarl.lang/io.sarl.lang
/** Keyword: {@code {}.
* Source: io.sarl.lang.SARL
*/
public String getLeftCurlyBracketKeyword() {
return this.grammarAccess.getXBlockExpressionAccess().getLeftCurlyBracketKeyword_1().getValue();
}
代码示例来源:origin: io.sarl.lang/io.sarl.lang
/** Keyword: {@code agent}.
* Source: io.sarl.lang.SARL
*/
public String getAgentKeyword() {
return this.grammarAccess.getTypeAccess().getAgentKeyword_2_2_2().getValue();
}
代码示例来源:origin: io.sarl.lang/io.sarl.lang
/** Keyword: {@code dispatch}.
* Source: io.sarl.lang.SARL
*/
public String getDispatchKeyword() {
return this.grammarAccess.getInnerVarIDAccess().getDispatchKeyword_6().getValue();
}
代码示例来源:origin: io.sarl.lang/io.sarl.lang
/** Keyword: {@code --}.
* Source: io.sarl.lang.SARL
*/
public String getHyphenMinusHyphenMinusKeyword() {
return this.grammarAccess.getOpPostfixAccess().getHyphenMinusHyphenMinusKeyword_1().getValue();
}
代码示例来源:origin: io.sarl.lang/io.sarl.lang
/** Keyword: {@code package}.
* Source: io.sarl.lang.SARL
*/
public String getPackageKeyword() {
return this.grammarAccess.getInnerVarIDAccess().getPackageKeyword_14().getValue();
}
代码示例来源:origin: io.sarl.lang/io.sarl.lang
/** Keyword: {@code throws}.
* Source: io.sarl.lang.SARL
*/
public String getThrowsKeyword() {
return this.grammarAccess.getInnerVarIDAccess().getThrowsKeyword_19().getValue();
}
代码示例来源:origin: io.sarl.lang/io.sarl.lang
/** Keyword: {@code ->}.
* Source: io.sarl.lang.SARL
*/
public String getHyphenMinusGreaterThanSignKeyword() {
return this.grammarAccess.getOpOtherAccess().getHyphenMinusGreaterThanSignKeyword_0().getValue();
}
代码示例来源:origin: io.sarl.lang/io.sarl.lang
/** Keyword: {@code for}.
* Source: io.sarl.lang.SARL
*/
public String getForKeyword() {
return this.grammarAccess.getXBasicForLoopExpressionAccess().getForKeyword_1().getValue();
}
代码示例来源:origin: io.sarl.lang/io.sarl.lang
/** Keyword: {@code skill}.
* Source: io.sarl.lang.SARL
*/
public String getSkillKeyword() {
return this.grammarAccess.getTypeAccess().getSkillKeyword_2_4_2().getValue();
}
代码示例来源:origin: io.sarl.lang/io.sarl.lang
/** Keyword: {@code ?:}.
* Source: io.sarl.lang.SARL
*/
public String getQuestionMarkColonKeyword() {
return this.grammarAccess.getOpOtherAccess().getQuestionMarkColonKeyword_8().getValue();
}
代码示例来源:origin: io.sarl.lang/io.sarl.lang
/** Keyword: {@code on}.
* Source: io.sarl.lang.SARL
*/
public String getOnKeyword() {
return this.grammarAccess.getAOPMemberAccess().getOnKeyword_2_0_1().getValue();
}
代码示例来源:origin: org.eclipse/xtext
@Override
protected int doConsume() {
if (readString(literal.getLiteral().getValue()))
return !peekChar(notFollowedBy) ? ConsumeResult.SUCCESS : ConsumeResult.EMPTY_MATCH;
return ConsumeResult.EMPTY_MATCH;
}
内容来源于网络,如有侵权,请联系作者删除!