List of usage examples for org.eclipse.jdt.core.dom FieldDeclaration TYPE_PROPERTY
ChildPropertyDescriptor TYPE_PROPERTY
To view the source code for org.eclipse.jdt.core.dom FieldDeclaration TYPE_PROPERTY.
Click Source Link
From source file:org.eclipse.emf.codegen.merge.java.facade.ast.ASTJField.java
License:Open Source License
/** * Sets the type of {@link FieldDeclaration}. * <p>//from ww w.j a v a 2 s . c o m * If there is only one {@link VariableDeclarationFragment} in this declaration, * only the type of the FieldDeclaration is changed. * <p> * If there are multiple {@link VariableDeclarationFragment}s in this declaration, * variable declaration fragment of this ASTJField is moved to a new * {@link FieldDeclaration}, and the type of new declaration is set. * <p> * Note that if field declaration has been split, * <code>getType()</code>, <code>getContents()</code>, <code>getComment()</code>, * <code>getInitializer()</code> will not return * the original content. * * @see org.eclipse.emf.codegen.merge.java.facade.JField#setType(String) */ @SuppressWarnings("deprecation") public void setType(String type) { // if there are multiple variables in declaration, // separate this variable fragment into a separate declaration performSplit(); this.type = type; setNodeProperty(variableDeclarationFragment, 0, VariableDeclarationFragment.EXTRA_DIMENSIONS_PROPERTY); setTrackedNodeProperty(getASTNode(), type, FieldDeclaration.TYPE_PROPERTY, ASTNode.SIMPLE_TYPE); }
From source file:org.jboss.forge.parser.java.impl.FieldImpl.java
License:Open Source License
@Override public String getQualifiedType() { Object type = field.getStructuralProperty(FieldDeclaration.TYPE_PROPERTY); return parent.resolveType(type.toString()); }
From source file:org.jboss.forge.parser.java.impl.FieldImpl.java
License:Open Source License
@Override public org.jboss.forge.parser.java.Type<O> getTypeInspector() { return new TypeImpl<O>(parent, field.getStructuralProperty(FieldDeclaration.TYPE_PROPERTY)); }
From source file:org.jboss.forge.roaster.model.impl.FieldImpl.java
License:Open Source License
@Override public Type<O> getType() { return new TypeImpl<O>(parent, field.getStructuralProperty(FieldDeclaration.TYPE_PROPERTY)); }
From source file:org.jboss.seam.forge.parser.java.impl.FieldImpl.java
License:Open Source License
@Override public String getType() { Object type = field.getStructuralProperty(FieldDeclaration.TYPE_PROPERTY); return type.toString(); }
From source file:org.moe.natjgen.FieldEditor.java
License:Apache License
public void setType(Type type, TypeResolver resolver) throws GeneratorException { editLock();/*from w ww . ja v a 2 s . co m*/ resolver.resolve(getManager(), fieldDecl, FieldDeclaration.TYPE_PROPERTY, modifiers, type, false); }