Class LazyOverrideCheckResult
- java.lang.Object
-
- org.eclipse.xtext.xbase.typesystem.override.LazyOverrideCheckResult
-
- All Implemented Interfaces:
IOverrideCheckResult
public class LazyOverrideCheckResult extends java.lang.Object implements IOverrideCheckResult
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.xtext.xbase.typesystem.override.IOverrideCheckResult
IOverrideCheckResult.OverrideCheckDetails
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.util.EnumSet<IOverrideCheckResult.OverrideCheckDetails>overridingIfAnyOfprotected static java.util.EnumSet<IOverrideCheckResult.OverrideCheckDetails>problemIfAnyOf
-
Constructor Summary
Constructors Constructor Description LazyOverrideCheckResult(AbstractResolvedOperation thisOperation, org.eclipse.xtext.common.types.JvmOperation givenOperation, IOverrideCheckResult.OverrideCheckDetails detail)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.EnumSet<IOverrideCheckResult.OverrideCheckDetails>getComputedDetails()java.util.EnumSet<IOverrideCheckResult.OverrideCheckDetails>getDetails()Obtain details on the override check.org.eclipse.xtext.common.types.JvmOperationgetGivenOperation()The checked operation.IResolvedOperationgetThisOperation()The overriding candidate.booleanhasProblems()Returnstrueif there are problems in the checked method hierarchy, e.g.booleanisOverridingOrImplementing()Returnstrueif the current operation successfully overrides or implements the given operation.
-
-
-
Field Detail
-
overridingIfAnyOf
protected static final java.util.EnumSet<IOverrideCheckResult.OverrideCheckDetails> overridingIfAnyOf
-
problemIfAnyOf
protected static final java.util.EnumSet<IOverrideCheckResult.OverrideCheckDetails> problemIfAnyOf
-
-
Constructor Detail
-
LazyOverrideCheckResult
public LazyOverrideCheckResult(AbstractResolvedOperation thisOperation, org.eclipse.xtext.common.types.JvmOperation givenOperation, IOverrideCheckResult.OverrideCheckDetails detail)
-
-
Method Detail
-
isOverridingOrImplementing
public boolean isOverridingOrImplementing()
Description copied from interface:IOverrideCheckResultReturnstrueif the current operation successfully overrides or implements the given operation. Override state that is considered to be valid is:- Specified by:
isOverridingOrImplementingin interfaceIOverrideCheckResult
-
hasProblems
public boolean hasProblems()
Description copied from interface:IOverrideCheckResultReturnstrueif there are problems in the checked method hierarchy, e.g. the return type needs unchecked conversion.- Specified by:
hasProblemsin interfaceIOverrideCheckResult
-
getDetails
public java.util.EnumSet<IOverrideCheckResult.OverrideCheckDetails> getDetails()
Description copied from interface:IOverrideCheckResultObtain details on the override check.- Specified by:
getDetailsin interfaceIOverrideCheckResult
-
getComputedDetails
protected java.util.EnumSet<IOverrideCheckResult.OverrideCheckDetails> getComputedDetails()
-
getThisOperation
public IResolvedOperation getThisOperation()
Description copied from interface:IOverrideCheckResultThe overriding candidate.- Specified by:
getThisOperationin interfaceIOverrideCheckResult
-
getGivenOperation
public org.eclipse.xtext.common.types.JvmOperation getGivenOperation()
Description copied from interface:IOverrideCheckResultThe checked operation.- Specified by:
getGivenOperationin interfaceIOverrideCheckResult
-
-