Java Code Examples for org.eclipse.xtext.common.types.JvmMember#internalSetIdentifier()
The following examples show how to use
org.eclipse.xtext.common.types.JvmMember#internalSetIdentifier() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AbstractTypeProviderTest.java From xtext-extras with Eclipse Public License 2.0 | 6 votes |
protected void recomputeAndCheckIdentifiers(Resource resource) { Iterator<JvmMember> iter = Iterators.filter(EcoreUtil.getAllContents(resource, false), JvmMember.class); while (iter.hasNext()) { JvmMember member = iter.next(); String identifier = member.getIdentifier(); member.internalSetIdentifier(null); String computed = member.getIdentifier(); assertNotNull(String.valueOf(member), computed); assertEquals(identifier, computed); checkDeprecatedBitSet(member); } Iterator<JvmFormalParameter> params = Iterators.filter(EcoreUtil.getAllContents(resource, false), JvmFormalParameter.class); while (params.hasNext()) { JvmFormalParameter parameter = params.next(); assertNotNull(parameter.eContainer().toString(), parameter.getName()); } }
Example 2
Source File: AbstractTypeProviderTest.java From xtext-extras with Eclipse Public License 2.0 | 6 votes |
protected void recomputeAndCheckIdentifiers(Resource resource) { Iterator<JvmMember> iter = Iterators.filter(EcoreUtil.getAllContents(resource, false), JvmMember.class); while (iter.hasNext()) { JvmMember member = iter.next(); String identifier = member.getIdentifier(); member.internalSetIdentifier(null); String computed = member.getIdentifier(); assertNotNull(String.valueOf(member), computed); assertEquals(identifier, computed); checkDeprecatedBitSet(member); } Iterator<JvmFormalParameter> params = Iterators.filter(EcoreUtil.getAllContents(resource, false), JvmFormalParameter.class); while (params.hasNext()) { JvmFormalParameter parameter = params.next(); assertNotNull(parameter.eContainer().toString(), parameter.getName()); } }
Example 3
Source File: AbstractTypeProviderTest.java From xtext-eclipse with Eclipse Public License 2.0 | 6 votes |
protected void recomputeAndCheckIdentifiers(Resource resource) { Iterator<JvmMember> iter = Iterators.filter(EcoreUtil.getAllContents(resource, false), JvmMember.class); while (iter.hasNext()) { JvmMember member = iter.next(); String identifier = member.getIdentifier(); member.internalSetIdentifier(null); String computed = member.getIdentifier(); assertNotNull(String.valueOf(member), computed); assertEquals(identifier, computed); checkDeprecatedBitSet(member); } Iterator<JvmFormalParameter> params = Iterators.filter(EcoreUtil.getAllContents(resource, false), JvmFormalParameter.class); while (params.hasNext()) { JvmFormalParameter parameter = params.next(); assertNotNull(parameter.eContainer().toString(), parameter.getName()); } }