List of usage examples for org.eclipse.jdt.internal.compiler.lookup TypeConstants CLINIT
null CLINIT
To view the source code for org.eclipse.jdt.internal.compiler.lookup TypeConstants CLINIT.
Click Source Link
From source file:com.redhat.ceylon.eclipse.core.model.loader.JDTMethod.java
License:Open Source License
@Override public boolean isStaticInit() { return method.selector == TypeConstants.CLINIT; // TODO : check if it is right }
From source file:com.redhat.ceylon.eclipse.core.model.mirror.JDTMethod.java
License:Open Source License
public JDTMethod(JDTClass enclosingClass, MethodBinding method) { this.enclosingClass = enclosingClass; bindingRef = new WeakReference<MethodBinding>(method); name = new String(method.selector); readableName = new String(method.readableName()); isStatic = method.isStatic();// w w w . j av a 2s . c o m isPublic = method.isPublic(); isConstructor = method.isConstructor(); isStaticInit = method.selector == TypeConstants.CLINIT; // TODO : check if it is right isAbstract = method.isAbstract(); isFinal = method.isFinal(); isProtected = method.isProtected(); isDefaultAccess = method.isDefault(); isDeclaredVoid = method.returnType.id == TypeIds.T_void; isVariadic = method.isVarargs(); isDefault = method.getDefaultValue() != null; bindingKey = method.computeUniqueKey(); if (method instanceof ProblemMethodBinding) { annotations = new HashMap<>(); parameters = Collections.emptyList(); returnType = JDTType.UNKNOWN_TYPE; typeParameters = Collections.emptyList(); isOverriding = false; isOverloading = false; } }