blob: c2762ae8c057b4c42f99c25a44154c3b0b5b7d07 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
package org.eclipse.jdt.internal.core.builder.impl;
/*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
import org.eclipse.jdt.internal.core.builder.*;
public class FieldImpl extends AbstractMemberHandle implements IField{
/**
* Creates a new non state specific field implementation
*/
FieldImpl(ClassOrInterfaceHandleImpl owner, String name) {
fOwner = owner;
fSignature = name;
}
/**
* getName method comment.
*/
public String getName() {
return fSignature;
}
/**
* Returns a Type object that identifies the declared type for
* the field represented by this Field object.
*/
public IType getType() {
return (IType)((IField)inCurrentState()).getType().nonStateSpecific();
}
/**
* Returns a state specific version of this handle in the given state.
*/
public IHandle inState(IState s) throws org.eclipse.jdt.internal.core.builder.StateSpecificException {
return new FieldImplSWH((StateImpl) s, this);
}
/**
* Returns a constant indicating what kind of handle this is.
*/
public int kind() {
return IHandle.K_JAVA_FIELD;
}
/**
* toString method comment.
*/
public String toString() {
return getDeclaringClass().getName() + "."/*nonNLS*/ + getName();
}
}
|