FieldDeclaration field = new FieldDeclaration(); int start = fieldInfo.getNameSourceStart(); int end = fieldInfo.getNameSourceEnd(); field.declarationSourceStart = fieldInfo.getDeclarationSourceStart(); field.declarationSourceEnd = fieldInfo.getDeclarationSourceEnd(); int modifiers = fieldInfo.getModifiers(); boolean isEnumConstant = (modifiers & ClassFileConstants.AccEnum) != 0; if (isEnumConstant) { field.type = createTypeReference(fieldInfo.getTypeName(), start, end); char[] initializationSource = fieldInfo.getInitializationSource(); if (initializationSource != null) { if (this.parser == null) { IJavaElement[] children = fieldInfo.getChildren(); int childrenLength = children.length; if (childrenLength == 1) {
FieldInfo fieldInfo = (FieldInfo) this.infoStack.peek(); IJavaElement[] elements = getChildren(fieldInfo); SourceFieldElementInfo info = elements.length == 0 ? new SourceFieldElementInfo() : new SourceFieldWithChildrenInfo(elements); info.setNameSourceStart(fieldInfo.nameSourceStart); info.setNameSourceEnd(fieldInfo.nameSourceEnd); info.setSourceRangeStart(fieldInfo.declarationStart); info.setFlags(fieldInfo.modifiers); char[] typeName = JavaModelManager.getJavaModelManager().intern(fieldInfo.type); info.setTypeName(typeName); this.newElements.put(handle, info); info.setSourceRangeEnd(declarationSourceEnd); this.handleStack.pop(); this.infoStack.pop();
/** * @see IField */ @Override public String getTypeSignature() throws JavaModelException { SourceFieldElementInfo info = (SourceFieldElementInfo) getElementInfo(); return info.getTypeSignature(); }
((SourceFieldElementInfo)oldInfo).getTypeName(), ((SourceFieldElementInfo)newInfo).getTypeName())) { this.delta.changed(newElement, IJavaElementDelta.F_CONTENT);
((SourceFieldElementInfo)oldInfo).getTypeName(), ((SourceFieldElementInfo)newInfo).getTypeName())) { this.delta.changed(newElement, IJavaElementDelta.F_CONTENT);
FieldDeclaration field = new FieldDeclaration(); int start = fieldInfo.getNameSourceStart(); int end = fieldInfo.getNameSourceEnd(); field.declarationSourceStart = fieldInfo.getDeclarationSourceStart(); field.declarationSourceEnd = fieldInfo.getDeclarationSourceEnd(); int modifiers = fieldInfo.getModifiers(); boolean isEnumConstant = (modifiers & ClassFileConstants.AccEnum) != 0; if (isEnumConstant) { field.type = createTypeReference(fieldInfo.getTypeName(), start, end); char[] initializationSource = fieldInfo.getInitializationSource(); if (initializationSource != null) { if (this.parser == null) { IJavaElement[] children = fieldInfo.getChildren(); int childrenLength = children.length; if (childrenLength == 1) {
FieldInfo fieldInfo = (FieldInfo) this.infoStack.peek(); IJavaElement[] elements = getChildren(fieldInfo); SourceFieldElementInfo info = elements.length == 0 ? new SourceFieldElementInfo() : new SourceFieldWithChildrenInfo(elements); info.setNameSourceStart(fieldInfo.nameSourceStart); info.setNameSourceEnd(fieldInfo.nameSourceEnd); info.setSourceRangeStart(fieldInfo.declarationStart); info.setFlags(fieldInfo.modifiers); char[] typeName = JavaModelManager.getJavaModelManager().intern(fieldInfo.type); info.setTypeName(typeName); this.newElements.put(handle, info); info.setSourceRangeEnd(declarationSourceEnd); this.handleStack.pop(); this.infoStack.pop();
/** * @see IField */ public String getTypeSignature() throws JavaModelException { SourceFieldElementInfo info = (SourceFieldElementInfo) getElementInfo(); return info.getTypeSignature(); } /* (non-Javadoc)
((SourceFieldElementInfo)oldInfo).getTypeName(), ((SourceFieldElementInfo)newInfo).getTypeName())) { this.delta.changed(newElement, IJavaElementDelta.F_CONTENT);
FieldDeclaration field = new FieldDeclaration(); int start = fieldInfo.getNameSourceStart(); int end = fieldInfo.getNameSourceEnd(); field.declarationSourceStart = fieldInfo.getDeclarationSourceStart(); field.declarationSourceEnd = fieldInfo.getDeclarationSourceEnd(); int modifiers = fieldInfo.getModifiers(); boolean isEnumConstant = (modifiers & ClassFileConstants.AccEnum) != 0; if (isEnumConstant) { field.type = createTypeReference(fieldInfo.getTypeName(), start, end); char[] initializationSource = fieldInfo.getInitializationSource(); if (initializationSource != null) { if (this.parser == null) { IJavaElement[] children = fieldInfo.getChildren(); int childrenLength = children.length; if (childrenLength == 1) {
FieldInfo fieldInfo = (FieldInfo) this.infoStack.peek(); IJavaElement[] elements = getChildren(fieldInfo); SourceFieldElementInfo info = elements.length == 0 ? new SourceFieldElementInfo() : new SourceFieldWithChildrenInfo(elements); info.setNameSourceStart(fieldInfo.nameSourceStart); info.setNameSourceEnd(fieldInfo.nameSourceEnd); info.setSourceRangeStart(fieldInfo.declarationStart); info.setFlags(fieldInfo.modifiers); char[] typeName = JavaModelManager.getJavaModelManager().intern(fieldInfo.type); info.setTypeName(typeName); this.newElements.put(handle, info); info.setSourceRangeEnd(declarationSourceEnd); this.handleStack.pop(); this.infoStack.pop();
/** * @see IField */ public String getTypeSignature() throws JavaModelException { SourceFieldElementInfo info = (SourceFieldElementInfo) getElementInfo(); return info.getTypeSignature(); } /* (non-Javadoc)
((SourceFieldElementInfo)oldInfo).getTypeName(), ((SourceFieldElementInfo)newInfo).getTypeName())) { this.delta.changed(newElement, IJavaElementDelta.F_CONTENT);
FieldDeclaration field = new FieldDeclaration(); int start = fieldInfo.getNameSourceStart(); int end = fieldInfo.getNameSourceEnd(); field.declarationSourceStart = fieldInfo.getDeclarationSourceStart(); field.declarationSourceEnd = fieldInfo.getDeclarationSourceEnd(); int modifiers = fieldInfo.getModifiers(); boolean isEnumConstant = (modifiers & ClassFileConstants.AccEnum) != 0; if (isEnumConstant) { field.type = createTypeReference(fieldInfo.getTypeName(), start, end); char[] initializationSource = fieldInfo.getInitializationSource(); if (initializationSource != null) { if (this.parser == null) { IJavaElement[] children = fieldInfo.getChildren(); int childrenLength = children.length; if (childrenLength == 1) {
FieldInfo fieldInfo = (FieldInfo) this.infoStack.peek(); IJavaElement[] elements = getChildren(fieldInfo); SourceFieldElementInfo info = elements.length == 0 ? new SourceFieldElementInfo() : new SourceFieldWithChildrenInfo(elements); info.setNameSourceStart(fieldInfo.nameSourceStart); info.setNameSourceEnd(fieldInfo.nameSourceEnd); info.setSourceRangeStart(fieldInfo.declarationStart); info.setFlags(fieldInfo.modifiers); char[] typeName = JavaModelManager.getJavaModelManager().intern(fieldInfo.type); info.setTypeName(typeName); this.newElements.put(handle, info); info.setSourceRangeEnd(declarationSourceEnd); this.handleStack.pop(); this.infoStack.pop();
/** * @see IField */ public String getTypeSignature() throws JavaModelException { SourceFieldElementInfo info = (SourceFieldElementInfo) getElementInfo(); return info.getTypeSignature(); } /* (non-Javadoc)
((SourceFieldElementInfo)oldInfo).getTypeName(), ((SourceFieldElementInfo)newInfo).getTypeName())) { this.delta.changed(newElement, IJavaElementDelta.F_CONTENT);
FieldDeclaration field = new FieldDeclaration(); int start = fieldInfo.getNameSourceStart(); int end = fieldInfo.getNameSourceEnd(); field.declarationSourceStart = fieldInfo.getDeclarationSourceStart(); field.declarationSourceEnd = fieldInfo.getDeclarationSourceEnd(); int modifiers = fieldInfo.getModifiers(); boolean isEnumConstant = (modifiers & ClassFileConstants.AccEnum) != 0; if (isEnumConstant) { field.type = createTypeReference(fieldInfo.getTypeName(), start, end); char[] initializationSource = fieldInfo.getInitializationSource(); if (initializationSource != null) { if (this.parser == null) { IJavaElement[] children = fieldInfo.getChildren(); int childrenLength = children.length; if (childrenLength == 1) {
FieldInfo fieldInfo = (FieldInfo) this.infoStack.peek(); IJavaElement[] elements = getChildren(fieldInfo); SourceFieldElementInfo info = elements.length == 0 ? new SourceFieldElementInfo() : new SourceFieldWithChildrenInfo(elements); info.setNameSourceStart(fieldInfo.nameSourceStart); info.setNameSourceEnd(fieldInfo.nameSourceEnd); info.setSourceRangeStart(fieldInfo.declarationStart); info.setFlags(fieldInfo.modifiers); char[] typeName = JavaModelManager.getJavaModelManager().intern(fieldInfo.type); info.setTypeName(typeName); this.newElements.put(handle, info); info.setSourceRangeEnd(declarationSourceEnd); this.handleStack.pop(); this.infoStack.pop();
/** * @see IField */ public String getTypeSignature() throws JavaModelException { SourceFieldElementInfo info = (SourceFieldElementInfo) getElementInfo(); return info.getTypeSignature(); } /* (non-Javadoc)