Skip to content

Instantly share code, notes, and snippets.

@Matthewacon
Created April 13, 2016 01:59
Show Gist options
  • Save Matthewacon/46adfefbfce87e35145d3c4e442496e6 to your computer and use it in GitHub Desktop.
Save Matthewacon/46adfefbfce87e35145d3c4e442496e6 to your computer and use it in GitHub Desktop.
public Boolean blockIsInjected(BlockType.BlockTypes bl) throws InvalidBlockTypeException {
switch (bl) {
case FIELD : return this.fieldsInjected;
case CONSTRUCTOR : return this.constructorsInjected;
case METHOD : return this.methodsInjected;
default : throw new InvalidBlockTypeException();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment